:root {
  --ink: #082332;
  --muted: #60717a;
  --line: #d9e6e7;
  --paper: #f6fbfa;
  --white: #ffffff;
  --teal: #11a9b8;
  --teal-deep: #056171;
  --navy: #062b4b;
  --gold: #d4a84f;
  --emerald: #1f9d73;
  --ruby: #be3151;
  --shadow: 0 24px 70px rgba(8, 35, 50, .15);
  --radius: 8px;
  --font: "Inter Tight", Arial, sans-serif;
  --display: "Newsreader", Georgia, serif;
}

@font-face {
  font-family: "Brother Signature";
  src: url("fonts/brother-signature.otf") format("opentype");
  font-display: swap;
  font-style: normal;
  font-weight: 400;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--font);
  letter-spacing: 0;
}

[hidden] {
  display: none !important;
}

img,
video {
  display: block;
  max-width: 100%;
}

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

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.site-header {
  position: fixed;
  z-index: 100;
  top: 22px;
  left: 50%;
  display: flex;
  width: min(1180px, calc(100% - 28px));
  min-height: 64px;
  transform: translateX(-50%);
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border: 1px solid rgba(255, 255, 255, .66);
  border-radius: 999px;
  background: rgba(255, 255, 255, .82);
  box-shadow: 0 18px 50px rgba(4, 32, 45, .12);
  padding: 8px 10px 8px 18px;
  backdrop-filter: blur(22px);
}

.brand {
  display: flex;
  align-items: center;
  min-width: 224px;
}

.brand img {
  width: 232px;
  height: 42px;
  object-fit: contain;
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: rgba(8, 35, 50, .76);
  font-weight: 700;
}

.main-nav a {
  border-radius: 999px;
  padding: 12px 16px;
}

.main-nav a:hover {
  background: rgba(17, 169, 184, .11);
  color: var(--teal-deep);
}

.header-action,
.tool-button,
.ghost-button,
.hero-verify button,
.verify-search button,
.login-box button,
.cert-form button[type="submit"] {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, var(--teal-deep), var(--teal));
  box-shadow: 0 12px 28px rgba(17, 169, 184, .24);
  padding: 11px 18px;
  font-weight: 800;
  line-height: 1;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.header-action:hover,
.tool-button:hover,
.hero-verify button:hover,
.verify-search button:hover,
.login-box button:hover,
.cert-form button[type="submit"]:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 34px rgba(17, 169, 184, .3);
}

.header-action svg,
.tool-button svg,
.ghost-button svg,
.menu-toggle svg,
.hero-verify button svg,
.verify-search button svg,
.login-box button svg,
.cert-form button svg {
  width: 18px;
  height: 18px;
  flex: none;
}

.menu-toggle {
  display: none;
  width: 46px;
  min-height: 46px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  color: var(--ink);
  background: rgba(238, 248, 248, .92);
  padding: 0;
}

.ghost-button {
  min-height: 38px;
  color: var(--ink);
  background: #eef8f8;
  box-shadow: none;
  padding: 9px 13px;
}

.hero {
  position: relative;
  min-height: 86svh;
  overflow: hidden;
  display: flex;
  align-items: center;
  padding: 128px max(24px, calc((100vw - 1180px) / 2)) 64px;
  color: #fff;
}

.hero-video,
.hero-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-video {
  object-fit: cover;
}

.hero-shade {
  background:
    linear-gradient(90deg, rgba(3, 28, 41, .88) 0%, rgba(3, 28, 41, .68) 40%, rgba(3, 28, 41, .18) 100%),
    linear-gradient(0deg, rgba(3, 28, 41, .46), rgba(3, 28, 41, .12));
}

.hero-content {
  position: relative;
  width: min(760px, 100%);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--teal);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #8de8eb;
}

h2,
h3,
p {
  overflow-wrap: break-word;
}

.hero h1,
.page-hero h1,
.admin-topbar h1,
.login-box h1 {
  margin: 0;
  font-family: var(--display);
  font-weight: 700;
  line-height: .95;
}

.hero h1 {
  font-size: clamp(68px, 10vw, 136px);
  overflow-wrap: normal;
  word-break: normal;
}

.hero-copy {
  max-width: 610px;
  margin: 22px 0 32px;
  color: rgba(255, 255, 255, .86);
  font-size: 21px;
  line-height: 1.45;
}

.hero-verify {
  width: min(650px, 100%);
}

.hero-verify label,
.verify-search label,
.cert-form label,
.login-box label {
  display: grid;
  gap: 8px;
  color: rgba(8, 35, 50, .78);
  font-size: 13px;
  font-weight: 800;
}

.hero-verify label {
  color: rgba(255, 255, 255, .78);
}

.hero-verify > div,
.verify-search {
  display: flex;
  align-items: center;
  gap: 10px;
}

.hero-verify input,
.verify-search input,
.cert-form input,
.cert-form select,
.cert-form textarea,
.login-box input {
  width: 100%;
  min-height: 50px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
  padding: 0 15px;
  outline: none;
}

.cert-form textarea {
  min-height: 105px;
  padding-top: 14px;
  resize: vertical;
}

.hero-verify input {
  min-height: 58px;
  border: 1px solid rgba(255, 255, 255, .34);
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 18px 50px rgba(0, 0, 0, .16);
  font-size: 18px;
}

.hero-verify button {
  min-height: 58px;
  padding-inline: 24px;
}

.trust-band {
  overflow: hidden;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  width: min(1180px, calc(100% - 32px));
  margin: -34px auto 0;
  position: relative;
  z-index: 4;
  border: 1px solid rgba(217, 230, 231, .92);
  border-radius: 8px;
  background:
    linear-gradient(90deg, var(--teal-deep), var(--teal), var(--gold), var(--ruby)) top / 100% 4px no-repeat,
    rgba(255, 255, 255, .96);
  box-shadow: 0 28px 70px rgba(8, 35, 50, .14);
}

.trust-band div {
  min-height: 96px;
  display: grid;
  grid-template-columns: 42px 1fr;
  align-content: center;
  align-items: center;
  column-gap: 14px;
  row-gap: 3px;
  border-right: 1px solid var(--line);
  padding: 24px 22px 20px;
}

.trust-band i {
  grid-row: span 2;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(17, 169, 184, .2);
  border-radius: 50%;
  color: var(--teal-deep);
  background: #eefafa;
}

.trust-band svg {
  width: 20px;
  height: 20px;
}

.trust-band div:last-child {
  border-right: 0;
}

.trust-band strong {
  font-size: 22px;
}

.trust-band span {
  color: var(--muted);
}

.verify-strip,
.gemstone-section,
.lab-section,
.certificate-band,
.about-section,
.contact-section,
.split-section,
.page-shell,
.admin-shell {
  width: min(1180px, calc(100% - 32px));
  margin-inline: auto;
}

.verify-strip,
.gemstone-section,
.lab-section,
.certificate-band,
.about-section,
.contact-section {
  padding: 90px 0 0;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 26px;
}

.section-heading h2,
.split-copy h2,
.download-panel h2,
.cert-form-panel h2,
.cert-list-panel h2,
.verification-result h2 {
  margin: 0;
  font-size: 45px;
  line-height: 1;
}

.verify-strip {
  display: grid;
  grid-template-columns: minmax(280px, .72fr) minmax(0, 1.28fr);
  gap: 28px;
  align-items: stretch;
}

.section-copy {
  max-width: 560px;
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 19px;
  line-height: 1.48;
}

.verify-search {
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 18px 45px rgba(8, 35, 50, .09);
  padding: 10px;
}

.verify-search.wide {
  width: min(620px, 100%);
}

.verify-search input {
  border: 0;
  background: transparent;
}

.inline-result {
  grid-column: 1 / -1;
}

.verify-proof-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.verify-proof-grid article {
  display: grid;
  align-content: start;
  gap: 12px;
  min-height: 210px;
  border: 1px solid rgba(217, 230, 231, .92);
  border-radius: var(--radius);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, .96), rgba(239, 249, 249, .92)),
    #fff;
  box-shadow: 0 18px 45px rgba(8, 35, 50, .06);
  padding: 22px;
}

