/* =====================================================================
   FIMTS CERTIFICATE VERIFICATION PAGE (css/certificate-verification.css)
   ===================================================================== */
.cv-hero .ab-c {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 44px;
  align-items: center;
}

.cv-hero-pills {
  list-style: none;
  padding: 0;
  margin: 22px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.cv-hero-pills li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 15px;
  border-radius: 99px;
  font-size: 13px;
  font-weight: 700;
  color: #E6D3BE;
  background: rgba(255, 184, 28, 0.14);
  border: 1px solid rgba(255, 184, 28, 0.35);
}

.cv-hero-pills svg {
  width: 15px;
  height: 15px;
  color: #FFB81C;
}

/* Right Hero Animated QR Scanner Card */
.cv-showcase {
  position: relative;
  margin: 0;
  display: grid;
  place-items: center;
}

.cv-rays {
  position: absolute;
  width: 400px;
  height: 400px;
  opacity: 0.14;
  pointer-events: none;
  animation: cvSpin 90s linear infinite;
}

@keyframes cvSpin {
  to { transform: rotate(360deg); }
}

.cv-qr-card {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 340px;
  padding: 24px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 184, 28, 0.35);
  backdrop-filter: blur(14px);
  color: #fff;
  text-align: center;
  box-shadow: 0 25px 55px rgba(0, 0, 0, 0.35);
}

.cv-qr-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.6px;
}

.cv-live-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 99px;
  background: rgba(34, 197, 94, 0.18);
  color: #86EFAC;
}

.cv-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #22C55E;
  box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.25);
}

.cv-est {
  color: #FFB81C;
}

.cv-qr-box {
  position: relative;
  width: 165px;
  height: 165px;
  margin: 0 auto 18px;
  border-radius: 20px;
  background: rgba(59, 16, 32, 0.65);
  border: 2px solid rgba(255, 184, 28, 0.45);
  display: grid;
  place-items: center;
  overflow: hidden;
}

.cv-qr-icon {
  width: 96px;
  height: 96px;
  color: #FFB81C;
}

.cv-scan-line {
  position: absolute;
  left: 10px;
  right: 10px;
  height: 2px;
  background: linear-gradient(90deg, transparent, #22C55E, #FFB81C, transparent);
  box-shadow: 0 0 12px #FFB81C;
  animation: cvScan 2.6s ease-in-out infinite;
}

@keyframes cvScan {
  0%, 100% { top: 14px; }
  50% { top: calc(100% - 16px); }
}

.cv-qr-meta strong {
  display: block;
  font-size: 1rem;
  margin-bottom: 3px;
}

.cv-qr-meta span {
  font-size: 0.8rem;
  color: rgba(230, 211, 190, 0.72);
}

/* Verification Module Switcher */
.cv-switcher {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 38px;
}

.cv-switch-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  border-radius: 16px;
  background: var(--ab-card, #ffffff);
  border: 1px solid var(--ab-line, rgba(59, 16, 32, 0.12));
  color: inherit;
  text-decoration: none;
  transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
}

html[data-theme="dark"] .cv-switch-item {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.12);
}

.cv-switch-item svg {
  width: 24px;
  height: 24px;
  color: #EE901F;
  flex-shrink: 0;
}

.cv-switch-item span {
  display: flex;
  flex-direction: column;
}

.cv-switch-item strong {
  font-size: 0.96rem;
  font-weight: 800;
}

.cv-switch-item small {
  font-size: 0.78rem;
  opacity: 0.72;
}

.cv-switch-item:hover {
  transform: translateY(-2px);
  border-color: #EE901F;
}

.cv-switch-item.active {
  background: linear-gradient(135deg, #3B1020, #5C1034);
  color: #fff;
  border-color: #FFB81C;
  box-shadow: 0 14px 32px rgba(59, 16, 32, 0.22);
}

.cv-switch-item.active svg {
  color: #FFB81C;
}

/* Main 2-Column Portal Grid */
.cv-main-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 34px;
  align-items: start;
}

/* Left Input Console */
.cv-console {
  background: var(--ab-card, #ffffff);
  border: 1px solid var(--ab-line, rgba(59, 16, 32, 0.12));
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 20px 45px rgba(59, 16, 32, 0.06);
}

html[data-theme="dark"] .cv-console {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.12);
}

.cv-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-bottom: 1px solid var(--ab-line, rgba(59, 16, 32, 0.12));
}

.cv-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px 14px;
  background: transparent;
  border: none;
  border-bottom: 3px solid transparent;
  color: inherit;
  font: 800 0.9rem 'Plus Jakarta Sans', sans-serif;
  cursor: pointer;
  opacity: 0.68;
  transition: 0.25s;
}

