/* ═══════════════════════════════════════════════════════════════════════════
   paypal-ff.css — PayPal Friends & Family Payment UI
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── Base ────────────────────────────────────────────────────────────────── */
#ff-ui {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 4px;
}

.ff-step { display: flex; flex-direction: column; gap: 16px; }
.ff-step[hidden] { display: none !important; }

/* ── Code Box ────────────────────────────────────────────────────────────── */
.ff-code-wrap {
  background: linear-gradient(135deg, rgba(139,92,246,.1), rgba(99,102,241,.08));
  border: 1px solid rgba(139,92,246,.35);
  border-radius: 14px;
  padding: 20px 16px 16px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.ff-code-wrap::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 40% at 50% 0%, rgba(139,92,246,.15), transparent);
  pointer-events: none;
}

.ff-code-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(255,255,255,.4);
  margin-bottom: 10px;
}

.ff-code-value {
  font-size: 34px;
  font-weight: 800;
  letter-spacing: .2em;
  font-family: 'Courier New', 'Consolas', monospace;
  color: #fff;
  text-shadow: 0 0 24px rgba(139,92,246,.55);
  user-select: all;
}

.ff-copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  padding: 8px 16px;
  font-size: 12px;
  font-weight: 600;
  font-family: inherit;
  color: rgba(196,181,253,.9);
  background: rgba(139,92,246,.12);
  border: 1px solid rgba(139,92,246,.28);
  border-radius: 8px;
  cursor: pointer;
  transition: background .2s, color .2s, transform .1s;
}

.ff-copy-btn:hover { background: rgba(139,92,246,.22); color: #c4b5fd; }
.ff-copy-btn:active { transform: scale(.96); }

/* ── Steps List ──────────────────────────────────────────────────────────── */
.ff-steps-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ff-step-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 13px 14px;
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 10px;
  transition: border-color .2s;
}

.ff-step-item:hover { border-color: rgba(139,92,246,.2); }

.ff-step-num {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(139,92,246,.15);
  border: 1px solid rgba(139,92,246,.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: #a78bfa;
  margin-top: 1px;
}

.ff-step-text {
  flex: 1;
  font-size: 13.5px;
  line-height: 1.55;
  color: rgba(255,255,255,.75);
}

.ff-step-text strong { color: #fff; font-weight: 600; }

/* Email / code inline row */
.ff-inline-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 7px;
  padding: 7px 10px;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 7px;
  font-size: 13px;
  color: #e2e8f0;
}

.ff-inline-row i { color: rgba(255,255,255,.4); font-size: 12px; flex-shrink: 0; }

.ff-email-copy {
  margin-left: auto;
  flex-shrink: 0;
  font-size: 11px;
  font-weight: 600;
  color: rgba(139,92,246,.8);
  background: none;
  border: none;
  padding: 2px 6px;
  border-radius: 4px;
  cursor: pointer;
  transition: color .2s;
  font-family: inherit;
}

.ff-email-copy:hover { color: #a78bfa; }

/* ── Warning ─────────────────────────────────────────────────────────────── */
.ff-warning {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 11px 14px;
  background: rgba(251,191,36,.05);
  border: 1px solid rgba(251,191,36,.18);
  border-radius: 9px;
  font-size: 12.5px;
  color: rgba(251,191,36,.85);
  line-height: 1.5;
}

.ff-warning i { flex-shrink: 0; margin-top: 2px; }

/* ── Primary Button ──────────────────────────────────────────────────────── */
.ff-primary-btn {
  width: 100%;
  padding: 14px 20px;
  background: linear-gradient(135deg, #7c3aed 0%, #6366f1 100%);
  color: #fff;
  border: none;
  border-radius: 11px;
  font-size: 15px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: opacity .2s, transform .12s, box-shadow .2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 20px rgba(124,58,237,.3);
}

.ff-primary-btn:hover  { opacity: .92; box-shadow: 0 6px 28px rgba(124,58,237,.45); transform: translateY(-1px); }
.ff-primary-btn:active { transform: translateY(0); }

/* ── Verifying Step ──────────────────────────────────────────────────────── */
.ff-verifying-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 28px 0 20px;
  gap: 18px;
  text-align: center;
}

.ff-spinner {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 3px solid rgba(139,92,246,.18);
  border-top-color: #a78bfa;
  animation: ff-spin .75s linear infinite;
}

@keyframes ff-spin { to { transform: rotate(360deg); } }

.ff-verifying-title {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  margin: 0;
}

.ff-verifying-sub {
  font-size: 13.5px;
  color: rgba(255,255,255,.45);
  margin: -6px 0 0;
}

.ff-countdown-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
}

.ff-countdown {
  font-size: 30px;
  font-weight: 800;
  font-family: 'Courier New', monospace;
  color: #a78bfa;
  line-height: 1;
}

.ff-countdown-label {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: rgba(255,255,255,.3);
}

.ff-code-reminder {
  padding: 9px 18px;
  background: rgba(139,92,246,.08);
  border: 1px solid rgba(139,92,246,.2);
  border-radius: 8px;
  font-size: 13px;
  color: rgba(255,255,255,.6);
}

.ff-code-reminder strong {
  font-family: monospace;
  font-size: 15px;
  letter-spacing: .12em;
  color: #c4b5fd;
}

.ff-verifying-note {
  font-size: 12px;
  color: rgba(255,255,255,.3);
  max-width: 260px;
}

/* ── Success Step ────────────────────────────────────────────────────────── */
.ff-success-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 28px 0 16px;
  gap: 14px;
  text-align: center;
}