.verify-proof-grid svg {
  width: 34px;
  height: 34px;
  color: var(--teal-deep);
}

.verify-proof-grid strong {
  color: var(--ink);
  font-size: 22px;
  line-height: 1.05;
}

.verify-proof-grid span {
  color: var(--muted);
  line-height: 1.45;
}

.mini-result,
.record-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 18px 45px rgba(8, 35, 50, .08);
  padding: 22px;
}

.mini-result {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.mini-result strong {
  display: block;
  font-size: 22px;
}

.mini-result span,
.record-panel span {
  color: var(--muted);
}

.split-section {
  display: grid;
  grid-template-columns: .92fr 1.08fr;
  gap: 56px;
  align-items: center;
  padding-top: 98px;
}

.split-media img,
.gemstone-feature img,
.login-visual img {
  width: 100%;
  border-radius: var(--radius);
  object-fit: cover;
  box-shadow: var(--shadow);
}

.split-media img {
  aspect-ratio: 4 / 5;
}

.split-copy h2 {
  font-size: 54px;
}

.process-list {
  display: grid;
  gap: 16px;
  margin-top: 28px;
}

.process-list div {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 8px 18px;
  border-top: 1px solid var(--line);
  padding-top: 18px;
}

.process-list span {
  grid-row: span 2;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 999px;
  color: #fff;
  background: var(--ink);
  font-weight: 900;
}

.process-list strong {
  font-size: 22px;
}

.process-list p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.gemstone-showcase {
  display: grid;
  grid-template-columns: minmax(0, 1.28fr) minmax(320px, .72fr);
  gap: 18px;
  align-items: stretch;
}

.gemstone-feature {
  position: relative;
  min-height: 440px;
  overflow: hidden;
  margin: 0;
  border-radius: var(--radius);
  background: #071016;
  box-shadow: var(--shadow);
}

.gemstone-feature img {
  height: 100%;
  min-height: 440px;
  border-radius: 0;
  box-shadow: none;
}

.gemstone-feature::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(180deg, rgba(2, 8, 12, .02) 38%, rgba(2, 8, 12, .88) 100%);
}

.gemstone-feature figcaption {
  position: absolute;
  z-index: 1;
  left: 24px;
  right: 24px;
  bottom: 22px;
  display: grid;
  gap: 8px;
  color: #fff;
}

.gemstone-feature figcaption span,
.stone-focus-grid span {
  color: #8de8eb;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.gemstone-feature figcaption strong {
  max-width: 620px;
  font-family: var(--display);
  font-size: 34px;
  line-height: 1;
}

.gemstone-panel {
  display: grid;
  align-content: space-between;
  gap: 18px;
  border-radius: var(--radius);
  color: #e8fbfb;
  background:
    linear-gradient(145deg, rgba(17, 169, 184, .18), transparent 38%),
    linear-gradient(315deg, rgba(212, 168, 79, .18), transparent 34%),
    #071016;
  padding: 24px;
  box-shadow: var(--shadow);
}

.gemstone-panel p {
  margin: 0;
  color: rgba(232, 251, 251, .8);
  font-size: 19px;
  line-height: 1.45;
}

.gem-tags {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.gem-tags > span {
  display: grid;
  grid-template-columns: 34px 1fr;
  min-height: 54px;
  align-items: center;
  gap: 11px;
  border: 1px solid rgba(255, 255, 255, .14);
  border-left: 4px solid var(--teal);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .09), rgba(255, 255, 255, .035));
  padding: 12px;
  color: #fff;
  font-size: 17px;
  font-weight: 850;
}

.gem-icon {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 999px;
  color: #071016;
  background: #8de8eb;
}

.gem-tags svg {
  width: 18px;
  height: 18px;
}

.gem-tags > span:nth-child(2),
.gem-tags > span:nth-child(5) {
  border-left-color: var(--ruby);
}

.gem-tags > span:nth-child(2) .gem-icon,
.gem-tags > span:nth-child(5) .gem-icon {
  background: #ff6b8b;
}

.gem-tags > span:nth-child(3),
.gem-tags > span:nth-child(6) {
  border-left-color: var(--emerald);
}

.gem-tags > span:nth-child(3) .gem-icon,
.gem-tags > span:nth-child(6) .gem-icon {
  background: #43d69b;
}

.gem-tags > span:nth-child(7),
.gem-tags > span:nth-child(8) {
  border-left-color: var(--gold);
}

.gem-tags > span:nth-child(7) .gem-icon,
.gem-tags > span:nth-child(8) .gem-icon {
  background: #f0c464;
}

.stone-focus-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 18px;
}

.stone-focus-grid article {
  position: relative;
  min-height: 285px;
  overflow: hidden;
  border-radius: var(--radius);
  background: #071016;
  box-shadow: 0 18px 45px rgba(8, 35, 50, .1);
}

.stone-focus-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.stone-focus-grid article::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(180deg, rgba(2, 8, 12, .08) 35%, rgba(2, 8, 12, .82) 100%);
}

.stone-focus-grid div {
  position: absolute;
  z-index: 1;
  left: 20px;
  right: 20px;
  bottom: 18px;
  display: grid;
  gap: 7px;
  color: #fff;
}

.stone-focus-grid strong {
  max-width: 520px;
  font-size: 24px;
  line-height: 1.1;
}

.feature-grid,
.format-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.feature-grid article,
.format-grid > div {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  padding: 24px;
  box-shadow: 0 18px 45px rgba(8, 35, 50, .06);
}

.feature-grid svg {
  width: 34px;
  height: 34px;
  color: var(--teal-deep);
}

.feature-grid h3,
.format-grid strong {
  display: block;
  margin: 18px 0 10px;
  font-size: 22px;
}

.feature-grid p,
.format-grid p,
.site-footer p,
.empty-state p,
.record-panel p,
.about-copy p,
.contact-card p {
  color: var(--muted);
  line-height: 1.55;
}

.about-grid {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 18px;
  align-items: stretch;
}

.about-copy,
.contact-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 18px 45px rgba(8, 35, 50, .06);
  padding: 26px;
}

.about-copy h2,
.contact-card h2 {
  margin: 0 0 16px;
  font-size: 42px;
  line-height: 1;
}

.about-points {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 18px;
}

.about-points span {
  display: grid;
  gap: 7px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #f7fcfc;
  padding: 12px;
  font-weight: 900;
}

.about-points i,
.contact-card i {
  color: var(--teal-deep);
}

.contact-layout {
  display: grid;
  grid-template-columns: 410px minmax(0, 1fr);
  gap: 18px;
  align-items: stretch;
}

.contact-lines {
  display: grid;
  gap: 14px;
}

.contact-line {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 12px;
  align-items: start;
}

.contact-line i {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 999px;
  background: #eef8f8;
}

.contact-line strong,
.contact-line span,
.contact-line a {
  display: block;
}

.contact-line span,
.contact-line a {
  margin-top: 3px;
  color: var(--muted);
}

.map-frame {
  min-height: 360px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #dce9e8;
  box-shadow: 0 18px 45px rgba(8, 35, 50, .08);
}

.map-frame iframe {
  width: 100%;
  height: 100%;
  min-height: 360px;
  border: 0;
}

.contact-section {
  padding-bottom: 94px;
}

.format-grid {
  grid-template-columns: repeat(2, 1fr);
}

.format-ratio {
  display: block;
  border: 1px solid rgba(8, 35, 50, .18);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(17, 169, 184, .18), rgba(212, 168, 79, .22)),
    #fff;
}

.card-ratio {
  width: 220px;
  aspect-ratio: 6 / 4;
}

.credit-ratio {
  width: 220px;
  aspect-ratio: 85.6 / 54;
}

.site-footer {
  display: flex;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto 24px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-top: 1px solid var(--line);
  padding-top: 28px;
}

.site-footer img {
  width: 188px;
  height: 46px;
  object-fit: contain;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  color: var(--muted);
  font-weight: 800;
}

.page-shell {
  padding-top: 126px;
  padding-bottom: 82px;
}

.page-hero {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 32px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 34px;
}

.compact-hero h1 {
  font-size: 64px;
}

