/* css/profile.css - profile page (pf-*) + social rows shared with socials.html */

.pf { padding-bottom: 56px; }
.pf h1, .pf h2, .pf h3 { letter-spacing: -0.01em; }
.pf-muted { color: var(--text-muted); font-size: 14px; margin: 4px 0 0; }
.pf-hint { color: var(--text-faint); font-size: 12px; margin-top: 6px; line-height: 1.5; }
.pf-hint a, .pf-link { color: var(--accent); }
.pf-link { font-size: 13px; font-weight: 500; }
.pf-link:hover, .pf-hint a:hover { text-decoration: underline; }

/* Loading placeholders */
.pf-skel { display: inline-block; min-width: 72px; height: 1em; border-radius: 6px; vertical-align: middle;
  background: linear-gradient(90deg, var(--bg-elevated) 25%, var(--bg-card-raised) 50%, var(--bg-elevated) 75%);
  background-size: 200% 100%; animation: pf-shimmer 1.4s ease-in-out infinite; }
.pf-skel-title { min-width: 180px; height: 26px; }
.pf-skel-block { display: block; height: 72px; border-radius: 10px; }
@keyframes pf-shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) { .pf-skel { animation: none; } }

/* Hero */
.pf-hero { padding: 0; overflow: hidden; margin-top: 28px; }
.pf-cover { height: 112px;
  background:
    radial-gradient(600px 160px at 15% 0%, rgba(91, 141, 239, 0.45), transparent 70%),
    radial-gradient(500px 160px at 90% 100%, rgba(242, 184, 75, 0.28), transparent 70%),
    linear-gradient(135deg, #161b26, #1b2130); }
.pf-hero-body { display: flex; align-items: flex-end; gap: 20px; padding: 0 28px 24px; margin-top: -44px; }
.pf-avatar { position: relative; flex: none; width: 96px; height: 96px; border-radius: 50%; overflow: hidden;
  background: linear-gradient(135deg, var(--accent), #7a6cf0); border: 4px solid var(--bg-card);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4); display: flex; align-items: center; justify-content: center; }
.pf-avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pf-avatar-sm { width: 72px; height: 72px; border-width: 3px; box-shadow: none; }
.pf-initials { font: 600 34px var(--font-display); color: #fff; user-select: none; }
.pf-avatar-sm .pf-initials { font-size: 26px; }
.pf-id { flex: 1; min-width: 0; padding-top: 52px; }
.pf-id h1 { margin: 0; font-size: 26px; line-height: 1.2; overflow-wrap: anywhere; }
.pf-sub { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 6px; }
.pf-handle { color: var(--text-muted); font-weight: 500; }
.pf-meta { display: flex; flex-wrap: wrap; gap: 4px 16px; margin-top: 8px; color: var(--text-muted); font-size: 13px; }
.pf-meta span:empty { display: none; }
.pf-meta span { overflow-wrap: anywhere; }
.pf-actions { display: flex; gap: 10px; flex: none; }

/* Stats */
.pf-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin: 16px 0 24px; }
.pf-stat { padding: 18px 20px; }
.pf-stat-label { font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-muted); font-weight: 600; }
.pf-stat-value { font-size: 28px; font-weight: 600; margin: 8px 0 6px; line-height: 1.1; }
.pf-money { color: var(--money); }
.pf-stat-note, .pf-stat-link { font-size: 12px; color: var(--text-faint); }
.pf-stat-link { color: var(--accent); font-weight: 500; }
.pf-stat-link:hover { text-decoration: underline; }

/* Layout */
.pf-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 24px; align-items: start; }
.pf-tabs { margin-top: 0; }
.pf-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.pf-card-head h2 { margin: 0; font-size: 18px; }

/* Transactions */
.pf-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.pf-chip { background: var(--bg-elevated); color: var(--text-muted); border: 1px solid var(--border); border-radius: 999px;
  padding: 6px 14px; font: 500 13px var(--font-body); cursor: pointer; transition: border-color .15s, color .15s, background .15s; }
.pf-chip:hover { color: var(--text); border-color: var(--accent); }
.pf-chip.active { background: rgba(91, 141, 239, 0.15); border-color: var(--accent); color: var(--text); }
.pf-tx { display: flex; align-items: center; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--border-soft); }
.pf-tx:last-child { border-bottom: none; }
.pf-tx-icon { flex: none; width: 38px; height: 38px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 17px; font-weight: 700; background: var(--bg-elevated); color: var(--text-muted); }
.pf-tx-icon.in { background: rgba(52, 199, 123, 0.14); color: var(--success); }
.pf-tx-icon.out { background: rgba(139, 147, 167, 0.14); color: var(--text-muted); }
.pf-tx-main { flex: 1; min-width: 0; }
.pf-tx-title { font-weight: 600; font-size: 14px; }
.pf-tx-desc { color: var(--text-muted); font-size: 13px; margin-top: 2px; overflow-wrap: anywhere; }
.pf-tx-date { color: var(--text-faint); font-size: 12px; margin-top: 2px; }
.pf-tx-amount { text-align: right; flex: none; }
.pf-tx-amount strong { display: block; font-size: 15px; font-weight: 600; }
.pf-tx-amount strong.in { color: var(--success); }
.pf-tx-amount small { color: var(--text-faint); font-size: 12px; }
.pf-more { text-align: center; margin-top: 12px; }
.pf-more .btn[hidden] { display: none; }

/* Forms */
.pf-photo-row { display: flex; align-items: flex-start; gap: 18px; margin-bottom: 4px; }
.pf-photo-field { flex: 1; min-width: 0; }
.pf-two { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.pf-two + .pf-hint { margin: -6px 0 4px; }
.pf-count { text-align: right; }
.form-group input:disabled { opacity: 0.6; cursor: not-allowed; }
.pf-form-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--border-soft); }
.pf-pw { position: relative; }
.pf-pw input { padding-right: 64px; }
.pf-pw-toggle { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); background: none; border: none; color: var(--accent);
  font: 600 12px var(--font-body); padding: 8px; cursor: pointer; border-radius: 6px; }
