/**
 * # Version: v4.0.0 (2026-07-07)
 * Partner B2B dashboard — Premium enterprise theme (matches main landing v4.0.0)
 */
@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@700;800;900&family=Inter:wght@500;600;700;800;900&family=Noto+Sans+KR:wght@600;700;900&display=swap');

:root {
  --pd-gold: #C9A227;
  --pd-gold-soft: #FFFBEB;
  --pd-gold-deep: #8A6D1D;
  --pd-navy: #1E3A8A;
  --pd-navy-deep: #0B1220;
  --pd-neon: #3B82F6;
  --pd-white: #FFFFFF;
  --pd-wash: #F7F9FC;
  --pd-line: #E7ECF3;
  --pd-muted: #64748B;
}

body.pd-demo {
  background: var(--pd-wash);
  color: var(--pd-navy-deep);
  font-family: Inter, 'Noto Sans KR', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
.font-display { font-family: 'Manrope', 'Noto Sans KR', sans-serif; }

.pd-admin-bar {
  background: linear-gradient(90deg, rgba(255,251,235,0.7), rgba(255,255,255,0.9));
  border-bottom: 1px solid rgba(201,162,39,0.25);
}
.pd-session-pill {
  display: inline-flex; align-items: center; gap: 0.35rem;
  padding: 0.25rem 0.65rem; border-radius: 999px;
  background: #ECFDF5; border: 1px solid #A7F3D0;
  color: #059669; font-weight: 900; font-size: 0.65rem;
}
.pd-live-pulse { width: 7px; height: 7px; border-radius: 50%; background: #10B981; animation: pd-pulse 1.2s ease-in-out infinite; }
@keyframes pd-pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }

.pd-header {
  border-bottom: 1px solid var(--pd-line);
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(16px);
}

.pd-eyebrow-gold { color: var(--pd-gold-deep); font-weight: 900; letter-spacing: 0.12em; text-transform: uppercase; }
.pd-title { font-family: 'Manrope', 'Noto Sans KR', sans-serif; font-size: clamp(1.5rem, 4.5vw, 2.1rem); font-weight: 900; letter-spacing: -0.03em; line-height: 1.18; color: var(--pd-navy-deep); }
.pd-sub { font-size: 0.95rem; font-weight: 700; color: var(--pd-muted); line-height: 1.55; }

/* ---------- Block containers ---------- */
.pd-block {
  border: 2px solid #94A3B8;
  border-radius: 26px;
  background: var(--pd-white);
  box-shadow: 0 1px 2px rgba(11,18,32,0.04), 0 16px 40px -10px rgba(30,58,138,0.08);
  overflow: hidden;
  transition: transform 0.35s cubic-bezier(0.22,1,0.36,1), box-shadow 0.35s ease, border-color 0.35s ease;
  animation: pd-fade-up 0.6s cubic-bezier(0.22,1,0.36,1) both;
}
.pd-block-roi, .pd-block-gold { border-color: #C9A227; }
.pd-block-live { border-color: #3B82F6; }
.pd-block-chain { border-color: #1E3A8A; }
main > .pd-block:nth-of-type(1) { animation-delay: 0.04s; }
main > .pd-block:nth-of-type(2) { animation-delay: 0.10s; }
main > .pd-block:nth-of-type(3) { animation-delay: 0.16s; }
main > .pd-block:nth-of-type(4) { animation-delay: 0.22s; }
@keyframes pd-fade-up { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }

.pd-block:hover { transform: translateY(-4px); }
.pd-block-roi:hover, .pd-block-gold:hover { box-shadow: 0 28px 56px -12px rgba(201,162,39,0.30); border-color: #8A6D1D; }
.pd-block-live:hover { box-shadow: 0 28px 56px -12px rgba(59,130,246,0.26); border-color: #1D4ED8; }
.pd-block-chain:hover { box-shadow: 0 28px 56px -12px rgba(30,58,138,0.26); border-color: #0B1220; }

.pd-block-head { padding: 1.35rem 1.6rem; border-bottom: 1px solid var(--pd-line); background: linear-gradient(180deg, #FAFBFD, #fff); display: flex; align-items: center; gap: 0.85rem; }
.pd-block-icon {
  width: 2.75rem; height: 2.75rem; border-radius: 14px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; font-size: 1.05rem;
}
.pd-block-icon-gold { background: linear-gradient(150deg, #FFFBEB, #FDF0C8); color: var(--pd-gold-deep); }
.pd-block-icon-blue { background: linear-gradient(150deg, #EFF6FF, #DBEAFE); color: var(--pd-neon); }
.pd-block-icon-navy { background: linear-gradient(150deg, #EEF2FF, #DBEAFE); color: var(--pd-navy); }
.pd-block-title { font-family: 'Manrope', 'Noto Sans KR', sans-serif; font-size: 1.05rem; font-weight: 900; color: var(--pd-navy-deep); flex: 1; min-width: 0; }
.pd-block-body { padding: 1.5rem 1.6rem 1.75rem; }

.pd-roi-badge {
  display: inline-flex; padding: 0.4rem 0.9rem; border-radius: 999px;
  background: linear-gradient(135deg, var(--pd-gold), #E8C547);
  font-size: 0.82rem; font-weight: 900; color: var(--pd-navy-deep);
  box-shadow: 0 4px 14px rgba(201,162,39,0.30);
}

.pd-roi-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
@media (max-width: 480px) { .pd-roi-grid { grid-template-columns: 1fr; } }
.pd-roi-card { padding: 1.25rem; border-radius: 18px; border: 1px solid var(--pd-line); background: var(--pd-wash); }
.pd-roi-card.highlight { border-color: rgba(201,162,39,0.35); background: linear-gradient(135deg, var(--pd-gold-soft), #fff); }
.pd-roi-label { font-size: 0.68rem; font-weight: 800; color: var(--pd-muted); text-transform: uppercase; letter-spacing: 0.05em; }
.pd-roi-value { font-size: 1.7rem; font-weight: 900; color: var(--pd-navy-deep); margin-top: 0.35rem; letter-spacing: -0.02em; }
.pd-roi-value.gold { color: var(--pd-gold-deep); font-size: 1.9rem; }
.pd-footnote { font-size: 0.82rem; font-weight: 800; color: var(--pd-navy); line-height: 1.6; margin-top: 1.1rem; padding-top: 1.1rem; border-top: 1px dashed var(--pd-line); }

.pd-uuid-badge {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.35rem 0.8rem; border-radius: 999px;
  background: #EFF6FF; border: 1px solid #BFDBFE;
  font-size: 0.62rem; font-weight: 900; color: var(--pd-navy);
}
.pd-uuid-badge i { color: var(--pd-neon); }

.pd-live-counter {
  display: flex; align-items: baseline; gap: 0.5rem; flex-wrap: wrap;
  padding: 1rem 1.15rem; border-radius: 18px;
  background: linear-gradient(135deg, #EFF6FF, #fff);
  border: 1px solid #BFDBFE; margin-bottom: 1.1rem;
}
.pd-live-counter-label { font-size: 0.75rem; font-weight: 900; color: var(--pd-muted); }
.pd-live-counter-val { font-size: 2.1rem; font-weight: 900; color: var(--pd-navy); letter-spacing: -0.03em; }
.pd-live-counter-unit { font-size: 0.85rem; font-weight: 900; color: var(--pd-navy); }

.pd-live-feed { max-height: 220px; overflow: hidden; display: flex; flex-direction: column; gap: 0.55rem; }
.pd-live-item {
  display: flex; align-items: flex-start; gap: 0.65rem;
  padding: 0.85rem 1rem; border-radius: 14px;
  background: var(--pd-wash); border: 1px solid var(--pd-line);
  animation: pd-roll-in 0.45s ease-out both;
}
.pd-live-dot { flex-shrink: 0; width: 8px; height: 8px; margin-top: 0.35rem; border-radius: 50%; background: #10B981; box-shadow: 0 0 0 3px rgba(16,185,129,0.18); }
.pd-live-text { font-size: 0.78rem; font-weight: 800; color: var(--pd-navy-deep); line-height: 1.5; }
@keyframes pd-roll-in { from { opacity: 0; transform: translateY(-12px); } to { opacity: 1; transform: translateY(0); } }

.pd-member-badge {
  display: inline-flex; align-items: baseline; gap: 0.5rem;
  padding: 0.5rem 1.05rem; border-radius: 14px;
  background: var(--pd-gold-soft); border: 1px solid rgba(201,162,39,0.30);
}
.pd-member-badge span:nth-child(2) { font-size: 1.75rem; font-weight: 900; color: var(--pd-gold-deep); }

.pd-loyalty-table { width: 100%; min-width: 560px; border-collapse: collapse; border: 1px solid var(--pd-line); border-radius: 14px; overflow: hidden; }
.pd-loyalty-table th {
  text-align: left; padding: 0.85rem 0.95rem;
  font-size: 0.65rem; font-weight: 900; color: var(--pd-muted);
  text-transform: uppercase; letter-spacing: 0.06em;
  background: var(--pd-wash); border-bottom: 1px solid var(--pd-line);
}
.pd-loyalty-table td { padding: 0.95rem; font-size: 0.85rem; font-weight: 800; border-bottom: 1px solid #F1F5F9; vertical-align: middle; }
.pd-loyalty-table tr:last-child td { border-bottom: none; }
.pd-loyalty-table tr:hover td { background: #FAFBFD; }
.pd-check {
  width: 1.35rem; height: 1.35rem; border-radius: 7px;
  border: 1.5px solid #CBD5E1; background: #fff; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.75rem; font-weight: 900; color: var(--pd-navy);
  transition: background 0.2s ease, border-color 0.2s ease;
}
.pd-check.on { background: var(--pd-navy); border-color: var(--pd-navy); color: #fff; }

.pd-tier-vip { display: inline-block; padding: 0.32rem 0.75rem; border-radius: 8px; font-size: 0.72rem; font-weight: 900; background: var(--pd-gold-soft); border: 1px solid rgba(201,162,39,0.35); color: #8A6D1D; }
.pd-tier-normal { display: inline-block; padding: 0.32rem 0.75rem; border-radius: 8px; font-size: 0.72rem; font-weight: 900; background: var(--pd-wash); border: 1px solid var(--pd-line); color: var(--pd-muted); }

.pd-send-btn {
  width: 100%; margin-top: 1.35rem; padding: 1.05rem 1.25rem;
  border-radius: 16px; border: none; cursor: pointer;
  background: linear-gradient(135deg, var(--pd-gold), #E8C547);
  color: var(--pd-navy-deep); font-size: 0.9rem; font-weight: 900;
  box-shadow: 0 10px 26px rgba(201,162,39,0.32);
  transition: transform 0.25s cubic-bezier(0.22,1,0.36,1), box-shadow 0.25s ease;
}
.pd-send-btn:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 16px 36px rgba(201,162,39,0.42); }
.pd-send-btn:disabled { opacity: 0.45; cursor: not-allowed; box-shadow: none; background: #E2E8F0; color: #94A3B8; }

.pd-chain-status {
  display: flex; align-items: center; gap: 0.65rem;
  padding: 1rem 1.15rem; border-radius: 16px; margin-bottom: 0.95rem;
  background: #ECFDF5; border: 1px solid #A7F3D0;
  font-size: 0.82rem; font-weight: 900; color: #047857;
}
.pd-chain-pulse { width: 10px; height: 10px; border-radius: 50%; background: #10B981; animation: pd-pulse 1s ease-in-out infinite; box-shadow: 0 0 0 4px rgba(16,185,129,0.20); }

.pd-contract-box { padding: 1.1rem 1.25rem; border-radius: 16px; margin-bottom: 1.1rem; border: 1.5px dashed rgba(30,58,138,0.30); background: #EFF6FF; }
.pd-contract-label { font-size: 0.68rem; font-weight: 800; color: var(--pd-muted); text-transform: uppercase; }
.pd-contract-val { font-size: 0.9rem; font-weight: 900; color: var(--pd-navy); margin-top: 0.4rem; line-height: 1.5; }

.pd-hash-label { font-size: 0.68rem; font-weight: 900; color: var(--pd-muted); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 0.6rem; }
.pd-hash-stream { display: flex; flex-direction: column; gap: 0.5rem; max-height: 180px; overflow: hidden; }
.pd-hash-row {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 0.75rem;
  padding: 0.75rem 0.95rem; border-radius: 12px;
  background: var(--pd-navy-deep); border: 1px solid #1E293B;
  animation: pd-hash-in 0.4s ease-out both;
}
.pd-hash-val { font-family: ui-monospace, monospace; font-size: 0.78rem; font-weight: 900; color: #34D399; letter-spacing: 0.02em; }
.pd-hash-sn { font-size: 0.68rem; font-weight: 800; color: #94A3B8; }
.pd-hash-ok { margin-left: auto; font-size: 0.62rem; font-weight: 900; color: #6EE7B7; display: flex; align-items: center; gap: 0.3rem; }
@keyframes pd-hash-in { from { opacity: 0; transform: translateX(-8px); } to { opacity: 1; transform: translateX(0); } }

.pd-modal-backdrop { position: fixed; inset: 0; z-index: 100; background: rgba(11,18,32,0.5); backdrop-filter: blur(8px); display: flex; align-items: center; justify-content: center; padding: 1rem; }
.pd-modal { width: 100%; max-width: 420px; padding: 1.9rem; border-radius: 26px; background: #fff; border: 1px solid rgba(201,162,39,0.30); box-shadow: 0 28px 72px rgba(11,18,32,0.20); text-align: center; animation: pd-fade-up 0.4s cubic-bezier(0.22,1,0.36,1) both; }
.pd-modal-icon { width: 3.5rem; height: 3.5rem; margin: 0 auto 1rem; border-radius: 50%; background: linear-gradient(135deg, var(--pd-gold-soft), #fff); border: 1px solid rgba(201,162,39,0.35); display: flex; align-items: center; justify-content: center; font-size: 1.5rem; }
.pd-modal-title { font-family: 'Manrope', 'Noto Sans KR', sans-serif; font-size: 1.15rem; font-weight: 900; color: var(--pd-navy-deep); }
.pd-modal-msg { font-size: 0.88rem; font-weight: 700; color: var(--pd-muted); margin-top: 0.75rem; line-height: 1.6; }
.pd-modal-btn { margin-top: 1.35rem; width: 100%; padding: 0.9rem; border-radius: 14px; border: none; cursor: pointer; background: var(--pd-navy); color: #fff; font-weight: 900; font-size: 0.9rem; transition: transform 0.2s ease, box-shadow 0.2s ease; }
.pd-modal-btn:hover { transform: translateY(-1px); box-shadow: 0 10px 24px rgba(30,58,138,0.25); }

.i18n-fade.is-switching { opacity: 0.35; transition: opacity 0.1s; }
.lang-dropdown-item.active { background: #EFF6FF; font-weight: 900; color: var(--pd-navy); }
.pd-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