.verification-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 20px;
  align-items: start;
  margin-top: 28px;
}

.download-panel,
.cert-form-panel,
.cert-list-panel,
.admin-preview {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 18px 45px rgba(8, 35, 50, .08);
}

.download-panel {
  position: sticky;
  top: 106px;
  display: grid;
  gap: 12px;
  padding: 18px;
}

.download-panel h2 {
  font-size: 22px;
}

.segmented {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #eef8f8;
  padding: 4px;
}

.segmented button {
  min-height: 36px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-weight: 900;
}

.segmented button.active {
  color: #fff;
  background: var(--ink);
}

.empty-state {
  display: grid;
  min-height: 320px;
  place-items: center;
  text-align: center;
  border: 1px dashed #bdd7da;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .64);
  padding: 36px;
}

.empty-state svg {
  width: 48px;
  height: 48px;
  color: var(--teal-deep);
}

.record-panel {
  display: grid;
  gap: 18px;
}

.record-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.record-head h2 {
  margin: 0;
  font-size: 34px;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  color: #fff;
  background: var(--emerald);
  padding: 9px 13px;
  font-size: 13px;
  font-weight: 900;
}

.record-facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.record-facts div {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
}

.record-facts span {
  display: block;
  margin-bottom: 5px;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.record-facts strong {
  font-size: 18px;
}

.certificate-preview-wrap {
  margin-top: 28px;
}

.certificate-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.certificate-toolbar a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--teal-deep);
  font-weight: 900;
}

.certificate-stage {
  width: 100%;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(90deg, rgba(8, 35, 50, .03) 1px, transparent 1px),
    linear-gradient(0deg, rgba(8, 35, 50, .03) 1px, transparent 1px),
    #eef8f8;
  background-size: 24px 24px;
  padding: 22px;
}

.certificate-stage.scaled-preview {
  overflow: hidden;
}

.certificate-stage.scaled-preview .certificate-set {
  margin: 0;
}

.admin-shell {
  padding-top: 118px;
  padding-bottom: 76px;
}

.admin-login {
  display: grid;
  grid-template-columns: 1fr 430px;
  min-height: 680px;
  align-items: center;
  gap: 34px;
}

.login-visual img {
  height: 610px;
}

.login-box {
  display: grid;
  gap: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
  padding: 30px;
}

.login-box h1 {
  font-size: 52px;
}

.admin-topbar,
.panel-heading,
.form-submit-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.admin-topbar {
  margin-bottom: 24px;
}

.admin-topbar h1 {
  font-size: 60px;
}

.admin-actions {
  display: flex;
  gap: 10px;
}

.admin-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 18px;
}

.cert-form-panel,
.cert-list-panel,
.admin-preview {
  padding: 20px;
}

.cert-form {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.signature-admin-block {
  display: grid;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #f7fcfc;
  padding: 14px;
}

.compact-heading h3 {
  margin: 0;
  font-size: 20px;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.form-message {
  margin: 0;
  color: var(--muted);
  font-weight: 800;
}

.form-message.ok {
  color: var(--emerald);
}

.form-message.error {
  color: var(--ruby);
}

.certificate-list {
  display: grid;
  gap: 10px;
  max-height: 840px;
  overflow: auto;
  padding-right: 3px;
}

.list-item {
  display: grid;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  padding: 13px;
}

.list-item strong {
  font-size: 18px;
}

.list-item span {
  color: var(--muted);
  font-size: 14px;
}

.list-actions {
  display: flex;
  gap: 8px;
}

.list-actions button,
.list-actions a {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  padding: 7px 12px;
  font-weight: 900;
}

.list-actions .danger {
  color: var(--ruby);
}

.admin-preview {
  margin-top: 18px;
}

.print-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding-top: 118px;
  padding-bottom: 80px;
}

.print-stage {
  display: grid;
  place-items: center;
}

.empty-state.standalone {
  margin-top: 80px;
}

.certificate {
  position: relative;
  flex: none;
  overflow: hidden;
  border: 1px solid #b9d4d7;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 30px 80px rgba(8, 35, 50, .18);
  color: var(--ink);
}

.certificate::before {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 18px;
  border: 1px solid rgba(8, 35, 50, .12);
  border-radius: 6px;
  pointer-events: none;
}

.certificate-set {
  display: grid;
  width: max-content;
  gap: 20px;
}

.certificate-set-card {
  grid-template-columns: 1fr;
}

.certificate-set-credit {
  grid-template-columns: 1fr;
}

.certificate-card {
  width: 960px;
  height: 640px;
  padding: 34px;
}

.certificate-credit {
  width: 856px;
  height: 540px;
  border-radius: 34px;
  padding: 22px;
}

.certificate-credit::before {
  inset: 14px;
  border-radius: 22px;
}

.cert-watermark {
  display: none;
}

.cert-topline {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 10px;
  background: linear-gradient(90deg, var(--teal-deep), var(--teal), var(--gold), var(--ruby));
}

.cert-header,
.cert-body,
.cert-grid,
.cert-footer {
  position: relative;
  z-index: 1;
}

.cert-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 8px;
}

.cert-logo-wrap {
  display: grid;
  width: 270px;
  height: 72px;
  align-items: center;
  border-radius: 8px;
  background: rgba(255, 255, 255, .72);
  padding: 7px 10px;
}

.cert-logo-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.cert-title {
  display: grid;
  justify-items: end;
  gap: 5px;
  text-align: right;
}

.cert-title span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.cert-title strong {
  color: var(--navy);
  font-size: 24px;
}

.cert-body {
  display: grid;
  grid-template-columns: 245px 1fr;
  gap: 26px;
  margin-top: 24px;
}

.cert-gem {
  margin: 0;
}

.cert-gem img {
  width: 245px;
  height: 190px;
  border: 1px solid var(--line);
  border-radius: 8px;
  object-fit: cover;
  background: #fff;
}

.cert-gem figcaption {
  margin-top: 8px;
  color: var(--teal-deep);
  font-weight: 900;
  text-align: center;
}

.cert-summary {
  min-width: 0;
}

.cert-badge {
  display: inline-block;
  border-radius: 999px;
  color: #fff;
  background: var(--emerald);
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 900;
  line-height: 1;
}

.cert-badge-review {
  background: var(--gold);
}

.cert-badge-archived {
  background: var(--muted);
}

.cert-summary h2 {
  margin: 12px 0 8px;
  color: var(--navy);
  font-family: var(--display);
  font-size: 42px;
  line-height: 1;
}

.cert-summary p {
  margin: 0;
  color: #53676f;
  font-size: 15px;
  line-height: 1.42;
}

.cert-facts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin: 14px 0 0;
}

.cert-facts div,
.cert-grid div {
  border: 1px solid rgba(8, 35, 50, .11);
  border-radius: 8px;
  background: rgba(255, 255, 255, .68);
  padding: 8px 10px;
}

.cert-facts dt,
.cert-grid span {
  display: block;
  color: #66777e;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.cert-facts dd {
  margin: 3px 0 0;
  font-size: 13px;
  font-weight: 900;
}

.cert-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 16px;
}

.cert-grid strong {
  display: block;
  min-height: 18px;
  margin-top: 4px;
  font-size: 13px;
}

.cert-footer {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 22px;
  margin-top: 18px;
}

.cert-signature {
  min-width: 240px;
}

.cert-signature-mark {
  display: flex;
  width: 240px;
  height: 52px;
  align-items: end;
  border-bottom: 1px solid rgba(8, 35, 50, .74);
  margin-bottom: 8px;
}

.cert-signature-mark img {
  max-width: 220px;
  max-height: 48px;
  object-fit: contain;
}

.cert-signature .font-signature {
  display: block;
  width: auto;
  height: auto;
  margin: 0 0 -7px;
  color: #09283a;
  background: transparent;
  font-family: "Allura", cursive;
  font-size: 46px;
  line-height: 1;
}

.cert-signature strong,
.cert-signature small {
  display: block;
}

.cert-signature small,
.cert-verify p {
  color: var(--muted);
  font-size: 12px;
}

.cert-verify {
  display: flex;
  align-items: center;
  gap: 10px;
}

