* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Georgia', 'Times New Roman', serif;
  background: #0a0a0a;
  color: #e0e0e0;
  line-height: 1.6;
}

.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 20px;
}

/* HEADER */
header {
  background: linear-gradient(135deg, #1a1a2e, #16213e);
  border-bottom: 3px solid #8B00FF;
  padding: 2.5rem 0;
  text-align: center;
}

header h1 {
  font-size: 3.5rem;
  letter-spacing: 12px;
  background: linear-gradient(90deg, #8B00FF, #FF8C00, #00CC66);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-transform: uppercase;
  font-weight: 900;
}

.subtitle {
  font-size: 0.95rem;
  letter-spacing: 4px;
  color: #aaa;
  margin-top: 4px;
  text-transform: uppercase;
}

.ref {
  font-size: 0.8rem;
  color: #666;
  margin-top: 8px;
  font-family: monospace;
}

/* INFO SECTION */
.info-section {
  text-align: center;
  padding: 2rem 0;
  border-bottom: 1px solid #222;
}

.info-section h2 {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
  color: #fff;
}

.info-section p {
  max-width: 720px;
  margin: 0 auto;
  color: #bbb;
  font-size: 1rem;
}

/* PHASES */
.phases {
  display: flex;
  gap: 20px;
  padding: 2.5rem 0;
  flex-wrap: wrap;
}

.phase-card {
  flex: 1;
  min-width: 250px;
  border-radius: 12px;
  padding: 1.75rem;
  text-align: center;
  border: 1px solid #333;
  background: #111;
  transition: transform 0.2s;
}

.phase-card:hover {
  transform: translateY(-4px);
}

.phase-card.purple { border-top: 4px solid #8B00FF; }
.phase-card.orange { border-top: 4px solid #FF8C00; }
.phase-card.green { border-top: 4px solid #00CC66; }

.phase-badge {
  display: inline-block;
  padding: 4px 14px;
  border-radius: 20px;
  font-size: 0.7rem;
  font-weight: bold;
  letter-spacing: 2px;
  margin-bottom: 12px;
  font-family: monospace;
}

.purple .phase-badge { background: #8B00FF22; color: #B266FF; border: 1px solid #8B00FF44; }
.orange .phase-badge { background: #FF8C0022; color: #FFB347; border: 1px solid #FF8C0044; }
.green .phase-badge { background: #00CC6622; color: #66FF99; border: 1px solid #00CC6644; }

.phase-card h3 {
  font-size: 2rem;
  margin-bottom: 10px;
  letter-spacing: 6px;
}

.purple .phase-card h3, .purple h3 { color: #B266FF; }
.orange .phase-card h3, .orange h3 { color: #FFB347; }
.green .phase-card h3, .green h3 { color: #66FF99; }

.phase-card p {
  font-size: 0.85rem;
  color: #999;
  line-height: 1.5;
}

/* PRICING */
.pricing {
  padding: 2rem 0;
  text-align: center;
}

.price-box {
  display: inline-block;
  padding: 1.5rem 2.5rem;
  background: linear-gradient(135deg, #1a1a2e, #16213e);
  border: 1px solid #333;
  border-radius: 12px;
}

.price-amount {
  display: block;
  font-size: 2.5rem;
  font-weight: 900;
  background: linear-gradient(90deg, #8B00FF, #00CC66);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  letter-spacing: 2px;
}

.price-label {
  display: block;
  font-size: 0.85rem;
  color: #aaa;
  text-transform: uppercase;
  letter-spacing: 3px;
  margin-top: 4px;
}

.price-note {
  display: block;
  font-size: 0.7rem;
  color: #666;
  margin-top: 8px;
  font-family: monospace;
}

/* CHECKBOX */
.checkbox-label {
  display: flex !important;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.85rem !important;
  color: #bbb !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
  cursor: pointer;
  line-height: 1.5;
}

.checkbox-label input[type="checkbox"] {
  width: auto;
  margin-top: 3px;
  accent-color: #8B00FF;
  flex-shrink: 0;
}

.form-error {
  color: #ff4444;
  font-size: 0.85rem;
  text-align: center;
  margin-top: 1rem;
  padding: 10px;
  background: #441111;
  border-radius: 8px;
  border: 1px solid #662222;
}

.form-error.hidden {
  display: none;
}

/* GENERATOR */
.generator {
  padding: 2.5rem 0;
  border-top: 1px solid #222;
}

.btn-primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.generator h2 {
  text-align: center;
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  color: #fff;
}

.note {
  text-align: center;
  color: #888;
  font-size: 0.85rem;
  margin-bottom: 2rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  color: #bbb;
  margin-bottom: 6px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

input, select {
  width: 100%;
  padding: 12px 16px;
  background: #1a1a1a;
  border: 1px solid #333;
  border-radius: 8px;
  color: #e0e0e0;
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 0.2s;
}

input:focus, select:focus {
  outline: none;
  border-color: #8B00FF;
}

/* PHASE SELECTOR */
.phase-selector {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.phase-option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  background: #1a1a1a;
  border: 2px solid #333;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s;
}

.phase-option:hover {
  border-color: #555;
}

.phase-option input[type="radio"] {
  display: none;
}

.phase-option input[type="radio"]:checked + .phase-label .dot {
  box-shadow: 0 0 0 4px rgba(255,255,255,0.15);
}

.phase-option:has(input:checked) {
  border-color: #666;
  background: #222;
}

.phase-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: bold;
  font-size: 1rem;
  flex: 1;
}

.dot {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: inline-block;
  border: 2px solid rgba(255,255,255,0.2);
  transition: all 0.2s;
}

.purple-dot { background: #8B00FF; }
.orange-dot { background: #FF8C00; }
.green-dot { background: #00CC66; }

.phase-desc {
  font-size: 0.8rem;
  color: #888;
}

/* BUTTONS */
.btn-primary {
  display: block;
  width: 100%;
  padding: 14px;
  background: linear-gradient(90deg, #8B00FF, #FF8C00, #00CC66);
  color: #000;
  font-size: 1.1rem;
  font-weight: bold;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: transform 0.2s, opacity 0.2s;
  font-family: inherit;
  letter-spacing: 2px;
}

.btn-primary:hover {
  transform: scale(1.01);
  opacity: 0.95;
}

.btn-secondary {
  padding: 10px 20px;
  background: #222;
  color: #ccc;
  border: 1px solid #444;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.9rem;
  font-family: inherit;
  text-decoration: none;
  transition: background 0.2s;
}

.btn-secondary:hover {
  background: #333;
  color: #fff;
}

/* FOOTER */
footer {
  border-top: 1px solid #222;
  padding: 2rem 0;
  text-align: center;
}

.footer-legal {
  font-size: 0.7rem;
  color: #555;
  line-height: 1.8;
  font-family: monospace;
}

.footer-copy {
  font-size: 0.7rem;
  color: #444;
  margin-top: 12px;
}

/* =========== CERTIFICATE PAGE =========== */
.cert-body {
  background: #f5f5f0;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
}

.cert-container {
  max-width: 850px;
  width: 100%;
}

.certificate {
  background: #fffdf7;
  color: #1a1a1a;
  border: 2px solid #d4c9a8;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 8px 40px rgba(0,0,0,0.15);
}

.color-bar {
  height: 8px;
}

.cert-header {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 30px 40px 20px;
  border-bottom: 2px solid #d4c9a8;
}

.cert-seal {
  flex-shrink: 0;
}

.seal-inner {
  width: 80px;
  height: 80px;
  border: 3px solid #1a1a1a;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  font-weight: 900;
  letter-spacing: 2px;
  font-family: monospace;
}

.cert-title-block h1 {
  font-size: 2.2rem;
  letter-spacing: 10px;
  color: #1a1a1a;
  text-transform: uppercase;
}

.cert-subtitle {
  font-size: 0.75rem;
  letter-spacing: 3px;
  color: #888;
  text-transform: uppercase;
  margin-top: 2px;
}

.cert-body-content {
  padding: 30px 40px 35px;
}

.cert-certify {
  text-align: center;
  font-size: 1.1rem;
  letter-spacing: 6px;
  color: #666;
  margin-bottom: 28px;
  font-weight: bold;
}

.cert-field {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 10px 0;
  border-bottom: 1px solid #e8e4d8;
  gap: 20px;
}

.field-label {
  font-size: 0.7rem;
  letter-spacing: 2px;
  color: #999;
  text-transform: uppercase;
  flex-shrink: 0;
  font-family: monospace;
}

.field-value {
  font-size: 1.05rem;
  text-align: right;
  color: #1a1a1a;
  font-weight: 500;
}

.mono {
  font-family: 'Courier New', monospace;
  font-size: 0.9rem;
}

.small {
  font-size: 0.75rem;
  word-break: break-all;
}

.cert-phase-display {
  text-align: center;
  margin: 28px 0;
  padding: 20px;
  background: #fafaf5;
  border: 1px solid #e8e4d8;
  border-radius: 8px;
}

.phase-cert-badge {
  display: inline-block;
  padding: 6px 24px;
  border-radius: 4px;
  color: #fff;
  font-weight: bold;
  font-size: 0.95rem;
  letter-spacing: 3px;
  margin-bottom: 10px;
  font-family: monospace;
}

.phase-cert-desc {
  display: block;
  font-size: 0.8rem;
  color: #888;
  line-height: 1.5;
  max-width: 600px;
  margin: 0 auto;
}

.cert-stamp-area {
  text-align: center;
  margin: 10px 0 20px;
}

.color-stamp {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  font-size: 1.4rem;
  font-weight: 900;
  letter-spacing: 2px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.15);
  font-family: monospace;
}

.cert-footer-legal {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid #e8e4d8;
  text-align: center;
}

.legal-line {
  font-size: 0.65rem;
  color: #999;
  line-height: 1.7;
  font-family: monospace;
}

.cert-hash {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px dashed #d4c9a8;
  gap: 16px;
}

/* ACTIONS */
.cert-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-top: 24px;
  flex-wrap: wrap;
}

/* TOAST */
.toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  padding: 12px 24px;
  background: #1a1a1a;
  color: #fff;
  border-radius: 8px;
  font-size: 0.9rem;
  transition: all 0.3s;
  z-index: 999;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.toast.hidden {
  opacity: 0;
  transform: translateX(-50%) translateY(20px);
  pointer-events: none;
}

.toast.show {
  opacity: 1;
}

/* PRINT */
@media print {
  body {
    background: #fff;
    padding: 0;
  }
  .cert-body {
    padding: 0;
    background: #fff;
  }
  .certificate {
    box-shadow: none;
    border: 1px solid #ccc;
  }
  .cert-actions {
    display: none;
  }
  .toast {
    display: none;
  }
}

/* RESPONSIVE */
@media (max-width: 600px) {
  header h1 { font-size: 2rem; letter-spacing: 6px; }
  .cert-header { flex-direction: column; text-align: center; }
  .cert-field { flex-direction: column; align-items: flex-start; gap: 4px; }
  .field-value { text-align: left; }
  .cert-hash { flex-direction: column; align-items: flex-start; }
  .cert-body-content { padding: 20px; }
  .cert-header { padding: 20px; }
}
