.page-offset {
  padding-top: 120px;
}

.product-badge {
  display: inline-block;
  margin-bottom: 12px;
  padding: 0.4rem 0.8rem;
  font-size: 0.65rem;
  border-radius: 999px;
  background: rgba(6, 182, 212, 0.15);
  color: var(--cyan);
  border: 1px solid rgba(6, 182, 212, 0.3);
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.unicover-section {
  background: linear-gradient(135deg, var(--footer-start) 0%, var(--footer-end) 100%);
  color: #ffffff;
  padding: 52px 10% 52px;
  margin-top: 3rem;
  position: relative;
  overflow: hidden;
}

.unicover-section::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.1) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.unicover-content {
  max-width: 900px;
}

.unicover-section h1 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}

.unicover-section p {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.9);
  max-width: 520px;
  line-height: 1.7;
}

/* ================= FORM CONTAINER select ================= */
.container {
  max-width: 480px;
  margin: 40px auto;
  padding: 32px;
  background: var(--white);
  border-radius: 16px;
  box-shadow: var(--card-shadow);
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.unicover-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;

  max-width: 1200px;
  margin: 40px auto;
  padding: 20px;
}


label {
  display: block;
  margin-top: 16px;
  font-weight: 600;
  color: var(--navy);
  font-size: 0.95rem;
}

input,
select {
  width: 100%;
  padding: 12px 14px;
  margin-top: 8px;
  border: var(--very-light-stroke);
  border-radius: 8px;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  background: var(--white);
  color: var(--navy);
}

input:focus,
select:focus {
  outline: none;
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.1);
}

input[type="text"] {
  width: 100%;
}

textarea {
  width: 100%;
  resize: vertical;
  padding: 12px 14px;
  border: var(--very-light-stroke);
  border-radius: 8px;
  font-size: 0.95rem;
  font-family: 'Inter', sans-serif;
  transition: all 0.3s ease;
  color: var(--navy);
  background: var(--white);
}

textarea:focus {
  outline: none;
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.1);
}

.btn-download {
  width: 100%;
  margin-top: 28px;
  padding: 14px 20px;
  background: var(--gradient-primary);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(6, 182, 212, 0.3);
  transition: all 0.35s cubic-bezier(0.22, 0.61, 0.36, 1);
  position: relative;
  overflow: hidden;
}

.btn-download::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.btn-download:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(6, 182, 212, 0.4);
}

.btn-download:hover::before {
  width: 300px;
  height: 300px;
}

.btn-download span {
  color: gray;
  font-size: 2rem;
  background-color: white;
  font-weight: 700;
}

.note {
  text-align: center;
  margin-top: 20px;
  font-size: 0.9rem;
  color: var(--slate);
}

/* ================= COVER PAGE ================= */
/* PAGE WRAPPER */
.form-area,
.page {
  background: var(--white);
  padding: 20px;
  border-radius: 16px;
  box-shadow: var(--card-shadow);
  border: 1px solid rgba(0, 0, 0, 0.06);
}

/* COVER PAGE */
.cover-page {
  width: 210mm;
  min-height: 296mm;

  position: relative;
  box-sizing: border-box;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  overflow: hidden;
  background: #fff;
}

/* INNER BORDER */
.cover-page::before {
  content: "";
  position: absolute;

  top: 12mm;
  left: 12mm;
  right: 12mm;
  bottom: 12mm;

  border: 3px solid var(--cover-border-color, var(--navy));
  border-radius: 8px;

  pointer-events: none;
}

/* Default — desktop view */
.real-cover {
  display: block;
}

.cover-preview {
  display: none;
  width: 100%;
  height: auto;
  border-radius: 8px;
}

.preview-note {
  display: none;
  text-align: center;
  color: white;
  background-color: rgba(0, 0, 0, 0.8);
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 600;
  border-radius: 6px 6px 0px 0px;
  letter-spacing: 0.5px;
}

/* ================= TOP SECTION ================= */
.top-section {
  width: 100%;
  margin: 0;
  padding: 0;
}

.uni-logo {
  margin-top: 4rem;
  width: 100%;
  height: auto;
  display: block;
}

/* ================= DETAILS SECTION ================= */
.details-section {
  width: 100%;
  margin-top: auto;
  margin-bottom: 48mm;

  display: flex;
  flex-direction: column;
  align-items: center;
}