.cert-verify p {
  margin: 0;
  font-weight: 800;
}

.cert-qr {
  display: grid;
  width: 70px;
  height: 70px;
  place-items: center;
  border: 1px solid rgba(8, 35, 50, .2);
  border-radius: 8px;
  background: #fff;
  padding: 5px;
}

.cert-qr svg {
  display: block;
  width: 100%;
  height: 100%;
}

.certificate-credit .cert-logo-wrap {
  width: 190px;
  height: 46px;
  padding: 5px 8px;
}

.certificate-credit .cert-title span {
  font-size: 11px;
}

.certificate-credit .cert-title strong {
  font-size: 19px;
}

.certificate-credit .cert-body {
  grid-template-columns: 160px 1fr;
  gap: 16px;
  margin-top: 10px;
}

.certificate-credit .cert-gem img {
  width: 160px;
  height: 118px;
}

.certificate-credit .cert-gem figcaption {
  margin-top: 6px;
  font-size: 13px;
}

.certificate-credit .cert-badge {
  gap: 6px;
  padding: 6px 10px;
  font-size: 12px;
}

.certificate-credit .cert-summary h2 {
  margin: 8px 0 5px;
  font-size: 28px;
}

.certificate-credit .cert-summary p {
  max-height: 28px;
  overflow: hidden;
  font-size: 11px;
  line-height: 1.3;
}

.certificate-credit .cert-facts {
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
  margin-top: 8px;
}

.certificate-credit .cert-facts div {
  padding: 6px 8px;
}

.certificate-credit .cert-facts dd {
  font-size: 11px;
}

.certificate-credit .cert-grid {
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin-top: 8px;
}

.certificate-credit .cert-grid div {
  padding: 5px 7px;
}

.certificate-credit .cert-grid strong {
  min-height: 13px;
  margin-top: 3px;
  font-size: 10px;
}

.certificate-credit .cert-facts dt,
.certificate-credit .cert-grid span {
  font-size: 8px;
}

.certificate-credit .cert-footer {
  position: absolute;
  right: 22px;
  bottom: 16px;
  left: 22px;
  margin-top: 0;
}

.certificate-credit .cert-signature {
  min-width: 184px;
}

.certificate-credit .cert-signature-mark {
  width: 184px;
  height: 34px;
  margin-bottom: 6px;
}

.certificate-credit .cert-signature-mark img {
  max-width: 170px;
  max-height: 30px;
}

.certificate-credit .cert-signature .font-signature {
  font-size: 30px;
  margin-bottom: -6px;
}

.certificate-credit .cert-signature strong {
  font-size: 13px;
}

.certificate-credit .cert-signature small,
.certificate-credit .cert-verify p {
  font-size: 10px;
}

.certificate-credit .cert-qr {
  width: 56px;
  height: 56px;
  border-radius: 7px;
  padding: 4px;
}

.certificate-back {
  color: #fff;
  background:
    radial-gradient(circle at 18% 20%, rgba(17, 169, 184, .28), transparent 28%),
    radial-gradient(circle at 88% 72%, rgba(212, 168, 79, .24), transparent 30%),
    linear-gradient(135deg, #061724 0%, #082b3f 46%, #061018 100%);
}

.certificate-back::before {
  border-color: rgba(141, 232, 235, .2);
}

.cert-back-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px),
    linear-gradient(0deg, rgba(255, 255, 255, .05) 1px, transparent 1px);
  background-size: 28px 28px;
  opacity: .55;
}

.cert-back-header,
.cert-back-body,
.cert-back-footer {
  position: relative;
  z-index: 1;
}

.cert-back-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.cert-back-header img {
  width: 260px;
  height: 70px;
  border: 1px solid rgba(255, 255, 255, .78);
  border-radius: 8px;
  background: rgba(255, 255, 255, .92);
  object-fit: contain;
  padding: 7px 10px;
  filter: drop-shadow(0 14px 30px rgba(0, 0, 0, .24));
}

.cert-back-header div {
  display: grid;
  justify-items: end;
  gap: 5px;
  text-align: right;
}

.cert-back-header span,
.cert-back-copy dt {
  color: rgba(141, 232, 235, .92);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.cert-back-header strong {
  font-size: 25px;
}

.cert-back-body {
  display: grid;
  grid-template-columns: 245px 1fr;
  gap: 28px;
  align-items: center;
  margin-top: 54px;
}

.cert-back-qr-panel {
  display: grid;
  justify-items: center;
  gap: 12px;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 8px;
  background: rgba(255, 255, 255, .08);
  padding: 20px;
}

.cert-qr-large {
  width: 174px;
  height: 174px;
  border-radius: 12px;
  padding: 8px;
}

.cert-back-qr-panel p,
.cert-back-copy p,
.cert-back-footer span {
  color: rgba(255, 255, 255, .72);
}

.cert-back-footer span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cert-back-qr-panel p {
  margin: 0;
  text-align: center;
  font-weight: 800;
}

.cert-back-copy h2 {
  margin: 0;
  font-family: var(--display);
  font-size: 52px;
  line-height: .95;
}

.cert-back-copy p {
  max-width: 470px;
  line-height: 1.5;
}

.cert-back-copy dl {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 18px 0 0;
}

.cert-back-copy dl div {
  border: 1px solid rgba(255, 255, 255, .13);
  border-radius: 8px;
  background: rgba(255, 255, 255, .08);
  padding: 12px;
}

.cert-back-copy dd {
  margin: 4px 0 0;
  font-weight: 900;
}

.cert-back-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 54px;
  border-top: 1px solid rgba(255, 255, 255, .16);
  padding-top: 16px;
}

.cert-back-footer strong {
  color: #8de8eb;
  font-size: 20px;
}

.certificate-credit .cert-back-header img {
  width: 218px;
  height: 56px;
}

.certificate-credit .cert-back-header strong {
  font-size: 20px;
}

.certificate-credit .cert-back-body {
  grid-template-columns: 178px 1fr;
  gap: 20px;
  margin-top: 32px;
}

.certificate-credit .cert-back-qr-panel {
  padding: 14px;
}

.certificate-credit .cert-qr-large {
  width: 132px;
  height: 132px;
  border-radius: 10px;
}

.certificate-credit .cert-back-copy h2 {
  font-size: 36px;
}

.certificate-credit .cert-back-copy p {
  max-height: 66px;
  overflow: hidden;
  font-size: 13px;
}

