:root{
  --gbcm-accent:#ef8f11;
  --gbcm-accent-2:#d97c09;
  --gbcm-text:#ffffff;
  --gbcm-muted:rgba(255,255,255,.78);
  --gbcm-subtle:rgba(255,255,255,.58);
  --gbcm-line:rgba(210,149,49,.45);
  --gbcm-line-soft:rgba(210,149,49,.22);
  --gbcm-field-bg:rgba(18,12,8,.42);
  --gbcm-card-bg:linear-gradient(135deg, rgba(52,31,18,.68) 0%, rgba(17,10,6,.60) 100%);
}

.gbcm-sr-only{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}

.gb-cert-verify,
.gb-cert-scan-card{
  width:100%;
  color:var(--gbcm-text);
  font-family:inherit;
}

.gb-cert-block,
.gb-cert-scan-wrap{
  background:transparent;
}

.gb-cert-head,
.gb-cert-scan-head{
  margin:0 0 10px;
  display:flex;
  align-items:flex-start;
  gap:12px;
}

.gb-cert-head-icon,
.gb-cert-scan-head-icon{
  width:28px;
  height:28px;
  color:var(--gbcm-accent);
  flex:0 0 28px;
  margin-top:2px;
}

.gb-cert-title,
.gb-cert-scan-title{
  margin:0;
  color:#fff;
  font-size:20px;
  line-height:1.2;
  font-weight:700;
}

.gb-cert-desc,
.gb-cert-scan-desc,
.gb-cert-note,
.gb-cert-scan-note,
.gb-cert-scan-error,
.gb-cert-scan-help{
  margin:0;
  color:var(--gbcm-muted);
  line-height:1.55;
  font-size:15px;
}

.gb-cert-desc,
.gb-cert-scan-desc{
  margin-bottom:22px;
  max-width:470px;
}

.gb-cert-form{width:100%}
.gb-cert-label{display:block;margin:0 0 10px}
.gb-cert-fields{display:block}

.gb-cert-field-wrap{
  position:relative;
  margin-bottom:22px;
}

.gb-cert-field-icon{
  position:absolute;
  left:18px;
  top:50%;
  transform:translateY(-50%);
  width:22px;
  height:22px;
  color:rgba(255,255,255,.6);
  pointer-events:none;
}

.gb-cert-input{
  display:block;
  width:100%;
  min-width:0;
  height:56px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.18);
  background:var(--gbcm-field-bg);
  box-shadow:inset 0 0 20px rgba(0,0,0,.12);
  padding:0 20px 0 52px;
  color:#fff;
  font-size:14px;
  outline:none;
}
.gb-cert-input::placeholder{color:rgba(255,255,255,.46)}
.gb-cert-input:focus{
  border-color:rgba(239,143,17,.55);
  box-shadow:0 0 0 3px rgba(239,143,17,.08), inset 0 0 20px rgba(0,0,0,.16);
}