.pf-pw-toggle:hover { background: rgba(91, 141, 239, 0.12); }
.pf-meter { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-top: 10px; }
.pf-meter span { height: 4px; border-radius: 4px; background: var(--border); transition: background .2s; }
.pf-meter[data-score="1"] span:nth-child(-n+1) { background: var(--danger); }
.pf-meter[data-score="2"] span:nth-child(-n+2) { background: var(--warning); }
.pf-meter[data-score="3"] span:nth-child(-n+3) { background: var(--accent); }
.pf-meter[data-score="4"] span { background: var(--success); }

/* Sidebar */
.pf-side { display: grid; gap: 16px; }
.pf-side-card { padding: 20px; }
.pf-side-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.pf-side-head h3 { margin: 0; font-size: 15px; }
.pf-pct { font: 600 14px var(--font-display); color: var(--money); }
.pf-bar { height: 6px; border-radius: 6px; background: var(--border); overflow: hidden; }
.pf-bar span { display: block; height: 100%; width: 0; border-radius: 6px; background: linear-gradient(90deg, var(--accent), var(--success)); transition: width .5s ease; }
.pf-checklist { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 10px; }
.pf-checklist li { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--text-muted); }
.pf-checklist li.done { color: var(--text); }
.pf-checklist .dot { flex: none; width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid var(--border); display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; }
.pf-checklist li.done .dot { background: var(--success); border-color: var(--success); color: #06140d; }
.pf-checklist a { color: var(--accent); margin-left: auto; font-size: 12px; font-weight: 500; }
.pf-activity { display: grid; gap: 12px; }
.pf-activity-row { display: flex; align-items: center; justify-content: space-between; font-size: 13px; }
.pf-activity-row span:first-child { display: flex; align-items: center; gap: 8px; color: var(--text-muted); }
.pf-activity-row i { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.pf-activity-row b { font-family: var(--font-display); font-size: 15px; }
.pf-rate { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--border-soft); font-size: 12px; color: var(--text-faint); }
.pf-acct { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--border-soft); }
.pf-acct:last-child { border-bottom: none; padding-bottom: 0; }
.pf-acct:first-child { padding-top: 0; }
.pf-acct-icon { flex: none; width: 34px; height: 34px; border-radius: 10px; background: var(--bg-elevated); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 13px; }
.pf-acct-main { flex: 1; min-width: 0; }
.pf-acct-name { font-size: 13px; font-weight: 600; overflow-wrap: anywhere; }
.pf-acct-state { font-size: 12px; color: var(--text-faint); }
.pf-acct-state.ok { color: var(--success); }