.certificate-credit .cert-back-copy dl {
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.certificate-credit .cert-back-copy dl div {
  padding: 8px;
}

.certificate-credit .cert-back-footer {
  margin-top: 28px;
  font-size: 12px;
}

.certificate-front {
  display: grid;
  grid-template-rows: auto auto auto 1fr;
}

.certificate-card {
  padding: 26px 28px;
}

.certificate-card .cert-logo-wrap {
  width: 238px;
  height: 58px;
}

.certificate-card .cert-body {
  grid-template-columns: 220px 1fr;
  gap: 22px;
  margin-top: 16px;
}

.certificate-card .cert-gem img {
  width: 220px;
  height: 150px;
}

.certificate-card .cert-summary h2 {
  margin: 9px 0 6px;
  font-size: 38px;
}

.certificate-card .cert-summary p {
  max-height: 42px;
  overflow: hidden;
}

.certificate-card .cert-facts {
  margin-top: 10px;
}

.certificate-card .cert-grid {
  gap: 7px;
  margin-top: 13px;
}

.certificate-card .cert-grid div,
.certificate-card .cert-facts div {
  padding: 7px 9px;
}

.certificate-card .cert-grid strong,
.certificate-card .cert-facts dd {
  font-size: 12px;
}

.certificate-card .cert-footer {
  align-self: end;
  margin-top: 10px;
}

.certificate-card .cert-signature-mark {
  height: 42px;
}

.certificate-card .cert-signature-mark img {
  max-height: 38px;
}

.cert-signature .font-signature {
  font-family: "Allura", cursive;
  font-size: 52px;
  font-weight: 400;
  letter-spacing: 0;
  transform: rotate(-1.4deg);
}

.cert-signature-mark {
  align-items: center;
}

.certificate-back {
  color: var(--ink);
  background: #f7fcfc;
}

.certificate-back::before {
  border-color: rgba(8, 35, 50, .12);
}

.cert-back-bg {
  display: none;
}

.cert-back-header img {
  border-color: rgba(8, 35, 50, .1);
  background: rgba(255, 255, 255, .78);
  filter: none;
}

.cert-back-header span,
.cert-back-copy dt {
  color: var(--teal-deep);
}

.cert-back-header strong,
.cert-back-copy h2,
.cert-back-copy dd,
.cert-back-footer strong {
  color: var(--navy);
}

.cert-back-qr-panel {
  border-color: rgba(8, 35, 50, .12);
  background: rgba(255, 255, 255, .76);
}

.cert-back-qr-panel p,
.cert-back-copy p,
.cert-back-footer span {
  color: var(--muted);
}

.cert-back-copy dl div {
  border-color: rgba(8, 35, 50, .11);
  background: rgba(255, 255, 255, .72);
}

.cert-back-footer {
  border-top-color: rgba(8, 35, 50, .12);
}

.certificate-credit {
  width: 540px;
  height: 340px;
  border-radius: 18px;
  padding: 16px;
}

.certificate-credit.certificate-front {
  grid-template-rows: auto auto 1fr;
}

.certificate-credit::before {
  inset: 10px;
  border-radius: 12px;
}

.certificate-credit .cert-topline {
  height: 6px;
}

.certificate-credit .cert-watermark {
  right: -10px;
  bottom: -32px;
  font-size: 150px;
}

.certificate-credit .cert-header {
  gap: 12px;
  padding-top: 0;
}

.certificate-credit .cert-logo-wrap {
  width: 142px;
  height: 34px;
  padding: 4px 6px;
}

.certificate-credit .cert-title {
  gap: 2px;
}

.certificate-credit .cert-title span {
  font-size: 7px;
}

.certificate-credit .cert-title strong {
  font-size: 13px;
}

.certificate-credit .cert-body {
  grid-template-columns: 118px 1fr;
  gap: 12px;
  margin-top: 8px;
}

.certificate-credit .cert-gem img {
  width: 118px;
  height: 82px;
}

.certificate-credit .cert-gem figcaption {
  margin-top: 4px;
  font-size: 10px;
}

.certificate-credit .cert-badge {
  padding: 5px 9px;
  font-size: 10px;
}

.certificate-credit .cert-summary h2 {
  margin: 6px 0 4px;
  font-size: 22px;
}

.certificate-credit .cert-summary p {
  display: none;
}

.certificate-credit .cert-facts {
  grid-template-columns: repeat(2, 1fr);
  gap: 4px;
  margin-top: 6px;
}

.certificate-credit .cert-facts div {
  min-height: 33px;
  padding: 4px 6px;
}

.certificate-credit .cert-facts dt {
  font-size: 6px;
}

.certificate-credit .cert-facts dd {
  margin-top: 1px;
  font-size: 8px;
}

.certificate-credit .cert-grid {
  display: none;
}

.certificate-credit .cert-footer {
  position: relative;
  grid-row: 3;
  right: auto;
  bottom: auto;
  left: auto;
  align-self: end;
  gap: 10px;
  margin-top: 7px;
}

.certificate-credit .cert-signature {
  min-width: 128px;
}

.certificate-credit .cert-signature-mark {
  width: 128px;
  height: 24px;
  margin-bottom: 3px;
}

.certificate-credit .cert-signature-mark img {
  max-width: 122px;
  max-height: 21px;
}

.certificate-credit .cert-signature .font-signature {
  font-size: 25px;
  margin-bottom: -4px;
}

.certificate-credit .cert-signature strong {
  font-size: 9px;
}

.certificate-credit .cert-signature small {
  max-width: 150px;
  font-size: 7px;
  white-space: nowrap;
}

.certificate-credit .cert-verify {
  gap: 6px;
}

.certificate-credit .cert-verify p {
  font-size: 7px;
  line-height: 1.2;
}

.certificate-credit .cert-qr {
  width: 42px;
  height: 42px;
  border-radius: 6px;
  padding: 3px;
}

.certificate-credit .cert-back-header img {
  width: 142px;
  height: 34px;
  padding: 4px 6px;
}

.certificate-credit .cert-back-header span {
  font-size: 7px;
}

.certificate-credit .cert-back-header strong {
  font-size: 13px;
}

.certificate-credit .cert-back-body {
  grid-template-columns: 120px 1fr;
  gap: 13px;
  margin-top: 16px;
}

.certificate-credit .cert-back-qr-panel {
  gap: 6px;
  padding: 9px;
}

.certificate-credit .cert-qr-large {
  width: 88px;
  height: 88px;
  border-radius: 8px;
  padding: 5px;
}

.certificate-credit .cert-back-qr-panel p {
  font-size: 8px;
  line-height: 1.2;
}

.certificate-credit .cert-back-copy h2 {
  font-size: 25px;
}

.certificate-credit .cert-back-copy p {
  max-height: 42px;
  overflow: hidden;
  font-size: 9px;
  line-height: 1.35;
}

.certificate-credit .cert-back-copy dl {
  gap: 5px;
  margin-top: 9px;
}

.certificate-credit .cert-back-copy dl div {
  padding: 5px;
}

.certificate-credit .cert-back-copy dt {
  font-size: 6px;
}

.certificate-credit .cert-back-copy dd {
  margin-top: 2px;
  font-size: 9px;
}

.certificate-credit .cert-back-footer {
  gap: 8px;
  margin-top: 11px;
  padding-top: 8px;
  font-size: 9px;
  justify-content: flex-end;
  line-height: 1.2;
}

.certificate-credit .cert-back-footer strong {
  font-size: 10px;
}

.certificate-credit .cert-back-footer span {
  display: none;
}

.contact-form {
  display: grid;
  gap: 12px;
  margin-top: 22px;
  border-top: 1px solid var(--line);
  padding-top: 18px;
}

.contact-form label {
  display: grid;
  gap: 8px;
  color: rgba(8, 35, 50, .78);
  font-size: 13px;
  font-weight: 800;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
  padding: 0 13px;
  outline: none;
}

.contact-form textarea {
  min-height: 104px;
  padding-top: 12px;
  resize: vertical;
}

.contact-form button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, var(--teal-deep), var(--teal));
  box-shadow: 0 12px 28px rgba(17, 169, 184, .24);
  padding: 11px 18px;
  font-weight: 800;
}

.contact-form button svg {
  width: 18px;
  height: 18px;
}

/* Export-safe certificate layout. Kept at the end so old generated CSS rules cannot override it. */
.certificate {
  background: #fff;
}

.certificate-front {
  display: grid;
  grid-template-rows: auto auto auto 1fr;
}

.cert-footer {
  align-self: end;
  border-top: 1px solid rgba(8, 35, 50, .1);
  padding-top: 12px;
}

.cert-signature-mark {
  align-items: center;
}

.cert-signature .font-signature {
  font-family: "Allura", cursive;
  font-weight: 400;
  letter-spacing: 0;
  transform: rotate(-1.4deg);
}

.certificate-card {
  width: 960px;
  height: 640px;
  padding: 24px 28px 22px;
}

.certificate-card::before {
  inset: 16px;
}

.certificate-card .cert-header {
  padding-top: 4px;
}

.certificate-card .cert-logo-wrap {
  width: 236px;
  height: 56px;
}

.certificate-card .cert-body {
  grid-template-columns: 232px 1fr;
  gap: 22px;
  margin-top: 12px;
}

.certificate-card .cert-gem img {
  width: 232px;
  height: 156px;
}

.certificate-card .cert-summary h2 {
  margin: 9px 0 5px;
  font-size: 37px;
}

.certificate-card .cert-summary p {
  max-height: 39px;
  overflow: hidden;
  font-size: 14px;
}

.certificate-card .cert-facts {
  margin-top: 10px;
}

.certificate-card .cert-grid {
  gap: 7px;
  margin-top: 11px;
}

.certificate-card .cert-grid div,
.certificate-card .cert-facts div {
  min-height: 47px;
  padding: 7px 9px;
}

