:root {
  --black: #09090b;
  --black-soft: #111114;
  --panel: rgba(20, 20, 23, 0.88);
  --panel-strong: #17171a;
  --gold: #d8b46a;
  --gold-light: #f1d99f;
  --gold-dark: #9f7936;
  --ivory: #f5f2eb;
  --muted: #a9a6a0;
  --border: rgba(216, 180, 106, 0.22);
  --border-soft: rgba(255, 255, 255, 0.08);
  --radius-xl: 32px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --shadow: 0 30px 90px rgba(0, 0, 0, 0.55);
  font-family: "Manrope", "Noto Sans Myanmar", system-ui, sans-serif;
  color: var(--ivory);
  background: var(--black);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  background:
    radial-gradient(circle at 78% -8%, rgba(184, 139, 58, 0.18), transparent 34%),
    radial-gradient(circle at 0% 92%, rgba(216, 180, 106, 0.08), transparent 30%),
    var(--black);
  overflow-x: hidden;
}
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
svg { display: block; }

.ambient {
  position: fixed;
  pointer-events: none;
  z-index: 0;
  border-radius: 999px;
  filter: blur(80px);
  opacity: .45;
}
.ambient-one { width: 260px; height: 260px; background: rgba(193, 145, 59, .18); top: -100px; right: -80px; }
.ambient-two { width: 220px; height: 220px; background: rgba(255, 228, 166, .08); bottom: -90px; left: -100px; }
.grain {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: .04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 160 160' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.88' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.65'/%3E%3C/svg%3E");
}

