/*
Theme Name: Bible Typing Tutor
Theme URI: https://g6media.llc
Author: G6 Media LLC
Author URI: https://g6media.llc
Description: Clean, zero-plugin, security-hardened standalone WordPress theme built exclusively for the Bible Typing Tutor web application with Memory Mode, Kids' Quick-Pick Verses, Local Progress Tracking, and Printable Certificates.
Version: 2.1.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: bible-typing-tutor
*/

:root {
  --bg: #f6f3eb;
  --surface: #fffdf9;
  --surface-tint: #f0ece1;
  --text-main: #1c1917;
  --text-dim: #57534e;
  --border-soft: #dcd5c7;
  --border-sage: #b7cbbd;

  --forest: #15803d;
  --forest-dark: #14532d;
  --forest-soft: #dcfce7;
  --amber: #d97706;
  --amber-soft: #fef3c7;
  --crimson: #b91c1c;
  --crimson-soft: #fee2e2;

  --pinky: #e11d48;
  --ring: #ea580c;
  --middle: #ca8a04;
  --index-l: #0d9488;
  --index-r: #2563eb;
  --thumb: #7c3aed;
}

*, *::before, *::after {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text-main);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

.btt-wrapper {
  background:
    radial-gradient(circle at 8% 4%, rgba(217, 119, 6, 0.08), transparent 38%),
    radial-gradient(circle at 92% 6%, rgba(21, 128, 61, 0.08), transparent 40%),
    var(--bg);
  color: var(--text-main);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 12px 16px 36px;
}

.btt-wrapper * {
  margin: 0;
  padding: 0;
}

/* Compact Side-by-Side Top Header */
.btt-header {
  width: 100%;
  max-width: 1180px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 18px;
  margin-bottom: 10px;
  padding: 8px 16px;
  background: var(--surface);
  border: 1.5px solid var(--border-soft);
  border-radius: 14px;
  box-shadow: 0 2px 8px rgba(28, 25, 23, 0.04);
}

.btt-brand-inline {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 12px;
}

.btt-header h1 {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--forest-dark);
  letter-spacing: -0.015em;
}

.btt-subtitle {
  font-size: 0.82rem;
  color: var(--text-dim);
  font-weight: 500;
}

.btt-progress-strip {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  background: var(--surface-tint);
  border: 1px solid var(--border-soft);
  padding: 4px 12px;
  border-radius: 9999px;
  font-size: 0.8rem;
  font-weight: 700;
  color: #44403c;
}

.btt-progress-strip span.val {
  color: var(--forest);
  font-weight: 800;
}

/* Spread Single-Row Controls Bar */
.btt-controls {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  background: var(--surface);
  padding: 9px 14px;
  border-radius: 14px;
  margin-bottom: 12px;
  justify-content: space-between;
  align-items: center;
  border: 1.5px solid var(--border-soft);
  box-shadow: 0 3px 10px rgba(28, 25, 23, 0.04);
  width: 100%;
  max-width: 1180px;
}

.btt-controls-group {
  display: flex;
  gap: 7px;
  align-items: center;
  flex-wrap: wrap;
}

.btt-controls-divider {
  width: 1.5px;
  height: 24px;
  background: var(--border-soft);
  flex-shrink: 0;
}

@media (max-width: 980px) {
  .btt-controls {
    flex-wrap: wrap;
    justify-content: center;
  }
  .btt-controls-divider {
    display: none;
  }
}

.btt-controls label {
  font-weight: 700;
  font-size: 0.82rem;
  color: #44403c;
  display: flex;
  align-items: center;
  gap: 4px;
}

.btt-controls select,
.btt-controls input,
.btt-controls button {
  background: #faf8f5;
  color: var(--text-main);
  border: 1.5px solid #c8c0b0;
  padding: 6px 10px;
  border-radius: 9px;
  outline: none;
  font-size: 0.85rem;
  font-weight: 700;
  font-family: inherit;
  transition: border-color 0.15s ease, background-color 0.15s ease, transform 0.15s ease;
}

.btt-controls select:focus,
.btt-controls input:focus {
  border-color: var(--forest);
  background: #ffffff;
}

.btt-controls select {
  min-width: 124px;
  cursor: pointer;
}

.btt-controls select#btt-quick-verse {
  background: var(--amber-soft);
  border-color: #f59e0b;
  color: #451a03;
  min-width: 185px;
}

.btt-controls select#btt-memory-mode {
  background: var(--forest-soft);
  border-color: #4ade80;
  color: var(--forest-dark);
  min-width: 162px;
}

.btt-controls input[type="number"] {
  width: 58px;
}