/* --------- CENTER TEXT --------- */
.upper {
  text-align: center;
  margin-bottom: 42mm;
}

.upper .session,
.upper .title,
.upper .subject {
  font-size: 16pt;
  font-weight: 700;
  color: var(--vu-color);
  margin: 8px 0;
  letter-spacing: -0.5px;
}

/* ================= BOTTOM SECTION ================= */
.bottom {
  width: 85%;
  display: flex;
  justify-content: space-between;
}

.bottom .left,
.bottom .right {
  width: 45%;
  text-align: center;
}

.bottom .submitted {
  font-size: 15pt;
  font-weight: 700;
  margin-bottom: 14px;
  color: var(--vu-color);
}

.bottom .name {
  font-size: 14.5pt;
  font-weight: 800;
  margin-bottom: 4px;
  color: var(--vu-color);
  letter-spacing: -0.3px;
}

.bottom .position {
  font-size: 14pt;
  color: var(--vu-color);
}

.std-info {
  font-size: 14pt;
  margin-top: 4px;
  color: var(--vu-color);
}

.std-info span {
  margin-right: 6px;
}

.about {
  background: var(--white);
}

.section-title h2 {
  font-size: 2.5rem;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.5rem;
}

.section-title p {
  color: var(--slate);
  font-size: 1.05rem;
  max-width: 600px;
}

#messageBox {
  position: fixed;
  top: -100px;
  /* hidden above screen */
  left: 50%;
  transform: translateX(-50%);

  min-width: 300px;
  max-width: 90%;
  padding: 16px 24px;

  background: var(--navy);
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;

  border-radius: 10px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);

  z-index: 9999;
  text-align: center;
  letter-spacing: 0.3px;

  transition: top 0.4s cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* Show state */
#messageBox.show {
  top: 20px;
}

/* Types */
#messageBox.error {
  background: linear-gradient(135deg, #dc2626, #991b1b);
}

#messageBox.success {
  background: linear-gradient(135deg, #16a34a, #15803d);
}

#messageBox.warning {
  background: linear-gradient(135deg, #ea580c, #c2410c);
}

#messageBox.info {
  background: var(--gradient-primary);
}

.log-box {
  position: fixed;
  top: 20px;
  right: 20px;
  width: 320px;
  max-height: 400px;
  background: var(--white);
  border: 1.5px solid var(--cyan);
  padding: 14px;
  overflow-y: auto;
  font-family: 'Monaco', 'Courier New', monospace;
  z-index: 9999;
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.log-box h3 {
  margin: 0 0 8px 0;
  font-size: 12px;
  color: var(--navy);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

#copyLogBtn {
  margin-top: 8px;
  padding: 6px 12px;
  background: var(--cyan);
  color: var(--navy);
  border: none;
  cursor: pointer;
  font-size: 12px;
  border-radius: 6px;
  font-weight: 600;
  transition: all 0.3s ease;
}

#copyLogBtn:hover {
  background: var(--purple);
  color: white;
}

.btn-autofill {
  width: 100%;
  margin-top: 12px;
  padding: 11px 14px;
  background: var(--bg);
  border: 1.5px solid rgba(0, 0, 0, 0.1);
  cursor: pointer;
  font-size: 13px;
  border-radius: 8px;
  font-weight: 600;
  color: var(--navy);
  transition: all 0.3s ease;
}

.btn-autofill:hover {
  background: rgba(6, 182, 212, 0.1);
  border-color: var(--cyan);
}

.payment-box {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
}

/* LABELS */
.input-group {
  margin-bottom: 14px;
}

.input-group label {
  font-size: 13px;
  font-weight: 700;
  color: var(--navy);
  display: block;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

/* ACCESS CODE STYLE */
.input-with-icon {
  display: flex;
  align-items: center;
  background: var(--bg);
  border: 1.5px solid rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  padding: 12px 14px;
  transition: all 0.3s ease;
}

.input-with-icon:focus-within {
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.1);
}

.input-with-icon span {
  margin-right: 8px;
  color: var(--slate);
}

.input-with-icon input {
  border: none;
  outline: none;
  background: transparent;
  width: 100%;
  font-size: 14px;
  color: var(--navy);
}

/* DISCOUNT ROW */
.discount-row {
  display: flex;
  gap: 12px;
}