.ff-checkmark {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(52,211,153,.1);
  border: 2px solid rgba(52,211,153,.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  color: #34d399;
  animation: ff-pop .45s cubic-bezier(.175,.885,.32,1.275) both;
}

@keyframes ff-pop {
  from { transform: scale(.3); opacity: 0; }
  to   { transform: scale(1);  opacity: 1; }
}

.ff-success-title {
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  margin: 0;
}

.ff-success-sub {
  font-size: 14px;
  color: rgba(255,255,255,.5);
  margin: 0;
  max-width: 280px;
  line-height: 1.5;
}

.ff-discord-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 26px;
  background: #5865F2;
  color: #fff;
  text-decoration: none;
  border-radius: 10px;
  font-weight: 700;
  font-size: 14px;
  transition: opacity .2s, transform .1s;
  font-family: inherit;
}

.ff-discord-btn:hover { opacity: .88; transform: translateY(-1px); }

/* ── Timeout Step ────────────────────────────────────────────────────────── */
.ff-timeout-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 26px 0 12px;
  gap: 14px;
  text-align: center;
}

.ff-timeout-icon {
  font-size: 42px;
  color: #f59e0b;
  animation: ff-pulse 2s ease-in-out infinite;
}

@keyframes ff-pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: .5; }
}

.ff-timeout-title {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  margin: 0;
}

.ff-timeout-sub {
  font-size: 13.5px;
  color: rgba(255,255,255,.5);
  margin: 0;
  max-width: 300px;
  line-height: 1.5;
}

.ff-timeout-code {
  font-family: 'Courier New', monospace;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: .12em;
  color: #f59e0b;
  background: rgba(245,158,11,.08);
  border: 1px solid rgba(245,158,11,.22);
  border-radius: 9px;
  padding: 9px 20px;
}

/* ══════════════════════════════════════════════════════════════════════════
   ORDERS PANEL — "Mis pedidos"
   ══════════════════════════════════════════════════════════════════════════ */

/* ── Trigger button in nav ───────────────────────────────────────────────── */
.orders-trigger {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 600;
  color: rgba(255,255,255,.7);
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 8px;
  cursor: pointer;
  font-family: inherit;
  transition: color .2s, background .2s;
}