.certificate-card .cert-grid strong,
.certificate-card .cert-facts dd {
  font-size: 12px;
}

.certificate-card .cert-footer {
  margin-top: 10px;
}

.certificate-card .cert-signature-mark {
  height: 42px;
}

.certificate-card .cert-signature .font-signature {
  font-size: 50px;
}

.certificate-card .cert-qr {
  width: 68px;
  height: 68px;
}

.certificate-back {
  display: grid;
  grid-template-rows: auto 1fr auto;
  color: var(--ink);
  background: #f8fcfc;
}

.certificate-back::before {
  border-color: rgba(8, 35, 50, .12);
}

.cert-back-bg {
  display: none;
}

.cert-back-header img {
  border-color: rgba(8, 35, 50, .1);
  background: #fff;
  filter: none;
}

.cert-back-header span,
.cert-back-copy dt {
  color: var(--teal-deep);
}

.cert-back-header strong,
.cert-back-copy h2,
.cert-back-copy dd,
.cert-back-footer strong {
  color: var(--navy);
}

.cert-back-body {
  align-self: center;
}

.cert-back-qr-panel,
.cert-back-copy dl div {
  border-color: rgba(8, 35, 50, .11);
  background: #fff;
}

.cert-back-qr-panel p,
.cert-back-copy p,
.cert-back-footer span {
  color: var(--muted);
}

.cert-back-footer {
  border-top-color: rgba(8, 35, 50, .12);
}

.certificate-credit {
  width: 856px;
  height: 540px;
  border-radius: 30px;
  padding: 20px 22px 18px;
}

.certificate-credit::before {
  inset: 13px;
  border-radius: 20px;
}

.certificate-credit.certificate-front {
  grid-template-rows: auto auto auto 1fr;
}

.certificate-credit .cert-topline {
  height: 7px;
}

.certificate-credit .cert-header {
  gap: 16px;
  padding-top: 2px;
}

.certificate-credit .cert-logo-wrap {
  width: 190px;
  height: 46px;
  padding: 5px 8px;
}

.certificate-credit .cert-title span {
  font-size: 10px;
}

.certificate-credit .cert-title strong {
  font-size: 18px;
}

.certificate-credit .cert-body {
  grid-template-columns: 170px 1fr;
  gap: 16px;
  margin-top: 10px;
}

.certificate-credit .cert-gem img {
  width: 170px;
  height: 116px;
}

.certificate-credit .cert-gem figcaption {
  margin-top: 5px;
  font-size: 12px;
}

.certificate-credit .cert-badge {
  padding: 6px 10px;
  font-size: 11px;
}

.certificate-credit .cert-summary h2 {
  margin: 5px 0 3px;
  font-size: 25px;
  line-height: 1.02;
}

.certificate-credit .cert-summary p {
  display: block;
  height: 17px;
  max-height: none;
  overflow: hidden;
  margin: 0;
  font-size: 10px;
  line-height: 17px;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.certificate-credit .cert-facts {
  grid-template-columns: repeat(4, 1fr);
  gap: 5px;
  margin-top: 4px;
}

.certificate-credit .cert-facts div {
  min-height: 37px;
  padding: 5px 7px;
}

.certificate-credit .cert-facts dt,
.certificate-credit .cert-grid span {
  font-size: 7px;
}

.certificate-credit .cert-facts dd {
  margin-top: 2px;
  font-size: 9px;
}

.certificate-credit .cert-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 5px;
  margin-top: 8px;
}

.certificate-credit .cert-grid div {
  min-height: 37px;
  padding: 5px 7px;
}

.certificate-credit .cert-grid strong {
  min-height: 12px;
  margin-top: 2px;
  font-size: 9px;
  line-height: 1.12;
}

.certificate-credit .cert-footer {
  position: relative;
  grid-row: auto;
  right: auto;
  bottom: auto;
  left: auto;
  gap: 12px;
  margin-top: 8px;
  padding-top: 8px;
}

.certificate-credit .cert-signature {
  min-width: 176px;
}

.certificate-credit .cert-signature-mark {
  width: 176px;
  height: 30px;
  margin-bottom: 4px;
}

.certificate-credit .cert-signature-mark img {
  max-width: 168px;
  max-height: 27px;
}

.certificate-credit .cert-signature .font-signature {
  font-size: 34px;
  margin-bottom: -5px;
}

.certificate-credit .cert-signature strong {
  font-size: 11px;
}

.certificate-credit .cert-signature small,
.certificate-credit .cert-verify p {
  font-size: 8px;
  line-height: 1.15;
}

.certificate-credit .cert-verify {
  gap: 7px;
}

.certificate-credit .cert-qr {
  width: 48px;
  height: 48px;
  border-radius: 7px;
  padding: 3px;
}

.certificate-credit .cert-back-header img {
  width: 188px;
  height: 46px;
  padding: 5px 8px;
}

.certificate-credit .cert-back-header span {
  font-size: 10px;
}

.certificate-credit .cert-back-header strong {
  font-size: 18px;
}

.certificate-credit .cert-back-body {
  grid-template-columns: 150px 1fr;
  gap: 18px;
  margin-top: 0;
}

.certificate-credit .cert-back-qr-panel {
  gap: 8px;
  padding: 12px;
}

.certificate-credit .cert-qr-large {
  width: 112px;
  height: 112px;
  border-radius: 9px;
  padding: 6px;
}

.certificate-credit .cert-back-qr-panel p {
  font-size: 9px;
  line-height: 1.25;
}

.certificate-credit .cert-back-copy h2 {
  font-size: 32px;
}

.certificate-credit .cert-back-copy p {
  height: 32px;
  max-height: none;
  overflow: hidden;
  font-size: 11px;
  line-height: 1.42;
}

.certificate-credit .cert-back-copy dl {
  gap: 6px;
  margin-top: 10px;
}

.certificate-credit .cert-back-copy dl div {
  padding: 7px;
}

.certificate-credit .cert-back-copy dt {
  font-size: 7px;
}

.certificate-credit .cert-back-copy dd {
  margin-top: 2px;
  font-size: 10px;
}

.certificate-credit .cert-back-footer {
  justify-content: space-between;
  gap: 8px;
  margin-top: 0;
  padding-top: 9px;
  font-size: 10px;
}

.certificate-credit .cert-back-footer strong {
  font-size: 11px;
}

.certificate-credit .cert-back-footer span {
  display: block;
}

.export-capture.certificate-set,
.export-capture .certificate {
  box-shadow: none !important;
}

.export-capture .certificate {
  margin: 0;
}

.export-capture .cert-summary p {
  text-rendering: geometricPrecision;
}

/* Premium accent cards across the site. */
.verify-proof-grid article,
.feature-grid article,
.stone-list div,
.contact-card,
.record-panel,
.download-panel,
.cert-form-panel,
.cert-list-panel,
.admin-settings-card,
.list-item {
  position: relative;
  overflow: hidden;
}

.verify-proof-grid article::before,
.feature-grid article::before,
.stone-list div::before,
.contact-card::before,
.record-panel::before,
.download-panel::before,
.cert-form-panel::before,
.cert-list-panel::before,
.admin-settings-card::before,
.list-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--teal-deep), var(--teal), var(--gold), var(--ruby));
}

.admin-settings-card {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, .9);
  box-shadow: var(--shadow);
  margin-bottom: 18px;
  padding: 22px;
}

.admin-settings-card h2 {
  margin: 3px 0 0;
  font-size: 24px;
}

.switch-row {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
}

.switch-row input {
  width: 46px;
  height: 26px;
  flex: none;
  appearance: none;
  border: 1px solid rgba(8, 35, 50, .18);
  border-radius: 999px;
  background: #dfeaec;
  box-shadow: inset 0 0 0 2px #fff;
  transition: background .2s ease;
}

.switch-row input::before {
  content: "";
  display: block;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 3px 8px rgba(8, 35, 50, .2);
  margin: 2px;
  transition: transform .2s ease;
}

.switch-row input:checked {
  background: linear-gradient(135deg, var(--teal-deep), var(--teal));
}