.gb-cert-button{
  width:100%;
  min-height:60px;
  border:0;
  border-radius:14px;
  cursor:pointer;
  color:#19120d;
  font-size:18px;
  line-height:1.2;
  font-weight:700;
  padding:16px 26px;
  background:linear-gradient(180deg, #f59a15 0%, #ef8f11 100%);
  box-shadow:0 12px 26px rgba(239,143,17,.18), inset 0 1px 0 rgba(255,255,255,.28);
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:18px;
  transition:transform .18s ease, box-shadow .18s ease, filter .18s ease;
}
.gb-cert-button:hover{
  transform:translateY(-1px);
  filter:brightness(1.02);
  box-shadow:0 14px 30px rgba(239,143,17,.22), inset 0 1px 0 rgba(255,255,255,.28);
}
.gb-cert-button:active{transform:translateY(0)}
.gb-cert-button:disabled,
.gb-cert-button.is-loading{
  opacity:0.75;
  cursor:not-allowed;
  transform:none!important;
  box-shadow:none!important;
}
.gb-cert-button-icon{width:24px;height:24px;display:inline-block;line-height:0}

.gb-cert-note{
  margin-top:18px;
  display:flex;
  align-items:flex-start;
  gap:12px;
  max-width:360px;
}
.gb-cert-note-icon{
  width:20px;
  height:20px;
  color:var(--gbcm-accent);
  flex:0 0 20px;
  margin-top:2px;
}

.gb-cert-result{
  margin-top:22px;
  border-radius:18px;
  border:1px solid rgba(255,255,255,.1);
  background:rgba(10,7,5,.32);
  padding:20px;
  animation:gbCertFadeIn .25s ease-out;
}
@keyframes gbCertFadeIn{
  from{opacity:0;transform:translateY(6px)}
  to{opacity:1;transform:translateY(0)}
}
.gb-cert-status{font-weight:700;margin-bottom:14px;font-size:18px;display:flex;align-items:center;gap:10px}
.gb-cert-success .gb-cert-status{color:#efc06e}
.gb-cert-warning .gb-cert-status{color:#ffd06e}
.gb-cert-error .gb-cert-status{color:#ff9c9c}
.gb-cert-loading .gb-cert-status{color:var(--gbcm-accent)}
.gb-cert-spinner{
  display:inline-block;
  width:18px;
  height:18px;
  border:2.5px solid rgba(239,143,17,.3);
  border-top-color:var(--gbcm-accent);
  border-radius:50%;
  animation:gbCertSpin .75s linear infinite;
}
@keyframes gbCertSpin{
  to{transform:rotate(360deg)}
}
.gb-cert-details{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.gb-cert-detail span{display:block;font-size:.82em;color:rgba(255,255,255,.62);margin-bottom:4px}
.gb-cert-detail strong{display:block;color:#fff;line-height:1.4}
.gb-cert-result-actions{display:flex;gap:12px;flex-wrap:wrap;margin-top:18px}
.gb-cert-file{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:44px;
  padding:10px 18px;
  border-radius:12px;
  text-decoration:none;
  color:#fff;
  border:1px solid rgba(210,149,49,.34);
  background:rgba(255,255,255,.03);
}
.gb-cert-file:hover{border-color:rgba(239,143,17,.56)}
.gb-cert-qr{display:block;max-width:100%;height:auto}

.gb-cert-scan-box{
  position:relative;
  min-height:248px;
  border-radius:26px;
  border:1px dashed rgba(210,149,49,.62);
  background:rgba(10,7,5,.12);
  display:flex;
  align-items:center;
  justify-content:center;
  text-align:center;
  padding:28px;
  cursor:pointer;
  transition:border-color .18s ease, background .18s ease, transform .18s ease;
  overflow:hidden;
}
.gb-cert-scan-box:hover{
  border-color:rgba(239,143,17,.75);
  background:rgba(10,7,5,.18);
  transform:translateY(-1px);
}
.gb-cert-scan-box.is-active{border-style:solid}
.gb-cert-scan-box.is-error{border-color:rgba(255,108,108,.6)}
.gb-cert-scan-placeholder{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:14px;max-width:260px}
.gb-cert-scan-camera{width:40px;height:40px;color:var(--gbcm-accent)}
.gb-cert-scan-click{font-size:17px;line-height:1.4;color:#fff;font-weight:500;margin:0}
.gb-cert-scan-note{font-size:14px;max-width:220px}
.gb-cert-scan-live{position:absolute;inset:0;display:none;background:rgba(0,0,0,.28)}
.gb-cert-scan-live video{width:100%;height:100%;object-fit:cover;display:block}
.gb-cert-scan-live.is-visible{display:block}
.gb-cert-scan-overlay{
  position:absolute;
  inset:0;
  background:linear-gradient(rgba(0,0,0,.14), rgba(0,0,0,.28));
  pointer-events:none;
}
.gb-cert-scan-frame{
  position:absolute;
  width:min(180px,60%);
  aspect-ratio:1/1;
  border:2px solid rgba(239,143,17,.88);
  border-radius:18px;
  top:50%;left:50%;transform:translate(-50%,-50%);
  box-shadow:0 0 0 9999px rgba(0,0,0,.16);
}
.gb-cert-scan-help{
  position:absolute;
  left:16px;right:16px;bottom:14px;
  text-align:center;
  font-size:13px;
  color:rgba(255,255,255,.9);
}
.gb-cert-scan-error{margin-top:12px;color:#ffbbbb;display:none}
.gb-cert-scan-error.is-visible{display:block}

@media(max-width:767px){
  .gb-cert-title,.gb-cert-scan-title{font-size:18px}
  .gb-cert-desc,.gb-cert-scan-desc,.gb-cert-note,.gb-cert-scan-note,.gb-cert-scan-help{font-size:14px}
  .gb-cert-input{height:54px}
  .gb-cert-button{min-height:56px;font-size:17px;padding:14px 18px}
  .gb-cert-details{grid-template-columns:1fr}
  .gb-cert-scan-box{min-height:220px;padding:22px}
}