.btt-controls button {
  background: linear-gradient(180deg, #16a34a 0%, #15803d 100%);
  border: 1px solid #14532d;
  color: #ffffff;
  cursor: pointer;
  box-shadow: 0 2px 0 #14532d;
}

.btt-controls button:hover {
  filter: brightness(1.05);
  transform: translateY(-1px);
}

.btt-controls button:active {
  transform: translateY(1px);
  box-shadow: none;
}

/* Main Verse Typing Card */
.btt-typing-card {
  background: var(--surface);
  width: 100%;
  max-width: 1180px;
  padding: 16px 22px 20px;
  border-radius: 18px;
  box-shadow: 0 8px 22px -8px rgba(28, 25, 23, 0.08);
  margin-bottom: 12px;
  cursor: pointer;
  border: 2px solid var(--border-sage);
  position: relative;
}

.btt-verse-header-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.btt-verse-ref {
  font-weight: 800;
  color: var(--forest-dark);
  font-size: 1.3rem;
  text-align: center;
}

.btt-nav-arrow {
  background: var(--surface-tint);
  color: var(--forest-dark);
  border: 1.5px solid #b8c9be;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  cursor: pointer;
  box-shadow: 0 2px 0 #9bb5a5;
  transition: transform 0.15s ease, background-color 0.15s ease;
  user-select: none;
}

.btt-nav-arrow:hover {
  background: var(--forest-soft);
  transform: scale(1.06);
}

.btt-nav-arrow:active {
  transform: translateY(1px);
  box-shadow: none;
}

.btt-live-stats {
  display: flex;
  justify-content: center;
  gap: 22px;
  flex-wrap: wrap;
  margin-bottom: 10px;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-dim);
  background: var(--surface-tint);
  padding: 5px 16px;
  border-radius: 10px;
  border: 1px solid var(--border-soft);
}

.btt-live-stats span {
  color: var(--amber);
  font-weight: 800;
}

.btt-text-display {
  font-family: ui-monospace, "Cascadia Code", "Source Code Pro", Menlo, Consolas, "DejaVu Sans Mono", monospace;
  font-size: clamp(1.3rem, 2.1vw, 1.72rem);
  line-height: 1.75;
  letter-spacing: 0.03em;
  user-select: none;
  word-break: break-word;
  min-height: 68px;
  text-align: center;
  padding: 4px 8px;
}

.btt-char {
  position: relative;
  border-bottom: 3px solid transparent;
  padding: 1px 2px;
  border-radius: 4px;
}

.btt-char.correct {
  color: var(--forest-dark);
  background: var(--forest-soft);
}

.btt-char.incorrect {
  color: var(--crimson);
  background: var(--crimson-soft);
}

.btt-char.untyped {
  color: #78716c;
}

.btt-char.masked {
  color: #a8a29e;
  border-bottom: 2px dashed var(--amber);
}

.btt-char.current {
  border-bottom-color: var(--amber);
  background: #fde68a;
  color: #1c1917;
  font-weight: 700;
  animation: btt-blink 1.1s infinite;
}

.btt-char.masked.current {
  color: #1c1917;
}

@keyframes btt-blink {
  50% { border-bottom-color: transparent; }
}

/* Ergonomic Seated Posture Strip */
.btt-ergo-bar {
  width: 100%;
  max-width: 1180px;
  margin-bottom: 12px;
  padding: 8px 14px;
  border-radius: 12px;
  background: #fefce8;
  border: 1px solid #fde047;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 18px;
  font-size: 0.8rem;
  color: #44403c;
}

.btt-ergo-badge {
  font-weight: 800;
  color: #92400e;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 0.72rem;
  background: #fef08a;
  padding: 2px 8px;
  border-radius: 9999px;
}