.switch-row input:checked::before {
  transform: translateX(20px);
}

.admin-settings-card .form-message {
  grid-column: 1 / -1;
}

/* Final certificate polish for print/download accuracy. */
.certificate {
  border-radius: 6px;
}

.certificate-credit {
  border-radius: 18px;
}

.cert-topline {
  z-index: 3;
  top: -1px;
  right: -1px;
  left: -1px;
  height: 10px;
  border-radius: 0;
}

.certificate-card .cert-topline {
  height: 7px;
}

.certificate-credit .cert-topline {
  height: 7px;
}

.certificate-back .cert-topline {
  display: block;
}

.cert-badge {
  display: inline-flex;
  min-width: 78px;
  min-height: 25px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(31, 157, 115, .18);
  padding: 0 12px;
  box-shadow: none;
  line-height: 1;
  white-space: nowrap;
}

.cert-badge::before {
  display: none;
}

.cert-signature-mark {
  overflow: visible;
  align-items: flex-end;
  padding-bottom: 9px;
}

.cert-signature .font-signature {
  margin: 0;
  font-family: "Brother Signature", "Allura", cursive;
  font-weight: 400;
  line-height: .88;
  transform: rotate(-1.2deg);
}

.certificate-card .cert-signature-mark {
  width: 226px;
  height: 50px;
}

.certificate-card .cert-signature .font-signature {
  font-size: 44px;
  transform: translateY(-6px) rotate(-1deg);
}

.certificate-credit {
  border-radius: 18px;
  padding: 18px 22px 16px;
}

.certificate-credit::before {
  inset: 12px;
  border-radius: 18px;
}

.certificate-credit .cert-header {
  padding-top: 5px;
}

.certificate-credit .cert-badge {
  min-width: 70px;
  min-height: 22px;
  padding: 0 9px;
  font-size: 10px;
}

.certificate-credit .cert-summary h2 {
  font-size: 24px;
}

.certificate-credit .cert-facts div,
.certificate-credit .cert-grid div {
  background: rgba(255, 255, 255, .8);
}

.certificate-credit .cert-signature {
  min-width: 188px;
}

.certificate-credit .cert-signature-mark {
  width: 188px;
  height: 38px;
  margin-bottom: 4px;
}

.certificate-credit .cert-signature .font-signature {
  font-size: 34px;
  transform: translateY(-9px) rotate(-1deg);
}

.certificate-credit .cert-signature strong {
  margin-top: 1px;
}