.discount-row input {
  flex: 1;
  padding: 12px 14px;
  border-radius: 8px;
  border: 1.5px solid rgba(0, 0, 0, 0.1);
  font-size: 14px;
  transition: all 0.3s ease;
}

.discount-row button {
  background: var(--cyan);
  border: none;
  color: var(--navy);
  padding: 12px 18px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 700;
  margin-top: 0;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(6, 182, 212, 0.2);
}

.discount-row button:hover {
  background: var(--purple);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(6, 182, 212, 0.3);
}

/* PAY BUTTON */
.pay-btn {
  width: 100%;
  background: var(--gradient-primary);
  color: white;
  border: none;
  border-radius: 12px;
  padding: 16px 20px;
  margin-top: 16px;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(6, 182, 212, 0.25);
  transition: all 0.35s cubic-bezier(0.22, 0.61, 0.36, 1);
  font-weight: 700;
  font-size: 1rem;
  position: relative;
  overflow: hidden;
}

.pay-btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.pay-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 36px rgba(6, 182, 212, 0.35);
}

.pay-btn:hover::before {
  width: 300px;
  height: 300px;
}

.pay-title {
  font-size: 16px;
  font-weight: 800;
  color: white;
}

/* PRICE BADGE */
.price-badge {
  background: var(--white);
  color: var(--navy);
  padding: 6px 14px;
  border-radius: 8px;
  font-weight: 900;
  font-size: 24px;
}

/* SUBTEXT */
.pay-sub {
  margin-top: 8px;
  font-size: 12px;
  opacity: 0.85;
  color: rgba(255, 255, 255, 0.9);
}

.hidden {
  display: none !important;
}

.discount-note {
  font-size: 13px;
  color: var(--cyan);
  margin-top: 8px;
  opacity: 0.85;
  font-weight: 600;
}

.pay-secondary,
#previewSection {
  display: none;
}

@media print {
  body {
    background: white;
    margin: 0;
  }

  .header,
  .container {
    display: none;
  }

  .cover-page {
    margin: 0;
    border: none;
  }
}

@media (max-width: 768px) {
  .real-cover {
    position: fixed;
    left: -9999px;
    top: 0;
    opacity: 0;
    pointer-events: none;
  }

  .cover-preview {
    display: block;
  }

  .preview-note {
    display: block;
  }

  .form-area {
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
  }

  .page {
    padding: 1px;
    width: 794px;
    margin: 0 auto;
    transform: scale(calc(100vw / 820));
    transform-origin: top center;
  }

  .cover-page {
    width: 100%;
  }
}

/* iPad - Pro , air , mini */
@media (max-width: 1024px) {
  .unicover-layout {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
  }

  .form-area {
    max-width: 420px;
    margin: 0 auto;
  }

  .page {
    width: 100%;
    max-width: 794px;
    margin: 0 auto;
  }

  .cover-page {
    width: 100%;
    margin: 0 auto;
  }
}

@media (max-width: 1400px) and (min-width: 1024px) {
  .form-area {
    max-width: 420px;
    margin: 0 auto;
  }

  .page {
    width: 100%;
    max-width: 794px;
    margin: 0 auto;
  }

  .cover-page {
    width: 100%;
    margin: 0 auto;
  }
}

@media (min-width: 1400px) {
  .unicover-layout {
    grid-template-columns: 420px 1fr;
  }
}

/* ================= FREE DOWNLOADS REMAINING BAR ================= */
.free-downloads-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 10px;
  padding: 9px 14px;
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.08), rgba(99, 102, 241, 0.08));
  border: 1.5px solid rgba(6, 182, 212, 0.25);
  border-radius: 10px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: 0.2px;
  transition: all 0.3s ease;
}

.free-downloads-bar.warning {
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.12), rgba(245, 158, 11, 0.08));
  border-color: rgba(245, 158, 11, 0.35);
  color: #92400e;
}

.free-downloads-bar.exhausted {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.1), rgba(220, 38, 38, 0.06));
  border-color: rgba(239, 68, 68, 0.3);
  color: #991b1b;
}

/* Progress dots for remaining downloads */
.free-downloads-dots {
  display: flex;
  gap: 5px;
  align-items: center;
}

.free-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cyan);
  transition: all 0.3s ease;
}

