/* ===== Nero Design System - HyRizz ===== */
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: 'Lexend Deca', sans-serif;
  background: aliceblue;
  color: #2c3e50;
  -webkit-font-smoothing: antialiased;
}
a { color: #2196f3; text-decoration: none; }

.wrap { max-width: 960px; margin: 0 auto; padding: 24px 16px 60px; }

.topbar {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 20px; flex-wrap: wrap; gap: 12px;
}
.topbar h1 { font-size: 20px; font-weight: 700; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }

.card {
  background: #fff;
  border-radius: 15px;
  border-bottom: 3px solid #2196f3;
  padding: 18px 20px;
  box-shadow: 0 2px 12px rgba(33,150,243,.06);
}
.card h3 { font-size: 15px; font-weight: 600; margin-bottom: 10px; }

.muted { color: #90a4ae; font-size: 14px; }

.stat-row { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }
.pill { font-size: 11px; font-weight: 600; padding: 4px 10px; border-radius: 999px; }
.pill-blue { background: #e3f2fd; color: #1976d2; }
.pill-green { background: #e8f5e9; color: #2e7d32; }
.pill-gray { background: #eceff1; color: #607d8b; }
.pill-red { background: #ffebee; color: #c62828; }

.card-actions { display: flex; gap: 8px; }

.btn-primary, .btn-secondary {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: inherit; font-weight: 600; font-size: 13px;
  border-radius: 10px; padding: 10px 16px; border: none; cursor: pointer;
  transition: transform .1s ease, opacity .15s ease;
}
.btn-primary { background: #2196f3; color: #fff; }
.btn-primary:hover { opacity: .9; }
.btn-secondary { background: #eef6fd; color: #1976d2; }
.btn-secondary:hover { background: #e0f0fc; }
.btn-primary:active, .btn-secondary:active { transform: scale(.97); }

input, textarea, select {
  font-family: inherit; font-size: 14px;
  border: 1px solid #dbe7f5; border-radius: 10px; padding: 10px 12px;
  width: 100%; background: #fff;
}
input:focus, textarea:focus, select:focus { outline: none; border-color: #2196f3; }
label { font-size: 12px; font-weight: 600; color: #607d8b; display: block; margin-bottom: 4px; }

/* ===== Block builder ===== */
.block-list { display: flex; flex-direction: column; gap: 10px; margin: 16px 0; }
.block-item {
  background: #fff; border: 1px solid #e3eef8; border-radius: 12px;
  padding: 14px; display: flex; gap: 12px; align-items: flex-start;
}
.block-item.dragging { opacity: .4; }
.block-handle {
  cursor: grab; color: #b0bec5; font-size: 18px; padding-top: 6px; user-select: none;
}
.block-body { flex: 1; }
.block-type-label {
  font-size: 11px; font-weight: 700; color: #2196f3; text-transform: uppercase;
  letter-spacing: .3px; margin-bottom: 8px; display: flex; align-items: center; gap: 6px;
}
.block-remove {
  margin-left: auto; background: none; border: none; color: #ef5350;
  cursor: pointer; font-size: 13px; font-weight: 600;
}
.add-block-row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.add-block-btn {
  background: #f5f9fd; border: 1px dashed #90caf9; color: #1976d2;
  border-radius: 10px; padding: 10px 14px; font-family: inherit; font-weight: 600;
  font-size: 13px; cursor: pointer;
}
.add-block-btn:hover { background: #e3f2fd; }

.thumb-preview { max-width: 160px; border-radius: 8px; margin-top: 6px; display: block; }

/* ===== Key list ===== */
.key-row {
  display: flex; align-items: center; gap: 10px; background: #fff;
  border: 1px solid #e3eef8; border-radius: 10px; padding: 10px 14px; margin-bottom: 8px;
}
.key-code { font-family: monospace; font-size: 14px; font-weight: 600; flex: 1; }
.copy-btn {
  background: #2196f3; color: #fff; border: none; border-radius: 8px;
  padding: 6px 12px; font-size: 12px; font-weight: 600; cursor: pointer; font-family: inherit;
}
.copy-btn.copied { background: #4caf50; }

/* ===== Public check page ===== */
.check-hero {
  max-width: 480px; margin: 60px auto 0; text-align: center; padding: 0 16px;
}
.check-hero h1 { font-size: 22px; font-weight: 700; margin-bottom: 6px; }
.check-hero p { color: #78909c; font-size: 14px; margin-bottom: 20px; }
.check-form { display: flex; gap: 8px; }
.check-form input { flex: 1; }

.order-view { max-width: 640px; margin: 30px auto; padding: 0 16px 60px; }
.countdown-banner {
  background: #fff3e0; color: #e65100; border-radius: 12px; padding: 12px 16px;
  font-size: 13px; font-weight: 600; text-align: center; margin-bottom: 18px;
  border-bottom: 3px solid #ff9800;
}
.order-block { background: #fff; border-radius: 15px; padding: 18px 20px; margin-bottom: 14px; border-bottom: 3px solid #2196f3; }
.order-title { font-size: 20px; font-weight: 700; margin-bottom: 16px; }
.order-text { font-size: 14px; line-height: 1.7; white-space: pre-wrap; word-break: break-word; }
.order-text a { color: #2196f3; text-decoration: underline; }
.order-image { width: 100%; border-radius: 10px; display: block; }
.order-video { width: 100%; border-radius: 10px; }
.file-download {
  display: flex; align-items: center; gap: 12px; background: #f5f9fd;
  border-radius: 12px; padding: 14px; text-decoration: none; color: #2c3e50;
}
.file-download .icon { font-size: 24px; }
.file-download .name { font-weight: 600; font-size: 14px; }
.file-download .dl-btn {
  margin-left: auto; background: #2196f3; color: #fff; padding: 8px 14px;
  border-radius: 8px; font-size: 12px; font-weight: 600;
}
.error-box { background: #ffebee; color: #c62828; border-radius: 10px; padding: 12px 16px; font-size: 13px; margin-top: 12px; }