.certificate-back {
  overflow: hidden;
  background:
    radial-gradient(circle at 86% 72%, rgba(17, 169, 184, .12), transparent 34%),
    linear-gradient(135deg, #ffffff 0%, #f7fcfc 56%, #eef8f8 100%);
}

.cert-back-bg {
  display: block;
  background:
    linear-gradient(90deg, rgba(8, 35, 50, .035) 1px, transparent 1px),
    linear-gradient(0deg, rgba(8, 35, 50, .035) 1px, transparent 1px);
  background-size: 28px 28px;
  opacity: .45;
}

.cert-back-watermark {
  position: absolute;
  z-index: 0;
  right: -42px;
  bottom: 38px;
  width: 430px;
  max-width: none;
  opacity: .08;
  pointer-events: none;
}

.cert-back-header,
.cert-back-body,
.cert-back-footer {
  z-index: 1;
}

.cert-back-header {
  padding-top: 8px;
}

.cert-back-body {
  grid-template-columns: 240px 1fr;
  gap: 26px;
  align-self: center;
  margin-top: 26px;
}

.cert-back-copy {
  display: grid;
  min-width: 0;
  gap: 10px;
}

.cert-back-copy h2 {
  margin: 0;
  font-size: 44px;
  line-height: 1.02;
}

.cert-back-copy p {
  max-width: 560px;
  margin: 0;
  line-height: 1.42;
}

.cert-back-copy dl {
  margin-top: 6px;
}

.cert-back-footer {
  margin-top: 22px;
}

.certificate-credit.certificate-back {
  padding: 18px 22px 16px;
}

.certificate-credit .cert-back-watermark {
  right: 16px;
  bottom: 44px;
  width: 300px;
  opacity: .075;
}

.certificate-credit .cert-back-header {
  padding-top: 5px;
}

.certificate-credit .cert-back-header img {
  width: 184px;
  height: 44px;
  background: rgba(255, 255, 255, .86);
}

.certificate-credit .cert-back-header span {
  font-size: 9px;
}

.certificate-credit .cert-back-header strong {
  font-size: 18px;
}

.certificate-credit .cert-back-body {
  grid-template-columns: 150px 1fr;
  gap: 16px;
  margin-top: 12px;
}

.certificate-credit .cert-back-qr-panel {
  gap: 7px;
  padding: 11px;
}

.certificate-credit .cert-qr-large {
  width: 108px;
  height: 108px;
}

.certificate-credit .cert-back-copy {
  gap: 6px;
}

.certificate-credit .cert-back-copy h2 {
  font-size: 28px;
  line-height: 1.02;
}

.certificate-credit .cert-back-copy p {
  height: auto;
  max-height: 42px;
  font-size: 10px;
  line-height: 1.35;
}

.certificate-credit .cert-back-copy dl {
  gap: 5px;
  margin-top: 6px;
}

.certificate-credit .cert-back-copy dl div {
  min-height: 38px;
  padding: 6px;
}

.certificate-credit .cert-back-copy dd {
  font-size: 9px;
}

.certificate-credit .cert-back-footer {
  margin-top: 8px;
  padding-top: 7px;
}

@media (max-width: 980px) {
  .site-header {
    top: 12px;
    border-radius: 24px;
    flex-wrap: wrap;
  }

  .main-nav {
    order: 3;
    width: 100%;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .hero {
    padding-top: 156px;
  }

  .trust-band,
  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .verify-strip,
  .split-section,
  .gemstone-showcase,
  .stone-focus-grid,
  .page-hero,
  .verification-layout,
  .about-grid,
  .contact-layout,
  .admin-login,
  .admin-grid {
    grid-template-columns: 1fr;
  }

  .page-hero {
    align-items: start;
    flex-direction: column;
  }

  .page-shell,
  .admin-shell,
  .print-shell {
    padding-top: 154px;
  }

  .download-panel {
    position: static;
  }

  .login-visual img {
    height: auto;
    aspect-ratio: 16 / 9;
  }

  .admin-topbar {
    align-items: start;
    flex-direction: column;
  }
}

@media (max-width: 720px) {
  .site-header {
    top: 10px;
    width: calc(100% - 20px);
    min-height: 60px;
    flex-wrap: nowrap;
    border-radius: 999px;
    padding: 8px 9px 8px 14px;
  }

  .main-nav,
  .header-action span {
    display: none;
  }

  .menu-toggle {
    display: grid;
  }

  .site-header.menu-open {
    border-radius: 24px;
  }

  .site-header.menu-open .main-nav {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    display: grid;
    width: 100%;
    overflow: hidden;
    border: 1px solid rgba(217, 230, 231, .94);
    border-radius: 20px;
    background: #ffffff;
    box-shadow: 0 18px 45px rgba(8, 35, 50, .14);
    padding: 8px;
  }

  .site-header.menu-open .main-nav a {
    padding: 13px 15px;
  }

  .brand {
    min-width: 178px;
  }

  .brand img {
    width: 184px;
    height: 40px;
  }

  .header-action {
    width: 46px;
    min-height: 46px;
    border-radius: 50%;
    padding: 0;
  }

  .hero {
    min-height: 82svh;
    padding-top: 106px;
    padding-bottom: 46px;
  }

  .hero h1 {
    font-size: 60px;
  }

  .hero-copy {
    font-size: 18px;
  }

  .hero-verify > div,
  .verify-search,
  .mini-result,
  .record-head,
  .site-footer,
  .admin-actions,
  .form-submit-row {
    align-items: stretch;
    flex-direction: column;
  }

  .section-heading h2,
  .split-copy h2,
  .compact-hero h1,
  .admin-topbar h1 {
    font-size: 40px;
  }

  .page-shell,
  .admin-shell,
  .print-shell {
    padding-top: 102px;
  }

  .trust-band,
  .feature-grid,
  .format-grid,
  .verify-proof-grid,
  .record-facts,
  .about-points,
  .form-row {
    grid-template-columns: 1fr;
  }

  .verify-proof-grid article {
    min-height: auto;
  }

  .trust-band div {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .trust-band div:last-child {
    border-bottom: 0;
  }

  .gem-tags {
    grid-template-columns: 1fr;
  }

  .gemstone-feature,
  .gemstone-feature img {
    min-height: 315px;
  }

  .gemstone-feature figcaption {
    left: 16px;
    right: 16px;
    bottom: 16px;
  }

  .gemstone-feature figcaption strong {
    font-size: 25px;
  }

  .gemstone-panel {
    padding: 18px;
  }

  .gemstone-panel p {
    font-size: 16px;
  }

  .stone-focus-grid {
    grid-template-columns: 1fr;
  }

  .stone-focus-grid article {
    min-height: 225px;
  }

  .stone-focus-grid strong {
    font-size: 19px;
  }

  .certificate-stage {
    padding: 12px;
  }
}

@media (max-width: 380px) {
  .hero h1 {
    font-size: 54px;
  }
}

/* Final export guardrails: keep print/download elements clear of crop edges. */
.cert-signature-mark {
  position: relative;
  align-items: flex-end;
  border-bottom: 0;
  overflow: visible;
  padding-bottom: 9px;
}

.cert-signature-mark::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 2px;
  left: 0;
  height: 1px;
  background: rgba(8, 35, 50, .68);
}

.cert-signature-mark img {
  position: relative;
  z-index: 1;
}

.cert-signature .font-signature {
  position: relative;
  z-index: 1;
  display: inline-block;
  line-height: 1;
  transform-origin: left bottom;
  transform: translateY(-12px) scaleY(.62) rotate(-1deg);
}

.certificate-card .cert-signature-mark {
  height: 56px;
  margin-bottom: 4px;
}

.certificate-card .cert-signature .font-signature {
  font-size: 52px;
  transform: translateY(-13px) scaleY(.62) rotate(-1deg);
}

.certificate-credit .cert-signature-mark {
  height: 38px;
  padding-bottom: 6px;
}

.certificate-credit .cert-signature .font-signature {
  font-size: 34px;
  transform: translateY(-10px) scaleY(.62) rotate(-1deg);
}

.cert-back-footer {
  align-self: end;
  margin-top: 12px;
  padding-top: 11px;
  padding-bottom: 10px;
  line-height: 1.1;
}

.cert-back-footer span,
.cert-back-footer strong {
  display: block;
  overflow: visible;
  line-height: 1.3;
  text-overflow: clip;
  transform: translateY(-2px);
}

.certificate-credit .cert-back-footer {
  padding-bottom: 7px;
}

/* Export badge/text corrections. */
.cert-badge {
  display: inline-flex;
  height: 30px;
  min-width: 110px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  overflow: visible;
  padding: 0 14px 0 10px;
  font-size: 13px;
  line-height: 1;
}

.cert-badge::before {
  display: none;
}

.cert-badge-icon {
  position: relative;
  display: block;
  width: 15px;
  height: 15px;
  flex: 0 0 15px;
  border-radius: 50%;
  background: #fff;
}

.cert-badge-icon::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 5px;
  width: 4px;
  height: 7px;
  border-right: 2px solid var(--emerald);
  border-bottom: 2px solid var(--emerald);
  transform: rotate(45deg);
}

.cert-badge-text {
  display: block;
  transform: translateY(-1px);
}

.certificate-card .cert-badge {
  height: 30px;
  margin-bottom: 7px;
}

.certificate-card .cert-summary h2 {
  margin: 6px 0 6px;
  line-height: 1.02;
}

.certificate-card .cert-summary p {
  height: 22px;
  max-height: none;
  overflow: visible;
  margin: 0 0 7px;
  font-size: 14px;
  line-height: 20px;
  white-space: nowrap;
}

.certificate-card .cert-facts {
  margin-top: 6px;
}

.certificate-card .cert-back-copy {
  gap: 8px;
}

.certificate-card .cert-back-copy p {
  max-width: 660px;
  margin: 0;
  font-size: 15px;
  line-height: 1.35;
}

.certificate-card .cert-back-copy dl {
  gap: 10px;
  margin-top: 4px;
}

.certificate-card .cert-back-copy dl div {
  min-height: 58px;
  padding: 9px 12px;
}

.certificate-card .cert-back-copy dt {
  font-size: 11px;
}

.certificate-card .cert-back-copy dd {
  margin-top: 3px;
  font-size: 16px;
}

.certificate-credit .cert-badge {
  height: 23px;
  min-width: 88px;
  gap: 5px;
  padding: 0 9px 0 7px;
  font-size: 10px;
}

.certificate-credit .cert-badge-icon {
  width: 12px;
  height: 12px;
  flex-basis: 12px;
}

.certificate-credit .cert-badge-icon::after {
  top: 2px;
  left: 4px;
  width: 3px;
  height: 6px;
}

/* Export-safe label baselines and certificate field icons. */
.cert-badge-text {
  position: relative;
  top: -2px;
  display: flex;
  height: 30px;
  align-items: center;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 13px;
  font-weight: 700;
  line-height: 30px;
  transform: none;
}

.cert-badge-icon {
  top: -1px;
}

.cert-field-icon {
  display: block;
  width: 15px;
  height: 15px;
  flex: 0 0 15px;
  border-radius: 4px;
  color: var(--teal-deep);
  background: rgba(17, 169, 184, .1);
  padding: 2px;
  overflow: visible;
}

.cert-facts dt,
.cert-data-label,
.cert-back-copy dt {
  display: flex;
  align-items: center;
  gap: 5px;
}

.cert-data-label {
  color: #66777e;
  font-size: 10px;
  font-weight: 900;
  line-height: 16px;
  text-transform: uppercase;
}

.cert-grid .cert-data-label {
  display: flex;
  align-items: center;
  gap: 5px;
}

.cert-data-label-text {
  display: block;
  line-height: 16px;
}

.cert-grid .cert-data-label-text {
  width: auto;
  line-height: 16px;
}

.cert-facts dt,
.cert-back-copy dt {
  line-height: 16px;
}

.cert-facts dt span,
.cert-back-copy dt span {
  display: block;
  line-height: 16px;
}

.certificate-card .cert-facts dd,
.certificate-card .cert-grid strong {
  line-height: 17px;
}

.certificate-card .cert-grid > div {
  display: grid;
  height: 52px;
  min-height: 52px;
  grid-template-rows: 16px 17px;
  align-content: center;
  gap: 3px;
  padding: 5px 9px;
}

.certificate-card .cert-grid .cert-data-label {
  height: 16px;
}

.certificate-card .cert-grid strong {
  height: 17px;
  margin-top: 0;
}

.certificate-card .cert-back-copy dl div {
  display: grid;
  height: 64px;
  min-height: 64px;
  grid-template-rows: 18px 22px;
  align-content: center;
  gap: 2px;
  overflow: visible;
  padding: 8px 12px;
}

.certificate-card .cert-back-copy dt {
  height: 18px;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 10px;
  line-height: 18px;
  overflow: visible;
}

.certificate-card .cert-back-copy dt span {
  line-height: 18px;
}

.certificate-card .cert-back-copy dd {
  display: block;
  height: 22px;
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 15px;
  font-weight: 700;
  line-height: 22px;
  overflow: visible;
}

.certificate-credit .cert-field-icon {
  width: 12px;
  height: 12px;
  flex-basis: 12px;
  border-radius: 3px;
  padding: 1px;
}

.certificate-credit .cert-badge-text {
  top: -1px;
  height: 23px;
  font-size: 10px;
  line-height: 23px;
}

@media print {
  .site-header,
  .site-footer,
  .no-print {
    display: none !important;
  }

  body,
  .print-shell,
  .certificate-stage {
    margin: 0;
    padding: 0;
    background: #fff;
    border: 0;
    box-shadow: none;
  }

  .certificate {
    box-shadow: none;
  }
}