.free-dot.used {
  background: #e2e8f0;
  border: 1.5px solid #cbd5e1;
}

/* ================= ENHANCED FREEMIUM MODAL ================= */
.freemium-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;

  display: flex;
  justify-content: center;
  align-items: center;

  z-index: 9999;

  background: rgba(0, 0, 0, 0.5);
}

.freemium-modal {
  background: white;
  padding: 36px 28px 28px;
  border-radius: 20px;
  max-width: 460px;
  width: 90%;
  text-align: center;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.22);
  transform: scale(0.92) translateY(16px);
  transition: transform 0.35s cubic-bezier(0.22, 0.61, 0.36, 1);
  border: 1px solid rgba(0,0,0,0.06);
}

.freemium-modal-overlay.show .freemium-modal {
  transform: scale(1) translateY(0);
}

.fm-icon-header {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(239,68,68,0.12), rgba(220,38,38,0.08));
  border: 2px solid rgba(239,68,68,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin: 0 auto 16px;
}

.freemium-modal h2 {
  color: var(--navy);
  margin-bottom: 8px;
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -0.3px;
}

.freemium-modal p {
  color: var(--slate);
  margin-bottom: 22px;
  font-size: 0.9rem;
  line-height: 1.55;
}

.freemium-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #94a3b8;
}

.freemium-divider::before,
.freemium-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #e2e8f0;
}

/* Modal Options Container */
.freemium-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.fm-btn {
  width: 100%;
  padding: 14px 16px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.22s ease;
  border: none;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  position: relative;
}

.fm-btn-badge {
  position: absolute;
  top: 10px;
  right: 12px;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  padding: 2px 8px;
  border-radius: 20px;
  text-transform: uppercase;
}

.fm-btn-free {
  background: #f8fafc;
  color: #475569;
  border: 1.5px solid #e2e8f0;
}

.fm-btn-free:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
}

.fm-btn-single {
  background: #eff6ff;
  color: #1e40af;
  border: 2px solid #bfdbfe;
}

.fm-btn-single:hover {
  background: #dbeafe;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(59,130,246,0.15);
}

.fm-btn-single .fm-btn-badge {
  background: #dbeafe;
  color: #1e40af;
}

.fm-btn-unlimited {
  background: linear-gradient(135deg, #06b6d4, #6366f1);
  color: white;
  box-shadow: 0 6px 20px rgba(6, 182, 212, 0.3);
  border: none;
}

.fm-btn-unlimited:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(6, 182, 212, 0.4);
}

.fm-btn-unlimited .fm-btn-badge {
  background: rgba(255,255,255,0.25);
  color: white;
}

.fm-subtext {
  font-size: 0.74rem;
  opacity: 0.75;
  margin-top: 3px;
  font-weight: 500;
  line-height: 1.4;
}

.modal-close {
  background: none;
  border: none;
  color: #94a3b8;
  font-size: 0.85rem;
  margin-top: 18px;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.2s;
}

.modal-close:hover {
  color: var(--navy);
}


/* ================= WATERMARK ================= */
.watermark-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(-45deg);
  font-size: 80px;
  font-weight: 900;
  color: rgba(0, 0, 0, 0.08);
  /* Very faint watermark */
  white-space: nowrap;
  pointer-events: none;
  z-index: 1000;
  display: none;
  user-select: none;
}

.watermark-overlay.active {
  display: block;
}

/* Old modal styles removed — see enhanced version above */

.stats-container {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin: 40px 0;
  flex-wrap: wrap;
}

.stat-card {
  padding: 20px 32px;
  border-radius: 12px;
  text-align: center;
  min-width: 150px;

  /* Clean dark card */
  background: #18191a;

  /* Subtle border */
  border: 1px solid #2a2a2a;

  /* Soft depth */
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);

  transition: all 0.2s ease;
}

.stat-card:hover {
  transform: translateY(-3px);
  border-color: #facc15; /* gold accent */
}
/* 
.stat-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 16px;

  background: linear-gradient(120deg,
      rgba(255, 255, 255, 0.2),
      transparent 40%);

  opacity: 0.3;
  pointer-events: none;
} */

.stat-card h2 {
  font-size: 30px;
  font-weight: 600;
  margin: 0;
  color: #facc15; 
}

.stat-card p {
  margin-top: 6px;
  color: #d2c078; 
}