.page-shell {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: max(16px, env(safe-area-inset-top)) 14px max(24px, env(safe-area-inset-bottom));
}
.digital-card {
  width: min(100%, 520px);
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background: linear-gradient(155deg, rgba(22, 22, 25, .96), rgba(10, 10, 12, .985));
  box-shadow: var(--shadow);
  backdrop-filter: blur(22px);
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 18px 0;
}
.location-chip, .language-switch {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--border-soft);
  background: rgba(255,255,255,.035);
  border-radius: 999px;
}
.location-chip { gap: 7px; padding: 8px 11px; color: #d4d0c8; font-size: 12px; }
.location-chip svg { width: 15px; height: 15px; fill: var(--gold); }
.language-switch { padding: 3px; }
.language-button {
  border: 0;
  padding: 7px 10px;
  border-radius: 999px;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
  font-weight: 700;
  font-size: 11px;
  transition: .2s ease;
}
.language-button.active { color: #16120b; background: var(--gold-light); box-shadow: 0 4px 14px rgba(216,180,106,.22); }

.hero { padding: 30px 22px 4px; text-align: center; }
.portrait-wrap { position: relative; width: 150px; height: 150px; margin: 0 auto 22px; }
.portrait-ring {
  width: 100%; height: 100%; padding: 4px; border-radius: 50%;
  background: conic-gradient(from 230deg, var(--gold-dark), var(--gold-light), var(--gold-dark), var(--gold-light));
  box-shadow: 0 18px 44px rgba(0,0,0,.45), 0 0 0 6px rgba(216,180,106,.05);
}
.portrait { width: 100%; height: 100%; object-fit: cover; object-position: center 42%; border-radius: 50%; border: 4px solid #111114; }
.status-dot {
  position: absolute; right: 10px; bottom: 10px; width: 17px; height: 17px; border-radius: 50%;
  background: #55c98b; border: 3px solid #121215; box-shadow: 0 0 0 3px rgba(85,201,139,.14);
}
.eyebrow, .section-kicker { color: var(--gold); font-size: 10px; font-weight: 800; letter-spacing: .18em; }
h1 { margin: 10px 0 4px; font-family: "Playfair Display", Georgia, serif; font-size: clamp(36px, 11vw, 52px); line-height: .98; letter-spacing: -.035em; }
.professional-title { margin: 12px auto 0; color: var(--gold-light); font-size: 14px; font-weight: 700; line-height: 1.45; }
.tagline { max-width: 390px; margin: 14px auto 0; color: #c3c0b9; font-size: 14px; line-height: 1.75; }
.employer-card {
  margin-top: 22px; padding: 14px; display: flex; align-items: center; gap: 14px; text-align: left;
  border: 1px solid var(--border); border-radius: 18px; background: linear-gradient(145deg, rgba(216,180,106,.075), rgba(255,255,255,.025));
}
.employer-copy { min-width: 0; flex: 1; }
.employer-copy span { display: block; color: var(--muted); font-size: 11px; margin-bottom: 4px; }
.employer-copy strong { font-family: "Playfair Display", Georgia, serif; font-size: 19px; font-weight: 600; }
.employer-logo-wrap { width: 126px; flex: 0 0 126px; padding: 8px; border-radius: 12px; background: #fff; overflow: hidden; }
.employer-logo-wrap img { display: block; width: 100%; height: 46px; object-fit: contain; }

.primary-actions { padding: 22px; }
.button {
  min-height: 52px; border-radius: 16px; border: 1px solid transparent; padding: 0 17px;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  cursor: pointer; font-weight: 800; font-size: 13px; transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.button:active, .action-button:active, .social-button:active { transform: scale(.98); }
.button svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.button-primary {
  width: 100%; color: #17120b; background: linear-gradient(135deg, #f4dda7, #cf9f45 72%, #b77f25);
  box-shadow: 0 14px 32px rgba(194,140,44,.22), inset 0 1px rgba(255,255,255,.6);
}
.button-primary:hover { box-shadow: 0 18px 38px rgba(194,140,44,.31), inset 0 1px rgba(255,255,255,.6); transform: translateY(-1px); }
.action-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 9px; margin-top: 11px; }
.action-button {
  min-width: 0; min-height: 74px; padding: 11px 5px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 7px;
  border: 1px solid var(--border-soft); border-radius: 16px; background: rgba(255,255,255,.025); color: #d8d4cc; font-size: 10px; font-weight: 700; transition: .18s ease;
}
.action-button:hover { border-color: var(--border); background: rgba(216,180,106,.06); }
.action-icon { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; color: var(--gold-light); background: rgba(216,180,106,.1); }
.action-icon svg { width: 17px; height: 17px; fill: currentColor; }

.info-section, .social-section { padding: 4px 22px 24px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.section-heading h2, .share-copy h2, .modal-card h2 { margin: 6px 0 0; font-family: "Playfair Display", Georgia, serif; font-size: 25px; line-height: 1.1; }
.ornament { width: 72px; height: 1px; margin-bottom: 7px; background: linear-gradient(90deg, transparent, var(--gold)); }
.details-list { overflow: hidden; border: 1px solid var(--border-soft); border-radius: 18px; background: rgba(255,255,255,.018); }
.detail-row {
  display: grid; grid-template-columns: minmax(86px, .75fr) minmax(0, 1.55fr) 18px; align-items: center; gap: 10px;
  min-height: 62px; padding: 12px 14px; border-bottom: 1px solid var(--border-soft); transition: background .18s ease;
}
.detail-row:last-child { border-bottom: 0; }
a.detail-row:hover { background: rgba(216,180,106,.05); }
.detail-label { color: var(--muted); font-size: 11px; }
.detail-row strong { min-width: 0; overflow-wrap: anywhere; color: #eeeae2; font-size: 12px; font-weight: 700; text-align: right; }
.email-row { grid-template-columns: minmax(70px, .55fr) minmax(0, 1.8fr) 18px; }
.email-row strong { white-space: nowrap; overflow-wrap: normal; font-size: clamp(10px, 3vw, 12px); letter-spacing: -.025em; }
.detail-row svg { width: 17px; height: 17px; fill: none; stroke: var(--gold); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.static-row svg { fill: var(--gold); stroke: none; }

.compact-heading { margin-bottom: 12px; }
.social-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.social-button {
  min-height: 54px; display: flex; align-items: center; justify-content: center; gap: 10px;
  border: 1px solid var(--border-soft); border-radius: 16px; background: rgba(255,255,255,.025); color: #ddd9d1; font-size: 12px; font-weight: 800; transition: .18s ease;
}
.social-button:hover { border-color: var(--border); background: rgba(216,180,106,.055); }
.social-button svg { width: 20px; height: 20px; fill: var(--gold-light); }

.share-panel { margin: 0 14px 14px; padding: 22px; border: 1px solid var(--border); border-radius: 24px; background: linear-gradient(145deg, rgba(216,180,106,.09), rgba(255,255,255,.025)); }
.share-copy p { margin: 10px 0 0; color: var(--muted); font-size: 12px; line-height: 1.6; }
.share-buttons { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 18px; }
.button-secondary { color: #18140c; background: var(--gold-light); }
.button-ghost { color: #e1ddd4; border-color: var(--border); background: rgba(255,255,255,.025); }

footer { padding: 24px 18px 28px; text-align: center; color: #77746f; font-size: 10px; }
footer p { margin: 4px 0; }
.footer-mark {
  width: 42px; height: 42px; margin: 0 auto 10px; display: grid; place-items: center; border-radius: 50%;
  border: 1px solid var(--border); color: var(--gold); font-family: "Playfair Display", Georgia, serif; font-weight: 700; letter-spacing: -.04em;
}

.modal { position: fixed; inset: 0; z-index: 20; display: none; align-items: center; justify-content: center; padding: 18px; }
.modal.open { display: flex; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.78); backdrop-filter: blur(9px); }
.modal-card {
  position: relative; z-index: 1; width: min(100%, 380px); padding: 26px; text-align: center;
  border: 1px solid var(--border); border-radius: 28px; background: linear-gradient(155deg, #1c1c20, #0e0e10); box-shadow: var(--shadow);
  animation: modal-in .22s ease both;
}
@keyframes modal-in { from { opacity: 0; transform: translateY(12px) scale(.97); } to { opacity: 1; transform: translateY(0) scale(1); } }
.modal-close { position: absolute; top: 13px; right: 13px; width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid var(--border-soft); border-radius: 50%; color: #bbb7b0; background: rgba(255,255,255,.035); cursor: pointer; }
.modal-close svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.qr-frame { width: 240px; height: 240px; margin: 22px auto 16px; padding: 15px; border-radius: 22px; background: #fff; box-shadow: 0 20px 38px rgba(0,0,0,.35); }
.qr-frame img { display: block; width: 100%; height: 100%; object-fit: contain; }
.modal-card > p { color: var(--muted); font-size: 12px; line-height: 1.6; }
.modal-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin-top: 18px; }
.modal-actions .button { min-height: 48px; padding: 0 10px; font-size: 11px; }
.toast {
  position: fixed; z-index: 30; left: 50%; bottom: max(24px, env(safe-area-inset-bottom)); transform: translate(-50%, 20px);
  max-width: calc(100% - 36px); padding: 11px 15px; border: 1px solid var(--border); border-radius: 999px;
  color: #17120b; background: var(--gold-light); box-shadow: 0 14px 32px rgba(0,0,0,.35); font-size: 11px; font-weight: 800;
  opacity: 0; pointer-events: none; transition: .22s ease;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

html[lang="mm"] .professional-title { font-size: 13px; }
html[lang="mm"] .tagline { line-height: 1.9; }

@media (min-width: 700px) {
  .page-shell { padding: 34px 20px; }
  .digital-card { border-radius: 38px; }
  .hero { padding-left: 32px; padding-right: 32px; }
}

@media (max-width: 370px) {
  .topbar { padding-left: 13px; padding-right: 13px; }
  .hero, .primary-actions, .info-section, .social-section { padding-left: 16px; padding-right: 16px; }
  .employer-logo-wrap { width: 110px; flex-basis: 110px; }
  .action-grid { gap: 7px; }
  .detail-row { grid-template-columns: 75px minmax(0, 1fr) 16px; padding-left: 11px; padding-right: 11px; }
  .email-row { grid-template-columns: 62px minmax(0, 1fr) 16px; }
  .email-row strong { font-size: 10px; }
}

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