.cv-tab svg {
  width: 17px;
  height: 17px;
}

.cv-tab.active {
  opacity: 1;
  color: #EE901F;
  border-bottom-color: #EE901F;
  background: rgba(255, 184, 28, 0.06);
}

.cv-pane {
  display: none;
  padding: 32px;
}

.cv-pane.active {
  display: block;
}

.cv-pane-head h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  margin: 0 0 8px;
}

.cv-pane-head p {
  font-size: 0.9rem;
  opacity: 0.8;
  line-height: 1.6;
  margin: 0 0 24px;
}

.cv-field {
  margin-bottom: 20px;
}

.cv-field label {
  display: block;
  font-size: 0.88rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.cv-req {
  color: #DB2420;
}

.cv-input-wrap {
  position: relative;
}

.cv-input-wrap svg {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: #EE901F;
  pointer-events: none;
}

.cv-input-wrap input {
  width: 100%;
  padding: 14px 16px 14px 44px;
  border-radius: 12px;
  border: 1.5px solid var(--ab-line, rgba(59, 16, 32, 0.16));
  background: transparent;
  color: inherit;
  font: 700 0.95rem 'Plus Jakarta Sans', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  outline: none;
  transition: border-color 0.25s, box-shadow 0.25s;
}

.cv-input-wrap input:focus {
  border-color: #EE901F;
  box-shadow: 0 0 0 4px rgba(238, 144, 31, 0.12);
}

.cv-hint {
  display: block;
  margin-top: 6px;
  font-size: 0.78rem;
  opacity: 0.68;
}

.cv-form-actions {
  display: flex;
  gap: 12px;
  margin-top: 24px;
}

.cv-submit-btn {
  flex: 1;
  justify-content: center;
}

/* Quick Demo Bar */
.cv-demo-bar {
  margin-top: 26px;
  padding-top: 20px;
  border-top: 1px dashed var(--ab-line, rgba(59, 16, 32, 0.15));
}

.cv-demo-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  font-weight: 800;
  color: #EE901F;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 10px;
}

.cv-demo-label svg {
  width: 15px;
  height: 15px;
}

.cv-demo-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.cv-sample-btn {
  padding: 7px 12px;
  border-radius: 9px;
  border: 1px solid rgba(255, 184, 28, 0.35);
  background: rgba(255, 184, 28, 0.1);
  color: inherit;
  font: 700 0.78rem 'Plus Jakarta Sans', sans-serif;
  cursor: pointer;
  transition: 0.2s;
}

.cv-sample-btn:hover {
  background: #FFB81C;
  color: #3B1020;
}

/* QR Tab Instructions */
.cv-qr-instructions {
  display: grid;
  gap: 14px;
  margin-bottom: 22px;
}

.cv-qr-step {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(255, 184, 28, 0.07);
  border: 1px solid rgba(255, 184, 28, 0.22);
}

.cv-step-no {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: #EE901F;
  color: #fff;
  font-weight: 800;
  font-size: 0.85rem;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.cv-qr-step h4 {
  margin: 0 0 4px;
  font-size: 0.95rem;
}

.cv-qr-step p {
  margin: 0;
  font-size: 0.84rem;
  opacity: 0.82;
  line-height: 1.5;
}

.cv-qr-sim-box label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.cv-qr-input-row {
  display: flex;
  gap: 10px;
  margin-bottom: 12px;
}

.cv-qr-input-row input {
  flex: 1;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1.5px solid var(--ab-line, rgba(59, 16, 32, 0.16));
  background: transparent;
  color: inherit;
  font: 700 0.88rem 'Plus Jakarta Sans', sans-serif;
}

.cv-qr-demo-trigger {
  width: 100%;
  padding: 11px;
  border-radius: 11px;
  border: 1px dashed #EE901F;
  background: rgba(238, 144, 31, 0.08);
  color: #EE901F;
  font: 700 0.85rem 'Plus Jakarta Sans', sans-serif;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: 0.2s;
}

.cv-qr-demo-trigger:hover {
  background: #EE901F;
  color: #fff;
}

/* Right Column: Result States */
.cv-state {
  display: none;
}

.cv-state.active {
  display: block;
}

.cv-state-idle,
.cv-state-error {
  padding: 46px 34px;
  border-radius: 24px;
  background: var(--ab-card, #ffffff);
  border: 1px solid var(--ab-line, rgba(59, 16, 32, 0.12));
  text-align: center;
  box-shadow: 0 20px 45px rgba(59, 16, 32, 0.05);
}

html[data-theme="dark"] .cv-state-idle,
html[data-theme="dark"] .cv-state-error {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.12);
}

.cv-idle-icon,
.cv-err-icon {
  width: 68px;
  height: 68px;
  margin: 0 auto 18px;
  border-radius: 20px;
  background: rgba(255, 184, 28, 0.14);
  color: #EE901F;
  display: grid;
  place-items: center;
}

.cv-err-icon {
  background: rgba(219, 36, 32, 0.14);
  color: #DB2420;
}

.cv-idle-icon svg,
.cv-err-icon svg {
  width: 34px;
  height: 34px;
}

.cv-state-idle h3,
.cv-state-error h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.6rem;
  margin: 0 0 10px;
}