.btt-ergo-item {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.btt-ergo-item strong {
  color: #1c1917;
}

/* Guidance & Keyboard Workspace */
.btt-workspace-container {
  display: flex;
  gap: 14px;
  width: 100%;
  max-width: 1180px;
  align-items: stretch;
}

@media (max-width: 850px) {
  .btt-workspace-container {
    flex-direction: column;
  }
}

.btt-guidance-panel {
  background: var(--surface);
  border: 2px solid var(--border-soft);
  border-radius: 18px;
  padding: 16px;
  flex: 1;
  min-width: 280px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 4px 14px rgba(28, 25, 23, 0.04);
}

.btt-instruction-text {
  font-size: 1.05rem;
  font-weight: 700;
  text-align: center;
  color: var(--text-main);
  min-height: 54px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.btt-instruction-text .primary-prompt {
  font-size: 1.1rem;
}

.btt-instruction-text .detail-prompt {
  font-size: 0.88rem;
  color: var(--forest-dark);
  font-weight: 600;
}

.btt-target-badge {
  background: var(--forest);
  color: #ffffff;
  padding: 2px 9px;
  border-radius: 7px;
  font-size: 1.08rem;
  font-weight: 800;
  display: inline-block;
}

.btt-target-badge--shift {
  background: var(--amber);
  color: #ffffff;
}

.btt-hands-wrapper {
  display: flex;
  gap: 14px;
  justify-content: center;
  align-items: center;
}

.btt-hand-svg {
  width: 104px;
  height: 112px;
}

.btt-finger {
  fill: #e7e5e4;
  stroke: #a8a29e;
  stroke-width: 1.5;
  transition: all 0.2s ease;
}

.btt-finger.active {
  fill: #f59e0b !important;
  stroke: #b45309;
  filter: drop-shadow(0px 0px 6px rgba(245, 158, 11, 0.6));
  animation: btt-pulse-finger 0.85s infinite alternate;
}

.btt-palm {
  fill: #f5f5f4;
  stroke: #a8a29e;
  stroke-width: 2;
}

@keyframes btt-pulse-finger {
  0% { transform: scale(1); }
  100% { transform: scale(1.06); }
}

.btt-keyboard-container {
  background: var(--surface);
  padding: 14px;
  border-radius: 18px;
  flex: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 2px solid var(--border-soft);
  box-shadow: 0 4px 14px rgba(28, 25, 23, 0.04);
  overflow-x: auto;
}

.btt-key-row {
  display: flex;
  gap: 5px;
  width: 100%;
  justify-content: center;
}

.btt-key {
  width: 42px;
  height: 44px;
  border-radius: 8px;
  background: #faf8f5;
  color: var(--text-main);
  border: 1.5px solid #d6d3d1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.95rem;
  position: relative;
  border-bottom: 4px solid #a8a29e;
  transition: all 0.1s;
  flex-shrink: 0;
}

.btt-key.space {
  width: 220px;
}

.btt-key.shift {
  width: 70px;
  font-size: 0.72rem;
}

.btt-key.active-target {
  transform: translateY(2px);
  border-bottom-width: 1px;
  box-shadow: 0 0 12px rgba(21, 128, 61, 0.4);
  border: 2px solid var(--forest-dark);
  background: #fef08a;
  color: #1c1917;
}

.btt-key.active-shift {
  transform: translateY(2px);
  border-bottom-width: 1px;
  box-shadow: 0 0 12px rgba(217, 119, 6, 0.45);
  border: 2px solid #b45309;
  background: #ffedd5;
  color: #7c2d12;
  animation: btt-pulse-shift 0.65s infinite alternate;
}

@keyframes btt-pulse-shift {
  0% { opacity: 0.78; }
  100% { opacity: 1; }
}

.f-lp { border-top: 5px solid var(--pinky); }
.f-lr { border-top: 5px solid var(--ring); }
.f-lm { border-top: 5px solid var(--middle); }
.f-li { border-top: 5px solid var(--index-l); }
.f-ri { border-top: 5px solid var(--index-r); }
.f-rm { border-top: 5px solid var(--middle); }
.f-rr { border-top: 5px solid var(--ring); }
.f-rp { border-top: 5px solid var(--pinky); }
.f-th { border-top: 5px solid var(--thumb); }

.btt-finger-legend {
  display: flex;
  gap: 12px;
  margin-top: 6px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-dim);
  flex-wrap: wrap;
  justify-content: center;
}

.btt-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
  margin-right: 4px;
  vertical-align: middle;
}

/* Completion Modal & Certificate Controls */
.btt-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(28, 25, 23, 0.65);
  backdrop-filter: blur(4px);
  align-items: center;
  justify-content: center;
  z-index: 99999;
  padding: 16px;
}

.btt-modal-content {
  background: var(--surface);
  border: 2px solid var(--forest);
  padding: 26px;
  border-radius: 20px;
  text-align: center;
  max-width: 460px;
  width: 100%;
  box-shadow: 0 20px 40px rgba(28, 25, 23, 0.25);
}

.btt-stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 16px 0;
}

.btt-stat-box {
  background: var(--surface-tint);
  border: 1px solid var(--border-soft);
  padding: 12px;
  border-radius: 12px;
}

.btt-stat-val {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--forest);
}

.btt-stat-lbl {
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--text-dim);
}