.orders-trigger:hover { color: #fff; background: rgba(255,255,255,.1); }

.orders-badge {
  display: none;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  background: #7c3aed;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  border-radius: 9px;
}

/* ── Modal overlay ───────────────────────────────────────────────────────── */
#orders-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 900;
  background: rgba(0,0,0,.65);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  align-items: flex-start;
  justify-content: center;
  padding: 48px 16px 24px;
  overflow-y: auto;
}

#orders-modal.open { display: flex; }

.op-panel {
  background: #0e0f14;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 18px;
  width: 100%;
  max-width: 560px;
  box-shadow: 0 24px 64px rgba(0,0,0,.6);
  overflow: hidden;
  position: relative;
}

.op-header {
  padding: 22px 24px 18px;
  border-bottom: 1px solid rgba(255,255,255,.07);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.op-title {
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 8px;
}

.op-title i { color: #a78bfa; }

.op-close {
  width: 32px; height: 32px;
  border-radius: 8px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.08);
  color: rgba(255,255,255,.5);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px;
  transition: color .2s, background .2s;
}

.op-close:hover { color: #fff; background: rgba(255,255,255,.1); }

.op-body { padding: 16px; display: flex; flex-direction: column; gap: 10px; }

/* ── Loading / Empty ─────────────────────────────────────────────────────── */
.op-loading { padding: 32px 0; text-align: center; }
.op-empty {
  padding: 40px 20px;
  text-align: center;
  color: rgba(255,255,255,.35);
  font-size: 13.5px;
}
.op-empty i { font-size: 32px; display: block; margin-bottom: 10px; opacity: .4; }

/* ── Order row ───────────────────────────────────────────────────────────── */
.op-row {
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 12px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: border-color .2s;
}

.op-row:hover { border-color: rgba(139,92,246,.2); }

.op-row-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.op-code {
  font-family: 'Courier New', monospace;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: .12em;
  color: #fff;
}

.op-status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  white-space: nowrap;
}

.op-status.pending {
  color: #f59e0b;
  background: rgba(245,158,11,.08);
  border: 1px solid rgba(245,158,11,.2);
}

.op-status.paid {
  color: #34d399;
  background: rgba(52,211,153,.08);
  border: 1px solid rgba(52,211,153,.2);
}

.op-status.cancelled {
  color: #f87171;
  background: rgba(248,113,113,.08);
  border: 1px solid rgba(248,113,113,.2);
}

.op-row-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 12px;
  color: rgba(255,255,255,.4);
}

.op-row-meta i { margin-right: 3px; }

.op-row-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

.op-verify-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  font-size: 12px;
  font-weight: 600;
  color: #a78bfa;
  background: rgba(139,92,246,.1);
  border: 1px solid rgba(139,92,246,.22);
  border-radius: 8px;
  cursor: pointer;
  font-family: inherit;
  transition: background .2s;
}

.op-verify-btn:hover   { background: rgba(139,92,246,.18); }
.op-verify-btn:disabled { opacity: .5; cursor: not-allowed; }

.op-resume-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  font-size: 12px;
  font-weight: 600;
  color: rgba(255,255,255,.6);
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 8px;
  cursor: pointer;
  font-family: inherit;
  transition: color .2s, background .2s;
}

.op-resume-btn:hover { color: #fff; background: rgba(255,255,255,.09); }

.op-discord-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: #5865F2;
  color: #fff;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 12px;
  transition: opacity .2s;
}

.op-discord-btn:hover { opacity: .88; }

.op-expired {
  font-size: 12px;
  color: rgba(245,158,11,.7);
  display: flex;
  align-items: center;
  gap: 5px;
}

/* ── Footer note ─────────────────────────────────────────────────────────── */
.op-footer {
  padding: 14px 24px;
  border-top: 1px solid rgba(255,255,255,.06);
  font-size: 11.5px;
  color: rgba(255,255,255,.3);
  text-align: center;
  line-height: 1.5;
}

