/* Figma ACADEMY 2588:5623 / 2591:5740. Shared desktop and mobile gate. */
.certificate-gate { box-sizing:border-box; width:502px; max-width:calc(100% - 32px); max-height:calc(100dvh - 32px); margin:auto; padding:24px; border:0; border-radius:14px; background:#f7f8f8; color:var(--academy-navy-900,#1e242a); box-shadow:0 6px 88px -16px #0000003d; overflow-y:auto; font-family:'IRANSansXFaNum','IRANSansX',Tahoma,sans-serif; }
.certificate-gate[open] { display:flex; flex-direction:column; gap:32px; }
.certificate-gate::backdrop { background:transparent; }
.certificate-gate-open .result-figma-card,.certificate-gate-open .verify-lookup-card { filter:blur(12.55px); }
.certificate-gate-open { overflow:hidden; }
.certificate-gate-summary { display:flex; flex-direction:column; align-items:center; gap:16px; flex-shrink:0; padding:32px; border:2px solid #cce8e5; border-radius:10px; background:#ebf6f5; text-align:center; }
.certificate-gate-mark { display:flex; justify-content:center; align-items:center; width:72px; height:48px; border-radius:100px; background:var(--academy-teal,#3c7d76); flex-shrink:0; }
.certificate-gate-mark img,.certificate-gate-start img { display:block; flex-shrink:0; }
.certificate-gate h2 { margin:0; width:100%; font-size:32px; font-weight:600; line-height:48px; color:#1e242a; }
.certificate-gate-summary p { margin:0; color:#4a5a6a; font-size:20px; font-weight:500; line-height:36px; }
.certificate-gate-steps { list-style:none; padding:0 32px; margin:0; display:flex; flex-direction:column; gap:16px; }
.certificate-gate-steps li { display:flex; align-items:center; gap:16px; }
.certificate-gate-steps li > span { width:32px; height:32px; flex:0 0 32px; display:flex; align-items:center; justify-content:center; border-radius:100px; background:#cce8e5; color:#343f4a; font-size:20px; font-weight:500; }
.certificate-gate-steps p { margin:0; font-size:20px; font-weight:500; line-height:36px; color:#1e242a; }
.certificate-gate-buttons { display:flex; flex-direction:column; gap:16px; }
.certificate-gate-buttons .btn { display:flex; align-items:center; justify-content:center; gap:8px; width:100%; min-height:48px; height:auto; margin:0; padding:10px 24px; border-radius:4px; font-size:16px; font-weight:700; line-height:24px; text-decoration:none; box-shadow:none; }
.certificate-gate-buttons .certificate-gate-start { background:#3c7d76; color:#fff; padding-left:16px; border:0; }
.certificate-gate-buttons .btn-secondary { border:2px solid #3c7d76; background:transparent; color:#3c7d76; }
.certificate-gate-buttons .btn:hover { transform:none; filter:brightness(.96); }
.certificate-gate-status { padding:16px; margin:0; color:#343f4a; background:#ebf6f5; border:1px solid #cce8e5; border-radius:10px; font-size:16px; line-height:30px; }
.certificate-gate [hidden] { display:none!important; }
.certificate-gate :focus-visible { outline:3px solid #3c7d76; outline-offset:4px; }
.certificate-profile-card { max-width:646px; margin-inline:auto; }
.certificate-profile-card h1,.certificate-profile-intro { text-align:center; }
.certificate-profile-intro { color:var(--academy-navy-500,#4a5a6a); margin-bottom:24px; }
.certificate-profile-names { display:grid; grid-template-columns:1fr 1fr; gap:16px; }
.certificate-photo-field { padding:24px; margin-top:8px; border:2px dashed #cce8e5; border-radius:10px; background:#ebf6f5; }
.certificate-photo-field > label { display:block; font-weight:700; color:#1e242a; margin-bottom:8px; }
.certificate-photo-help { margin:0 0 16px; color:#4a5a6a; line-height:28px; font-size:14px; }
.certificate-photo-preview { display:block; width:120px; height:120px; object-fit:cover; border-radius:50%; border:2px solid #cce8e5; margin:0 auto 16px; }
.certificate-photo-preview[hidden] { display:none; }
.certificate-photo-input { width:100%; font:inherit; color:#4a5a6a; }
.certificate-photo-input::file-selector-button { border:2px solid #3c7d76; padding:8px 16px; border-radius:4px; background:#f7f8f8; color:#3c7d76; font:inherit; cursor:pointer; margin-inline-end:12px; }
.certificate-photo-message { margin:12px 0 0; font-size:14px; color:#4a5a6a; }
.verify-certificate-preview img { aspect-ratio:auto; height:auto; object-fit:contain; }
@media(max-width:600px) {
  .certificate-gate { width:358px; }
  .certificate-gate-open .result-figma-card,.certificate-gate-open .verify-lookup-card { filter:blur(13.2px); }
  .certificate-gate-summary { padding:24px; }
  .certificate-gate h2 { font-size:24px; line-height:36px; }
  .certificate-gate-steps { padding:0; }
  .certificate-profile-names { grid-template-columns:1fr; gap:0; }
  .certificate-photo-field { padding:16px; }
}
@media(prefers-reduced-motion:reduce) { .certificate-gate * { transition:none!important; } }