/* Responsive */
@media (max-width: 980px) {
  .pf-layout { grid-template-columns: 1fr; }
  .pf-stats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  .pf-hero { margin-top: 18px; }
  .pf-cover { height: 84px; }
  .pf-hero-body { flex-direction: column; align-items: flex-start; gap: 14px; padding: 0 18px 20px; margin-top: -40px; }
  .pf-id { padding-top: 0; }
  .pf-id h1 { font-size: 22px; }
  .pf-actions { width: 100%; }
  .pf-actions .btn { flex: 1; }
  .pf-stat { padding: 14px 16px; }
  .pf-stat-value { font-size: 22px; }
  .pf-two { grid-template-columns: 1fr; }
  .pf-photo-row { flex-direction: column; }
  .pf-form-actions { flex-direction: column-reverse; }
  .pf-form-actions .btn { width: 100%; }
  .pf-card-head { flex-direction: column; }
  .pf-card-head .btn { width: 100%; }
  .pf-tx { gap: 10px; }
}

/* ---------- Social rows (also used by socials.html) ---------- */
.social-row { display: flex; align-items: center; justify-content: space-between; padding: 14px 0; border-bottom: 1px solid var(--border); }
.social-row:last-child { border-bottom: none; }
.social-row .platform-info { display: flex; align-items: center; gap: 12px; }
.social-row .platform-icon { width: 36px; height: 36px; border-radius: 10px; background: var(--bg-elevated); display: flex; align-items: center; justify-content: center; font-weight: 700; }
.social-row .handle { font-weight: 600; display: flex; align-items: center; gap: 6px; }
.social-row .status { font-size: 12px; color: var(--text-muted); }
.verified-tick {
  display: inline-flex; align-items: center; justify-content: center;
  width: 15px; height: 15px; border-radius: 50%;
  background: var(--accent); color: #06101f;
  font-size: 10px; font-weight: 700;
}
/* The "Connect" control is an <a> (real navigation to start OAuth), not a
   <button>, but it should look identical to the rest of the .btn family. */
a.btn { text-decoration: none; }

/* TikTok bio verification (socials.html) */
.social-row.bio-row { flex-wrap: wrap; gap: 12px; }
.bio-panel { flex: 1 1 100%; background: var(--bg-elevated); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 14px; }
.bio-panel p { margin: 0 0 10px; font-size: 14px; color: var(--text-muted); line-height: 1.5; }
.bio-panel p.status { font-size: 12px; }
.bio-panel .bio-msg { color: var(--warning); }
.bio-code { display: flex; align-items: center; gap: 10px; margin: 0 0 10px; }
.bio-code code { flex: 1; font-family: var(--font-display); font-size: 22px; font-weight: 700; letter-spacing: 0.08em; color: var(--money); background: var(--bg); border: 1px dashed var(--border); border-radius: var(--radius-sm); padding: 10px 12px; text-align: center; user-select: all; }
.bio-actions, .bio-form { display: flex; gap: 10px; flex-wrap: wrap; }
.bio-form input { flex: 1 1 200px; min-width: 0; padding: 11px 12px; background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-sm); color: var(--text); font: inherit; }
.bio-actions .btn, .bio-form .btn { flex: 1 1 140px; }

/* TikTok ownership/stat snapshot */
.tiktok-proof-stats{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:10px 0}.tiktok-proof-stats span{padding:8px 10px;border:1px solid var(--border,#e5e7eb);border-radius:10px;font-size:.82rem}.tiktok-proof-stats strong{display:block;font-size:1rem}.tiktok-proof-stats a{color:inherit}


/* Discord integration card */
.discord-connect-card{display:flex;align-items:flex-start;gap:16px;border-color:rgba(88,101,242,.42);background:linear-gradient(120deg,rgba(88,101,242,.09),var(--bg-card) 65%)}
.discord-connect-mark{display:grid;place-items:center;flex:0 0 44px;height:44px;border-radius:13px;background:#5865f2;color:#fff;font-size:24px;font-weight:800}
.discord-connect-copy{min-width:0}.discord-connect-copy h2{margin:0 0 8px;font-size:18px;font-family:var(--font-display)}.discord-connect-copy p,.discord-connect-copy li{font-size:13px;line-height:1.65;color:var(--text-muted)}.discord-connect-copy ol{padding-left:20px}.discord-connect-copy code{background:var(--bg-elevated);padding:3px 6px;border-radius:5px;color:var(--text)}
@media(max-width:600px){.discord-connect-card{gap:12px;padding:14px}.discord-connect-mark{flex-basis:36px;height:36px;font-size:20px}.navbar{align-items:flex-start;padding:12px 14px}.navbar nav{gap:8px 12px;width:100%;font-size:13px}.navbar nav .btn{padding:8px 10px}}
