@font-face {
  font-family: "Ancizar Serif";
  src: url("fonts/AncizarSerif-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: Inter;
  src: url("fonts/Inter-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: Inter;
  src: url("fonts/Inter-Medium.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #000000;
  --text: #ffffff;
  --job: #6b86e5;
  --muted: #c2c1c0;
  --icon-bg: #1b1e26;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  font-family: Inter, "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: #000;
}

.page {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  padding: 8px 12px 12px;
  background: linear-gradient(180deg, #00030e 0%, #000616 50%, #010514 100%);
}

#app {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 0 12px;
  flex-shrink: 0;
}

.wordmark {
  font-family: "Ancizar Serif", "Instrument Serif", Georgia, serif;
  font-size: 31px;
  font-weight: 400;
  letter-spacing: -0.54px;
  color: #fff;
}

.menu-btn {
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 10px;
  background: rgba(32, 37, 47, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  cursor: pointer;
}

.menu-btn span {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #fff;
}

.hero-card {
  position: relative;
  overflow: hidden;
  width: 100%;
  flex: 1;
  min-height: 0;
  height: calc(100dvh - 76px);
  border-radius: 28px;
  border: 1.5px solid rgba(255, 255, 255, 0.15);
  background: linear-gradient(180deg, #1c294d 0%, #04060f 100%);
  box-shadow:
    0 0 40px rgba(107, 134, 229, 0.22),
    0 15px 30px -5px rgba(0, 0, 0, 0.6);
}

.card-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
}

.card-scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgba(0, 10, 26, 0.2) 0%,
    transparent 28%,
    rgba(4, 11, 28, 0.6) 62%,
    rgba(4, 6, 15, 0.95) 100%
  );
}

.v-logo {
  position: absolute;
  top: 16px;
  left: 16px;
  width: 52px;
  height: 44px;
  object-fit: contain;
  z-index: 2;
}

.nfc-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 5px 10px;
  border-radius: 20px;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #fff;
  font-family: Inter, sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.4px;
}

.nfc-badge svg {
  display: block;
}

.identity {
  position: absolute;
  left: 18px;
  right: 20px;
  bottom: 100px;
  z-index: 2;
}

.actions {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 16px;
  z-index: 2;
  display: flex;
  justify-content: space-between;
}

.name {
  margin: 0;
  font-family: Inter, sans-serif;
  font-size: clamp(22px, 7vw, 28px);
  font-weight: 600;
  line-height: 1.15;
  color: #fff;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.8);
}

.job {
  margin: 4px 0 0;
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.2px;
  color: var(--job);
}

.company {
  margin: 4px 0 0;
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.2px;
  color: #fff;
}

.accent-bar {
  margin-top: 12px;
  width: 48px;
  height: 4px;
  border-radius: 8px;
  background: linear-gradient(90deg, #6b86e5, transparent);
}

.icon-action {
  width: 53px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  color: inherit;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
}

.icon-action.is-disabled {
  opacity: 0.35;
  pointer-events: none;
}

.icon-box {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: rgba(27, 30, 38, 0.9);
  display: grid;
  place-items: center;
  color: #fff;
}

.icon-box svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon-box svg.filled {
  fill: currentColor;
  stroke: none;
}

.icon-label {
  font-size: 10px;
  font-weight: 400;
  color: var(--muted);
}

.loading,
.error {
  text-align: center;
  color: var(--muted);
  padding: 48px 16px;
}

.sheet-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  display: flex;
  align-items: flex-end;
  z-index: 20;
}

.sheet-backdrop[hidden] {
  display: none;
}

.sheet {
  width: 100%;
  background: #0f111a;
  border-radius: 24px 24px 0 0;
  padding: 16px 24px 32px;
}

.sheet-handle {
  width: 48px;
  height: 4px;
  margin: 0 auto 24px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.2);
}

.sheet h2 {
  margin: 0 0 24px;
  font-size: 20px;
  font-weight: 600;
}

.sheet-label {
  margin: 0 0 16px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.54);
}

.sheet hr {
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin: 24px 0 16px;
}

.sheet-row {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 12px 0;
  background: none;
  border: none;
  color: #fff;
  font-size: 16px;
  font-family: inherit;
  text-decoration: none;
  cursor: pointer;
  text-align: left;
}

.sheet-row-icon {
  width: 28px;
  text-align: center;
}

@media (min-width: 480px) {
  .page {
    max-width: 430px;
    margin: 0 auto;
  }
}
