/* ============================================================
   AFRICAPICKUP — USER PROFILE (PC) — Dashboard
   File: pc-less-profile-cache.css
   Zero CLS — fixed avatar, no overlay, no shift
   ============================================================ */

/* ---------- 0. RESET ---------- */
*,*::before,*::after{box-sizing:border-box}
html{
  -webkit-text-size-adjust:100%;text-size-adjust:100%;
  -webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;
  scroll-behavior:smooth;
}
body{
  margin:0;padding:0 0 24px;background:#f5f5f5;color:#3d2a2a;
  font-family:system-ui,-apple-system,'Segoe UI',Roboto,Arial,sans-serif;
  font-size:15px;line-height:1.55;overflow-x:hidden;min-width:0;
  text-rendering:optimizeLegibility;
}
img{max-width:100%;height:auto;display:block}
a{text-decoration:none;color:inherit;cursor:pointer}
ul{list-style:none;margin:0;padding:0}
h1,h2,h3,h4{margin:0;padding:0;font:inherit;font-weight:700;line-height:1.3}
p{margin:0;padding:0}
.wrap{max-width:1100px;margin:0 auto;padding:0 16px}

/* ---------- 1. BREADCRUMB ---------- */
.bc{
  margin:20px 0 0;padding:12px 18px;border-radius:12px;
  background:#eef4ef;border-left:5px solid #006400;
  font-size:13px;font-weight:700;color:#2a5a2a;
  display:flex;flex-wrap:wrap;align-items:center;gap:8px;
}
.bc a{
  color:#006400;display:inline-flex;align-items:center;gap:5px;
  padding:3px 6px;border-radius:5px;
  transition:all .15s ease;
}
.bc a:hover{background:rgba(0,163,42,.1);color:#00a32a}
.bc-sep{color:#00a32a;font-weight:900;font-size:14px}
.bc-current{
  color:#1a2e1a;font-weight:800;
  overflow:hidden;text-overflow:ellipsis;white-space:nowrap;
}

/* ---------- 2. BANNER ---------- */
.banner{
  margin:16px 0 0;border-radius:16px;
  background:
    repeating-linear-gradient(135deg,rgba(255,255,255,.035) 0 2px,transparent 2px 12px),
    linear-gradient(135deg,#004d00 0%,#006400 45%,#00a32a 85%,#00d135 100%);
  padding:22px 26px;color:#fff;
  display:flex;align-items:center;gap:18px;flex-wrap:wrap;
  box-shadow:0 10px 26px rgba(0,100,0,.28);
  position:relative;overflow:hidden;isolation:isolate;
}
.banner::before{
  content:"";position:absolute;top:-50%;right:-20%;
  width:340px;height:340px;
  background:radial-gradient(circle,rgba(255,255,255,.25),transparent 70%);
  z-index:0;pointer-events:none;
}
.banner-avatar{
  width:72px;height:72px;border-radius:16px;flex-shrink:0;
  background:rgba(255,255,255,.2);
  border:3px solid rgba(255,255,255,.35);
  display:flex;align-items:center;justify-content:center;
  position:relative;z-index:1;overflow:hidden;
  box-shadow:0 6px 16px rgba(0,0,0,.2);
  transition:transform .25s ease;
}
.banner:hover .banner-avatar{transform:scale(1.05)}
.banner-avatar img{
  width:100%;height:100%;object-fit:cover;
  aspect-ratio:1/1;
}
.banner-avatar .initial{
  font-size:30px;font-weight:900;color:#fff;
  text-shadow:0 2px 6px rgba(0,0,0,.2);
}
.banner-info{
  flex:1;min-width:0;position:relative;z-index:1;
}
.banner-info h1{
  font-size:22px;font-weight:900;letter-spacing:-.3px;
  line-height:1.2;margin-bottom:4px;
  overflow:hidden;text-overflow:ellipsis;
  display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;
  word-break:break-word;
}
.banner-info .username{
  font-size:13px;font-weight:600;color:rgba(255,255,255,.9);
}
.banner-info .username::before{content:"@";color:#c8ffcc;font-weight:800}

.banner-actions{
  position:relative;z-index:1;
  display:flex;gap:8px;flex-wrap:wrap;
}
.banner-actions .friend-btn-wrap{display:contents}

.btn{
  display:inline-flex;align-items:center;gap:7px;
  padding:10px 20px;border-radius:22px;
  font-size:12px;font-weight:800;letter-spacing:.4px;
  text-transform:uppercase;transition:all .2s ease;
  border:none;cursor:pointer;font-family:inherit;
}
.btn-primary{
  background:linear-gradient(135deg,#00d135,#00a32a);
  color:#fff;box-shadow:0 4px 16px rgba(0,209,53,.4);
}
.btn-primary:hover{transform:translateY(-2px);
  box-shadow:0 8px 24px rgba(0,209,53,.6)}
.btn-ghost{
  background:rgba(255,255,255,.15);
  border:1.5px solid rgba(255,255,255,.3);
  color:#fff;
}
.btn-ghost:hover{background:rgba(255,255,255,.25)}

/* Legacy add_friend() override */
.banner-actions a,
.banner-actions .button{
  display:inline-flex;align-items:center;gap:7px;
  padding:10px 20px;border-radius:22px;
  font-size:12px;font-weight:800;letter-spacing:.4px;
  text-transform:uppercase;transition:all .2s;
  background:linear-gradient(135deg,#00d135,#00a32a);
  color:#fff;box-shadow:0 4px 16px rgba(0,209,53,.4);
  border:none;text-decoration:none;
}
.banner-actions a:hover,
.banner-actions .button:hover{
  transform:translateY(-2px);
  box-shadow:0 8px 24px rgba(0,209,53,.6);
}

/* ---------- 3. KPI STATS ---------- */
.kpis{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:14px;margin-top:18px;
}
.kpi{
  background:#fff;border-radius:14px;padding:18px 20px;
  border:1px solid rgba(0,100,0,.06);
  box-shadow:0 2px 8px rgba(0,0,0,.04);
  display:flex;flex-direction:column;gap:6px;
  transition:transform .25s ease,box-shadow .25s ease,border-color .25s ease;
  position:relative;overflow:hidden;
  contain:layout style;
}
.kpi:hover{
  transform:translateY(-4px);
  box-shadow:0 12px 26px rgba(0,100,0,.12);
  border-color:rgba(0,163,42,.22);
}
.kpi-icon{
  width:44px;height:44px;border-radius:11px;
  display:flex;align-items:center;justify-content:center;
  font-size:22px;font-style:normal;
  background:linear-gradient(135deg,#00a32a,#006400);color:#fff;
  box-shadow:0 4px 12px rgba(0,100,0,.22);
  transition:transform .25s ease;
}
.kpi:hover .kpi-icon{transform:scale(1.08) rotate(-3deg)}
.kpi-value{
  font-size:28px;font-weight:900;color:#1a2e1a;
  line-height:1.1;letter-spacing:-.4px;
  overflow:hidden;text-overflow:ellipsis;white-space:nowrap;
}
.kpi-label{
  font-size:11px;font-weight:800;letter-spacing:.5px;
  text-transform:uppercase;color:#7a6a5a;
}

/* ---------- 4. CARDS ---------- */
.card{
  background:#fff;border-radius:14px;padding:22px 26px;
  border:1px solid rgba(0,100,0,.06);
  box-shadow:0 2px 10px rgba(0,0,0,.04);
  margin-top:16px;
  contain:layout style;
}
.card-head{
  display:flex;align-items:center;justify-content:space-between;
  gap:12px;margin-bottom:18px;flex-wrap:wrap;
}
.card-head h2{
  font-size:14px;font-weight:800;text-transform:uppercase;
  letter-spacing:.4px;color:#2a5a2a;
  display:flex;align-items:center;gap:10px;
}
.card-head h2::before{
  content:"";width:8px;height:8px;background:#00a32a;
  border-radius:50%;box-shadow:0 0 0 3px rgba(0,163,42,.14);
  flex-shrink:0;
}
.card-head .icon{font-size:20px;font-style:normal;opacity:.7}

/* ---------- 5. INFO GRID ---------- */
.info-grid{
  display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;
}
.info-item{
  padding:14px 16px;border-radius:10px;
  background:#f6fbf7;
  display:flex;align-items:center;gap:14px;
  transition:transform .2s ease,box-shadow .2s ease;
}
.info-item:hover{
  transform:translateY(-2px);
  box-shadow:0 6px 16px rgba(0,100,0,.08);
}
.info-icon{
  width:40px;height:40px;border-radius:10px;
  background:linear-gradient(135deg,#00a32a,#006400);color:#fff;
  display:flex;align-items:center;justify-content:center;
  font-size:18px;flex-shrink:0;font-style:normal;
  box-shadow:0 3px 8px rgba(0,100,0,.18);
}
.info-body{min-width:0;flex:1}
.info-body .label{
  font-size:10px;font-weight:800;letter-spacing:.5px;
  text-transform:uppercase;color:#00a32a;margin-bottom:3px;
}
.info-body .value{
  font-size:13.5px;font-weight:700;color:#1a2e1a;
  line-height:1.35;word-break:break-word;
}

/* ---------- 6. BIO ---------- */
.bio{
  font-size:15px;line-height:1.75;color:#3d2a2a;
  word-break:break-word;
}
.bio::first-letter{
  font-size:44px;font-weight:900;color:#006400;
  float:left;line-height:.95;padding:6px 12px 0 0;
}

/* ---------- 7. ZODIAC ---------- */
.zodiac{
  margin-top:16px;padding:24px;border-radius:16px;
  background:
    repeating-linear-gradient(135deg,rgba(255,215,0,.03) 0 2px,transparent 2px 10px),
    linear-gradient(135deg,#fff9e6,#fff3cc);
  border-left:5px solid #d4a017;
  display:flex;align-items:center;gap:24px;flex-wrap:wrap;
  box-shadow:0 4px 18px rgba(212,160,23,.15);
  contain:layout style;
}
.zodiac-icon{
  width:88px;height:88px;border-radius:20px;flex-shrink:0;
  background:linear-gradient(135deg,#ffd700,#d4a017);
  display:flex;align-items:center;justify-content:center;
  font-size:46px;font-style:normal;
  box-shadow:0 8px 26px rgba(212,160,23,.4);
  transition:transform .25s ease;
}
.zodiac:hover .zodiac-icon{transform:scale(1.06) rotate(3deg)}
.zodiac-text{flex:1;min-width:220px}
.zodiac-label{
  font-size:10.5px;font-weight:800;letter-spacing:1.4px;
  text-transform:uppercase;color:#8a6a00;margin-bottom:6px;
}
.zodiac-text h3{
  font-size:26px;font-weight:900;color:#8a6a00;
  line-height:1.15;margin-bottom:10px;letter-spacing:-.3px;
}
.zodiac-text p{
  font-size:13.5px;line-height:1.75;color:#5a4a20;
}

/* ---------- 8. LEGACY `.info-box` OVERRIDE ---------- */
.info-box{
  display:grid;grid-template-columns:280px minmax(0,1fr);
  gap:24px;padding:0;
}
.info-box .photo{margin:0}
.info-box .photo figure{margin:0}
.info-box .photo img{
  width:100%;height:auto;border-radius:16px;
  aspect-ratio:1/1;object-fit:cover;
  background:#e4ede6;
  box-shadow:0 8px 22px rgba(0,100,0,.12);
}
.info-box .other-info ul{
  display:grid;grid-template-columns:repeat(2,minmax(0,1fr));
  gap:12px;padding:0;
}
.info-box .other-info li{
  padding:12px 16px;border-radius:10px;background:#f6fbf7;
  font-size:13px;font-weight:600;
}
.info-box .other-info .info-text{
  font-size:10px;font-weight:800;letter-spacing:.5px;
  text-transform:uppercase;color:#00a32a;
  display:block;margin-bottom:3px;
}

/* ---------- 9. AD SLOT ---------- */
.ad-slot{
  min-height:250px;display:flex;align-items:center;justify-content:center;
  margin:16px 0;background:#eef4ef;border-radius:10px;overflow:hidden;
}
.ad-slot:empty{min-height:0;margin:0}

/* ---------- 10. TABLET (600–940px) ---------- */
@media (min-width:600px) and (max-width:940px){
  .wrap{max-width:900px}
  .kpis{grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
  .kpi{padding:16px}
  .kpi-icon{width:40px;height:40px;font-size:20px}
  .kpi-value{font-size:24px}
  .banner{padding:20px}
  .banner-info h1{font-size:20px}
  .banner-avatar{width:64px;height:64px}
  .info-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .info-box{grid-template-columns:220px minmax(0,1fr);gap:18px}
  .info-box .other-info ul{grid-template-columns:1fr}
}

/* ---------- 11. REDUCED MOTION ---------- */
@media (prefers-reduced-motion: reduce){
  *,*::before,*::after{
    animation-duration:.001ms !important;
    animation-iteration-count:1 !important;
    transition-duration:.001ms !important;
    scroll-behavior:auto !important;
  }
}

/* ---------- 12. SCROLLBAR ---------- */
::-webkit-scrollbar{width:10px;height:10px}
::-webkit-scrollbar-track{background:#f0f0f0;border-radius:5px}
::-webkit-scrollbar-thumb{background:#006400;border-radius:5px}
::-webkit-scrollbar-thumb:hover{background:#00a32a}
::-webkit-scrollbar-thumb:window-inactive{background:#999}

/* ---------- 13. SELECTION ---------- */
::selection{background:#75ff75}
::-moz-selection{background:#75ff75}