/* Ebora Points — Public CSS */
:root {
  --ebp-blue:   #1565C0;
  --ebp-lblue:  #E3F2FD;
  --ebp-green:  #2E7D32;
  --ebp-red:    #C62828;
  --ebp-border: #E0E0E0;
  --ebp-r:      12px;
}

/* ── Balance card ──────────────────────────────────────── */
.ebp-balance-card {
  display: flex; align-items: center; gap: 16px;
  background: linear-gradient(135deg,#1565C0,#1976D2);
  color: #fff; padding: 18px 22px; border-radius: var(--ebp-r);
  box-shadow: 0 4px 14px rgba(21,101,192,.28); max-width:500px;
}
.ebp-balance-icon { font-size: 34px; }
.ebp-balance-body { flex: 1; }
.ebp-greeting { font-size: 12px; opacity: .8; }
.ebp-label    { font-size: 11px; opacity: .65; margin-top: 2px; }
.ebp-amount   { font-size: 30px; font-weight: 700; line-height: 1.1; }
.ebp-amount span { font-size: 14px; font-weight: 400; opacity: .75; }
.ebp-reload-cta {
  background: rgba(255,255,255,.2); color: #fff;
  padding: 8px 16px; border-radius: 20px;
  text-decoration: none; font-weight: 700; font-size: 13px;
  white-space: nowrap; transition: background .2s;
}
.ebp-reload-cta:hover { background: rgba(255,255,255,.35); color:#fff; }

/* ── Reload form ───────────────────────────────────────── */
.ebp-reload-wrap {
  background: #fff; border: 1px solid var(--ebp-border);
  border-radius: var(--ebp-r); padding: 24px;
  max-width: 560px; box-shadow: 0 2px 10px rgba(0,0,0,.07);
}
.ebp-balance-mini { font-size: 14px; color: #555; margin-bottom: 18px; }
.ebp-balance-mini strong { color: var(--ebp-blue); }

.ebp-step-title {
  display: flex; align-items: center; gap: 10px;
  font-size: 17px; font-weight: 700; margin: 0 0 16px; color: #1a1a1a;
}
.ebp-step-num {
  background: var(--ebp-blue); color: #fff;
  width: 26px; height: 26px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700; flex-shrink: 0;
}

/* Packages */
.ebp-pkg-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(130px,1fr)); gap: 10px; margin-bottom: 14px; }
.ebp-pkg { cursor: pointer; }
.ebp-pkg input { display: none; }
.ebp-pkg-body {
  border: 2px solid var(--ebp-border); border-radius: 10px;
  padding: 14px 10px; text-align: center; transition: border-color .2s, background .2s;
}
.ebp-pkg input:checked ~ .ebp-pkg-body { border-color: var(--ebp-blue); background: var(--ebp-lblue); }
.ebp-pkg-body:hover { border-color: #90CAF9; }
.ebp-pkg-name  { font-size: 12px; color: #666; margin-bottom: 6px; }
.ebp-pkg-ep    { font-size: 22px; font-weight: 700; color: var(--ebp-blue); }
.ebp-pkg-price { font-size: 12px; color: #888; margin-top: 4px; }

/* GCash box */
.ebp-gcash-box {
  background: #F0FDF4; border: 1px solid #86EFAC;
  border-radius: 10px; padding: 14px 16px; margin-bottom: 14px;
}
.ebp-gcash-row { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; flex-wrap: wrap; }
.ebp-gcash-row:last-child { margin-bottom: 0; }
.ebp-gcash-lbl { color: #555; font-size: 13px; min-width: 110px; }
.ebp-gcash-val { font-weight: 600; font-size: 14px; }
.ebp-gcash-val.ebp-big { font-size: 20px; }
.ebp-gcash-val.ebp-blue { color: var(--ebp-blue); }
.ebp-copy-btn {
  background: #fff; border: 1px solid #ccc;
  padding: 4px 10px; border-radius: 6px; font-size: 12px;
  cursor: pointer; transition: background .2s;
}
.ebp-copy-btn:hover { background: #f5f5f5; }

/* Notice boxes */
.ebp-notice-box {
  padding: 12px 14px; border-radius: 8px; font-size: 13px;
  line-height: 1.5; margin-bottom: 14px;
}
.ebp-notice-info { background: #FFF7ED; border: 1px solid #FED7AA; color: #92400E; }
.ebp-notice-warn { background: #FEF2F2; border: 1px solid #FECACA; color: #991B1B; }
.ebp-notice-wait { background: #EFF6FF; border: 1px solid #BFDBFE; color: #1E40AF; }
.ebp-notice-success { background: #F0FDF4; border: 1px solid #86EFAC; color: #166534; }

/* Upload zone */
.ebp-upload-zone {
  border: 2px dashed #CBD5E1; border-radius: 10px;
  padding: 28px 20px; text-align: center; cursor: pointer;
  transition: border-color .2s, background .2s;
}
.ebp-upload-zone:hover, .ebp-upload-zone.drag-over {
  border-color: var(--ebp-blue); background: var(--ebp-lblue);
}
.ebp-upload-icon { font-size: 36px; margin-bottom: 8px; }
.ebp-upload-hint { margin: 0; color: #555; font-size: 14px; line-height: 1.5; }

/* Scanning spinner */
.ebp-scanning { display: flex; align-items: center; gap: 10px; padding: 10px 0; color: var(--ebp-blue); font-weight: 600; font-size: 14px; }
.ebp-spin {
  width: 20px; height: 20px; border: 3px solid #BFDBFE;
  border-top-color: var(--ebp-blue); border-radius: 50%;
  animation: ebp-spin .8s linear infinite;
}
@keyframes ebp-spin { to { transform: rotate(360deg); } }

/* Extracted box */
.ebp-extracted-box {
  background: #F0FDF4; border: 1px solid #A7F3D0;
  border-radius: 10px; padding: 14px 16px; margin-top: 14px;
}
.ebp-extracted-box h4 { margin: 0 0 4px; font-size: 15px; color: #065F46; }
.ebp-extracted-hint { font-size: 12px; color: #047857; margin: 0 0 12px; }
.ebp-field-row { margin-bottom: 10px; }
.ebp-field-row label { display: block; font-size: 12px; color: #555; margin-bottom: 4px; font-weight: 600; }
.ebp-field-row input {
  width: 100%; padding: 8px 10px; border: 1px solid #D1FAE5;
  border-radius: 7px; font-size: 14px; box-sizing: border-box;
  background: #fff;
}
.ebp-field-row input:focus { outline: none; border-color: var(--ebp-blue); }

/* Confirm box */
.ebp-confirm-box {
  background: #F8FAFC; border: 1px solid var(--ebp-border);
  border-radius: 10px; padding: 14px 16px; margin-bottom: 14px;
  font-size: 14px; line-height: 1.8;
}
.ebp-confirm-row { display: flex; justify-content: space-between; gap: 10px; }
.ebp-confirm-row strong { color: #111; }

/* Buttons */
.ebp-btn-primary {
  background: var(--ebp-blue); color: #fff; border: none;
  padding: 11px 24px; border-radius: 8px; font-size: 15px;
  font-weight: 700; cursor: pointer; transition: opacity .2s;
}
.ebp-btn-primary:hover:not(:disabled) { opacity: .88; }
.ebp-btn-primary:disabled { opacity: .45; cursor: not-allowed; }
.ebp-btn-ghost {
  background: none; border: none; color: #777;
  font-size: 14px; cursor: pointer; text-decoration: underline; padding: 8px 0;
}
.ebp-btn-ghost:hover { color: #333; }
.ebp-step-btns { display: flex; gap: 12px; align-items: center; margin-top: 14px; }

/* Result screen */
#ebp-result { padding: 20px; border-radius: 10px; font-size: 15px; line-height: 1.7; }
#ebp-result.ok  { background: #F0FDF4; border: 1px solid #86EFAC; color: #14532D; }
#ebp-result.err { background: #FEF2F2; border: 1px solid #FECACA; color: #991B1B; }

/* ── History ─────────────────────────────────────────────── */
.ebp-history-wrap { background: #fff; border: 1px solid var(--ebp-border); border-radius: var(--ebp-r); padding: 20px 22px; max-width: 560px; }
.ebp-history-wrap h3 { margin-top: 0; }
.ebp-tx-list { display: flex; flex-direction: column; gap: 8px; }
.ebp-tx { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 8px; background: #FAFAFA; border: 1px solid #eee; }
.ebp-tx-icon { font-size: 18px; }
.ebp-tx-info { flex: 1; }
.ebp-tx-desc { font-size: 13px; font-weight: 600; }
.ebp-tx-time { font-size: 11px; color: #999; }
.ebp-tx-ep   { font-size: 15px; font-weight: 700; min-width: 64px; text-align: right; }
.ebp-tx-bal  { font-size: 11px; color: #888; min-width: 56px; text-align: right; }
.ebp-green { color: var(--ebp-green); }
.ebp-red   { color: var(--ebp-red); }
.ebp-empty-msg { color: #aaa; font-style: italic; }

.ebp-widget .ebp-notice { background: var(--ebp-lblue); border: 1px solid #90CAF9; padding: 12px 16px; border-radius: var(--ebp-r); color: #1a237e; }