.btt-cert-box {
  background: #faf8f5;
  border: 1.5px solid var(--border-soft);
  border-radius: 12px;
  padding: 12px;
  margin-bottom: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.btt-cert-box label {
  font-size: 0.85rem;
  color: var(--forest-dark);
  font-weight: 700;
}

.btt-cert-row {
  display: flex;
  gap: 8px;
}

.btt-cert-row input {
  flex: 1;
  background: #ffffff;
  border: 1.5px solid #c8c0b0;
  color: var(--text-main);
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 0.92rem;
  font-family: inherit;
  outline: none;
}

.btt-btn-cert {
  background: var(--amber);
  color: #ffffff;
  border: none;
  padding: 8px 14px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  font-family: inherit;
  white-space: nowrap;
}

.btt-btn-cert:hover {
  filter: brightness(1.05);
}

.btt-modal-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.btt-btn-primary {
  width: 100%;
  padding: 12px;
  font-size: 1rem;
  background: var(--forest);
  color: #ffffff;
  font-weight: 700;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  font-family: inherit;
}

.btt-btn-secondary {
  width: 100%;
  padding: 10px;
  font-size: 0.92rem;
  background: var(--surface-tint);
  color: var(--forest-dark);
  font-weight: 700;
  border-radius: 10px;
  border: 1.5px solid var(--border-sage);
  cursor: pointer;
  font-family: inherit;
}

#btt-hidden-input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

/* Footer, Interactive QuickBooks Gift Support & Parent/Legal Notices */
.btt-footer {
  width: 100%;
  max-width: 1180px;
  margin-top: 20px;
  padding: 20px;
  background: var(--surface);
  border: 2px solid var(--border-soft);
  border-radius: 18px;
  text-align: center;
  font-size: 0.88rem;
  color: #44403c;
  line-height: 1.6;
  box-shadow: 0 4px 14px rgba(28, 25, 23, 0.04);
}

.btt-footer .btt-gift-support {
  margin: 0 0 16px;
  padding: 20px 18px;
  border-radius: 16px;
  background: linear-gradient(155deg, #faf8f5 0%, #f1f7f3 100%);
  border: 1.5px solid var(--border-sage);
}

.btt-footer .btt-gift-header {
  max-width: 720px;
  margin: 0 auto 14px;
}

.btt-footer .btt-gift-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--forest-dark);
  background: var(--forest-soft);
  border: 1px solid #86efac;
  padding: 3px 11px;
  border-radius: 9999px;
  margin-bottom: 6px;
}

.btt-footer .btt-gift-heading {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-main);
  margin: 0 0 5px;
}

.btt-footer .btt-gift-copy {
  font-size: 0.9rem;
  color: var(--text-dim);
  line-height: 1.55;
  margin: 0;
}

.btt-footer .btt-gift-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 9px;
  max-width: 940px;
  margin: 0 auto 14px;
}

.btt-footer .btt-gift-tier-btn {
  appearance: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 10px 6px;
  border-radius: 12px;
  background: #ffffff;
  border: 1.5px solid #d6d3d1;
  color: var(--text-main);
  font-family: inherit;
  cursor: pointer;
  position: relative;
  box-shadow: 0 3px 0 #d6d3d1;
  transition: transform 0.15s ease, border-color 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
}

.btt-footer .btt-gift-tier-btn:hover,
.btt-footer .btt-gift-tier-btn:focus-visible {
  transform: translateY(-2px);
  border-color: var(--amber);
  background: #fffbeb;
  outline: none;
}

.btt-footer .btt-gift-tier-btn.is-selected {
  transform: translateY(-2px);
  background: var(--forest-soft);
  border-color: var(--forest);
  box-shadow: 0 0 0 2px rgba(21, 128, 61, 0.2), 0 4px 0 var(--forest-dark);
}

.btt-footer .btt-gift-tier-btn.is-popular::after {
  content: "POPULAR";
  position: absolute;
  top: -8px;
  right: 5px;
  font-size: 0.56rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  background: var(--amber);
  color: #ffffff;
  padding: 1px 6px;
  border-radius: 9999px;
}

.btt-footer .btt-gift-tier-amt {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.15;
}

.btt-footer .btt-gift-tier-btn.is-selected .btt-gift-tier-amt {
  color: var(--forest-dark);
}

.btt-footer .btt-gift-tier-sub {
  font-size: 0.68rem;
  font-weight: 700;
  color: #78716c;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.btt-footer .btt-gift-tier-btn.is-selected .btt-gift-tier-sub {
  color: var(--forest);
}