.cv-state-idle p,
.cv-state-error p {
  font-size: 0.95rem;
  line-height: 1.65;
  opacity: 0.82;
  max-width: 480px;
  margin: 0 auto 24px;
}

.cv-security-badges {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.cv-security-badges li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 13px;
  border-radius: 99px;
  font-size: 0.8rem;
  font-weight: 700;
  background: rgba(59, 16, 32, 0.06);
}

html[data-theme="dark"] .cv-security-badges li {
  background: rgba(255, 255, 255, 0.06);
}

.cv-security-badges svg {
  width: 14px;
  height: 14px;
  color: #EE901F;
}

/* Verified Certificate Sheet */
.cv-cert-sheet {
  border-radius: 24px;
  background: var(--ab-card, #ffffff);
  border: 2px solid #22C55E;
  overflow: hidden;
  box-shadow: 0 24px 55px rgba(34, 197, 94, 0.12);
}

html[data-theme="dark"] .cv-cert-sheet {
  background: rgba(59, 16, 32, 0.85);
}

.cv-sheet-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding: 14px 24px;
  background: linear-gradient(90deg, #15803D, #16A34A);
  color: #fff;
}

.cv-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.6px;
}

.cv-status-pill svg {
  width: 18px;
  height: 18px;
}

.cv-timestamp {
  font-size: 0.76rem;
  opacity: 0.9;
}

.cv-sheet-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 22px 26px;
  border-bottom: 1px solid var(--ab-line, rgba(59, 16, 32, 0.1));
}

.cv-sheet-brand img {
  width: 54px;
  height: 54px;
  object-fit: contain;
  border-radius: 12px;
  background: #fff;
  padding: 4px;
  border: 1px solid rgba(238, 144, 31, 0.4);
}

.cv-sheet-brand h4 {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 800;
}

.cv-sheet-brand p {
  margin: 2px 0;
  font-size: 0.85rem;
  opacity: 0.85;
}

.cv-sheet-brand small {
  font-size: 0.75rem;
  color: #EE901F;
  font-weight: 700;
}

.cv-record-grid {
  padding: 24px 26px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px 20px;
}

.cv-rec-full {
  grid-column: 1 / -1;
}

.cv-rec-item {
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(59, 16, 32, 0.035);
  border: 1px solid var(--ab-line, rgba(59, 16, 32, 0.08));
}

html[data-theme="dark"] .cv-rec-item {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.08);
}

.cv-rec-item span {
  display: block;
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  opacity: 0.68;
  margin-bottom: 4px;
  font-weight: 700;
}

.cv-rec-item strong {
  font-size: 0.96rem;
  font-weight: 800;
}

.cv-mono-gold {
  color: #EE901F;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

.cv-grade-badge {
  color: #16A34A;
}

.cv-qr-ok {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #16A34A;
}

.cv-qr-ok svg {
  width: 15px;
  height: 15px;
}

.cv-sheet-footer {
  padding: 14px 26px;
  background: rgba(255, 184, 28, 0.08);
  border-top: 1px solid rgba(255, 184, 28, 0.25);
  font-size: 0.8rem;
  text-align: center;
}

.cv-sheet-footer p {
  margin: 0;
}

.cv-sheet-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

.cv-err-tips {
  text-align: left;
  padding: 16px 20px;
  border-radius: 14px;
  background: rgba(219, 36, 32, 0.06);
  border: 1px solid rgba(219, 36, 32, 0.2);
  margin-bottom: 22px;
}

.cv-err-tips h4 {
  margin: 0 0 8px;
  font-size: 0.9rem;
}

.cv-err-tips ul {
  margin: 0;
  padding-left: 18px;
  font-size: 0.85rem;
  line-height: 1.6;
}

@media (max-width: 991px) {
  .cv-hero .ab-c,
  .cv-switcher,
  .cv-main-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .cv-pane { padding: 22px 18px; }
  .cv-record-grid { grid-template-columns: 1fr; }
  .cv-qr-input-row { flex-direction: column; }
}