.btt-footer .btt-gift-action-panel {
  max-width: 720px;
  margin: 0 auto 12px;
  padding: 12px 16px;
  border-radius: 12px;
  background: #ffffff;
  border: 1.5px solid var(--border-soft);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.btt-footer .btt-gift-impact {
  text-align: left;
  flex: 1 1 260px;
}

.btt-footer .btt-gift-impact-title {
  font-size: 0.94rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 2px;
}

.btt-footer .btt-gift-impact-note {
  font-size: 0.82rem;
  color: var(--forest-dark);
  font-weight: 600;
}

.btt-footer .btt-gift-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 9999px;
  background: linear-gradient(180deg, #d97706 0%, #b45309 100%);
  color: #ffffff;
  font-weight: 700;
  font-size: 0.92rem;
  text-decoration: none;
  border: 1px solid #92400e;
  box-shadow: 0 3px 0 #78350f;
  transition: transform 0.15s ease, filter 0.15s ease;
  white-space: nowrap;
}

.btt-footer .btt-gift-cta:hover,
.btt-footer .btt-gift-cta:focus-visible {
  transform: translateY(-2px);
  filter: brightness(1.05);
  color: #ffffff;
  outline: none;
}

.btt-footer .btt-gift-cta:active {
  transform: translateY(2px);
  box-shadow: none;
}

.btt-footer .btt-gift-legal {
  font-size: 0.78rem;
  color: var(--text-dim);
  max-width: 880px;
  margin: 0 auto;
  line-height: 1.5;
}

.btt-support-box {
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-soft);
}

.btt-support-btn {
  display: inline-block;
  margin-top: 6px;
  background: var(--amber);
  color: #ffffff;
  font-weight: 700;
  text-decoration: none;
  padding: 7px 16px;
  border-radius: 9999px;
  box-shadow: 0 2px 0 #92400e;
  transition: transform 0.15s ease;
}

.btt-support-btn:hover {
  transform: translateY(-2px);
}

.btt-legal-note {
  font-size: 0.78rem;
  color: var(--text-dim);
  max-width: 860px;
  margin: 0 auto;
}

@media (max-width: 820px) {
  .btt-footer .btt-gift-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }
}

@media (max-width: 640px) {
  .btt-footer .btt-gift-action-panel {
    flex-direction: column;
    text-align: center;
  }
  .btt-footer .btt-gift-impact {
    text-align: center;
  }
  .btt-footer .btt-gift-cta {
    width: 100%;
  }
}

/* Printable Certificate Sheet (Hidden on screen, visible ONLY when printing) */
#btt-print-certificate {
  display: none;
}

@media print {
  @page {
    size: landscape;
    margin: 0.4in;
  }

  html, body {
    background: #ffffff !important;
    color: #0f172a !important;
    min-height: auto !important;
  }

  .btt-wrapper > *:not(#btt-print-certificate) {
    display: none !important;
  }

  .btt-wrapper {
    background: #ffffff !important;
    padding: 0 !important;
    min-height: auto !important;
    display: block !important;
  }

  #btt-print-certificate {
    display: block !important;
    width: 100%;
    border: 8px double #1e3a8a;
    border-radius: 16px;
    padding: 36px 48px;
    text-align: center;
    background: #ffffff;
    color: #0f172a;
    font-family: Georgia, 'Times New Roman', serif;
  }

  .cert-kicker {
    font-size: 13pt;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #1d4ed8;
    font-weight: bold;
    margin-bottom: 10px;
  }

  .cert-title {
    font-size: 32pt;
    font-weight: bold;
    color: #0f172a;
    margin-bottom: 14px;
  }

  .cert-sub {
    font-size: 14pt;
    color: #475569;
    margin-bottom: 12px;
  }

  .cert-student-name {
    font-size: 28pt;
    font-weight: bold;
    color: #1e3a8a;
    border-bottom: 2px solid #94a3b8;
    display: inline-block;
    min-width: 340px;
    padding: 4px 20px;
    margin: 8px 0 18px;
  }

  .cert-verse-ref {
    font-size: 18pt;
    font-weight: bold;
    color: #0f172a;
    margin-bottom: 10px;
  }

  .cert-verse-quote {
    font-size: 13pt;
    font-style: italic;
    color: #334155;
    max-width: 680px;
    margin: 0 auto 22px;
    line-height: 1.5;
  }

  .cert-metrics {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 24px;
    font-family: system-ui, sans-serif;
  }

  .cert-metric-item {
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    padding: 10px 22px;
  }

  .cert-metric-val {
    font-size: 18pt;
    font-weight: bold;
    color: #1e3a8a;
  }

  .cert-metric-lbl {
    font-size: 9pt;
    text-transform: uppercase;
    color: #64748b;
  }

  .cert-footer-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-top: 24px;
    padding-top: 14px;
    border-top: 1px solid #e2e8f0;
    font-size: 11pt;
    color: #475569;
  }
}
