/* ── Profile Page ── */
.profile-page{display:none;position:relative;z-index:20;padding-bottom:120px;max-width:800px;margin:0 auto;padding:20px}
.profile-page.active{display:block;animation:macOsScaleUp 0.35s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;transform-origin:bottom center}

.profile-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:24px}
.profile-header .profile-title{font-size:14px;font-weight:800;text-transform:uppercase;letter-spacing:2px;color:var(--orange)}
.profile-header .xp-chip{display:flex;align-items:center;gap:6px;padding:6px 16px;font-size:13px;font-weight:600;background:var(--bg-card);backdrop-filter:blur(20px);border:1px solid var(--border-card);border-radius:var(--radius-pill)}
.profile-header .xp-chip .xp-val{color:var(--orange)}
.profile-header .back-arrow{width:32px;height:32px;display:flex;align-items:center;justify-content:center;border-radius:50%;background:var(--bg-card);border:1px solid var(--border-card);font-size:16px;cursor:pointer;transition:background var(--duration)}
.profile-header .back-arrow:hover{background:rgba(255,255,255,0.1)}

/* ── Live Preview Card ── */
.profile-preview{width:100%;height:200px;border-radius:var(--radius-lg);overflow:hidden;position:relative;margin-bottom:24px;border:1px solid var(--border-card)}
.profile-preview .preview-bg{position:absolute;inset:0;background-size:cover;background-position:center}
.profile-preview .preview-bg.animated-kb{animation:kenBurns 20s ease-in-out infinite}
.profile-preview .preview-bg.animated-grain::after{content:'';position:absolute;inset:0;background-image:url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.08'/%3E%3C/svg%3E");background-size:128px;animation:grainShift .8s steps(4) infinite;pointer-events:none;opacity:.4;mix-blend-mode:overlay}
.profile-preview .preview-bg.animated-gradient::after{content:'';position:absolute;inset:0;background:radial-gradient(circle at 30% 50%,rgba(255,255,255,0.15),transparent 60%);background-size:200% 200%;animation:gradientDrift 8s ease-in-out infinite}
.profile-preview::after{content:'';position:absolute;inset:0;background:linear-gradient(to bottom,transparent 40%,rgba(8,8,10,0.9) 100%)}
.profile-preview .preview-content{position:absolute;bottom:16px;left:20px;z-index:1;display:flex;align-items:flex-end;gap:12px}
.profile-preview .preview-avatar{width:52px;height:52px;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:18px;font-weight:800;color:#fff;border:2px solid var(--orange)}
.profile-preview .preview-name{font-size:18px;font-weight:800}
.profile-preview .preview-title-chip{font-size:11px;color:var(--text-lo);padding:2px 8px;background:rgba(255,255,255,0.08);border-radius:var(--radius-pill)}
.profile-preview .preview-emblem{position:absolute;bottom:16px;right:20px;width:28px;height:28px;z-index:1;animation:breathe 3s ease-in-out infinite}

/* ── Social Links Row ── */
.profile-social-links{display:flex;gap:8px;margin-bottom:24px;flex-wrap:wrap}
.profile-social-links .social-pill{display:flex;align-items:center;gap:6px;padding:8px 14px;font-size:12px;font-weight:500;background:var(--bg-card);border:1px solid var(--border-card);border-radius:var(--radius-pill);color:var(--text-mid);transition:border-color var(--duration)}
.profile-social-links .social-pill:hover{border-color:rgba(255,255,255,0.15);color:var(--text-hi)}
.profile-social-links .add-link{border-style:dashed;border-color:rgba(255, 255, 255,0.3);color:var(--orange)}
.profile-social-links .add-link:hover{border-color:var(--orange);background:rgba(255, 255, 255,0.05)}

/* ── Profile Tiles ── */
.profile-tiles{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin-bottom:24px}
.profile-tile{padding:24px;background:var(--bg-card);backdrop-filter:blur(20px);border:1px solid var(--border-card);border-radius:var(--radius-md);cursor:pointer;transition:border-color var(--duration),transform var(--duration)}
.profile-tile:hover{border-color:rgba(255,255,255,0.14);transform:translateY(-2px)}
.profile-tile .tile-label{font-size:14px;font-weight:700;margin-bottom:12px}
.profile-tile .tile-preview{height:80px;border-radius:var(--radius-sm);overflow:hidden;position:relative}
.profile-tile .tile-preview-grid{display:flex;gap:4px;height:100%}
.profile-tile .tile-preview-item{flex:1;background-size:cover;background-position:center;border-radius:4px}

/* ── Titles Grid ── */
.titles-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:12px}
@media(max-width:768px){.titles-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:480px){.titles-grid{grid-template-columns:1fr}}

.title-card{border-radius:var(--radius-md);overflow:hidden;border:2px solid transparent;cursor:pointer;transition:border-color var(--duration),transform var(--duration);position:relative}
.title-card:hover{transform:translateY(-2px);border-color:rgba(255,255,255,0.14)}
.title-card.selected{border-color:var(--orange)}
.title-card .title-bg{height:120px;background-size:cover;background-position:center;position:relative;overflow:hidden}
.title-card .title-bg.animated-kb{animation:kenBurns 20s ease-in-out infinite}
.title-card .title-bg::after{content:'';position:absolute;inset:0;background:linear-gradient(to bottom,transparent 40%,rgba(8,8,10,0.9) 100%)}
.title-card .title-overlay{position:absolute;bottom:8px;left:10px;right:10px;z-index:1}
.title-card .title-name-display{font-size:13px;font-weight:700}
.title-card .title-emblem-mini{position:absolute;bottom:8px;right:10px;width:16px;height:16px;z-index:1;animation:breathe 3s ease-in-out infinite}
.title-card .title-cost{padding:6px 12px;text-align:center;font-size:11px;font-weight:600;background:var(--bg-card)}
.title-card .title-cost.unlocked{color:var(--text-mid)}
.title-card .title-cost.level{color:var(--text-lo)}
.title-card .title-cost.winr-plus{color:var(--orange)}
.title-card .selected-chip{position:absolute;top:8px;right:8px;font-size:9px;font-weight:700;padding:3px 8px;border-radius:var(--radius-pill);background:var(--orange);color:#fff;z-index:2}

/* ── Emblems Grid ── */
.emblems-grid{display:grid;grid-template-columns:repeat(6,1fr);gap:12px}
@media(max-width:768px){.emblems-grid{grid-template-columns:repeat(3,1fr)}}

.emblem-card{padding:20px;background:var(--bg-card);backdrop-filter:blur(20px);border:2px solid var(--border-card);border-radius:var(--radius-md);display:flex;flex-direction:column;align-items:center;gap:12px;cursor:pointer;transition:border-color var(--duration),transform var(--duration)}
.emblem-card:hover{transform:translateY(-2px);border-color:rgba(255,255,255,0.14)}
.emblem-card.selected{border-color:var(--orange)}
.emblem-card .emblem-icon{width:48px;height:48px;animation:breathe 3s ease-in-out infinite}
.emblem-card .emblem-name{font-size:11px;font-weight:600;color:var(--text-mid);text-align:center}
.emblem-card .emblem-cost{font-size:10px;font-weight:600;padding:2px 8px;border-radius:var(--radius-pill)}
.emblem-card .emblem-cost.unlocked{background:rgba(255,255,255,0.06);color:var(--text-mid)}
.emblem-card .emblem-cost.level{background:rgba(255,255,255,0.04);color:var(--text-lo)}
.emblem-card .emblem-cost.winr-plus{background:rgba(255, 255, 255,0.1);color:var(--orange)}
.emblem-card .selected-chip{font-size:9px;font-weight:700;padding:2px 8px;border-radius:var(--radius-pill);background:var(--orange);color:#fff}

/* ── Explore Carousel Section ── */
.explore-section{
  margin-top:28px;
  position:relative;
  background:rgba(20,20,24,0.15);
  backdrop-filter:blur(40px);
  -webkit-backdrop-filter:blur(40px);
  border:1px solid rgba(255,255,255,0.05);
  border-radius:24px;
  padding:28px;
  box-shadow:inset 0 1px 0 rgba(255,255,255,0.1), 0 32px 80px rgba(0,0,0,0.6);
  overflow:hidden
}

.explore-section-overlay{
  position:absolute;
  inset:0;
  background:linear-gradient(180deg, rgba(8,8,10,0.85) 0%, rgba(8,8,10,0.95) 100%);
  z-index:1;
  border-radius:24px
}

.explore-header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  margin-bottom:20px;
  position:relative;
  z-index:2
}

.explore-header-left{
  display:flex;
  align-items:center;
  gap:12px
}

.explore-compass-icon{
  width:40px !important;
  height:40px !important;
  display:flex;
  align-items:center;
  justify-content:center;
  background:#0a0a0c !important; /* Premium rich carbon black */
  border:1px solid rgba(255,255,255,0.15) !important; /* Crisp high-contrast outline */
  border-radius:10px !important;
  color:#ffffff !important; /* Pure white compass icon */
  box-shadow: 0 4px 12px rgba(0,0,0,0.5) !important;
}



.explore-title{
  font-size:22px;
  font-weight:900;
  letter-spacing:-0.5px;
  color:var(--text-hi);
  line-height:1
}

.explore-subtitle{
  font-size:12px;
  color:var(--text-lo);
  margin-top:3px;
  font-weight:500
}

.explore-nav-dots{
  display:flex;
  gap:6px;
  align-items:center
}

.explore-dot{
  width:8px;
  height:8px;
  border-radius:50%;
  background:rgba(255,255,255,0.15);
  cursor:pointer;
  transition:all 0.4s cubic-bezier(0.4,0,0.2,1)
}

.explore-dot:hover{
  background:rgba(255,255,255,0.3)
}

.explore-dot.active{
  width:24px;
  border-radius:4px;
  background:#fff;
  box-shadow:0 0 12px rgba(255,255,255,0.5)
}

/* ── Carousel Viewport ── */
.explore-carousel-viewport{
  overflow:hidden;
  border-radius:20px;
  position:relative;
  margin-bottom:16px;
  display:flex;
  justify-content:center
}

.explore-carousel-track{
  position:relative;
  width:100%;
  height:100%
}

/* ── Explore Card (glassmorphic community card) ── */
.explore-card{
  position:relative;
  width:100%;
  min-width:100%;
  height:100%;
  border-radius:20px;
  overflow:hidden;
  border:1px solid rgba(255,255,255,0.12);
  box-shadow:inset 0 1px 0 rgba(255,255,255,0.3), 0 12px 40px rgba(0,0,0,0.5);
  transition:all 0.5s cubic-bezier(0.22,1,0.36,1);
  flex-shrink:0
}

.explore-card:hover{
  border-color:rgba(255,255,255,0.35);
  box-shadow:inset 0 1px 0 rgba(255,255,255,0.5), 0 20px 60px rgba(0,0,0,0.7);
  transform:scale(1.02)
}

.explore-card-bg{
  position:absolute;
  inset:0;
  background-size:cover;
  background-position:center;
  opacity:0.45;
  z-index:0;
  mix-blend-mode:screen;
  transition:opacity 0.5s
}

.explore-card:hover .explore-card-bg{
  opacity:0.6
}

.explore-card-overlay{
  position:absolute;
  inset:0;
  background:
    radial-gradient(circle at bottom right, transparent 0%, rgba(0,0,0,0.5) 100%),
    linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.1) 50%, rgba(0,0,0,0.3) 100%);
  z-index:1
}

.explore-card-holo{
  position:absolute;
  top:0;
  bottom:0;
  left:-100%;
  width:50%;
  background:linear-gradient(90deg, transparent, rgba(255,255,255,0.5), transparent);
  transform:skewX(-20deg);
  animation:holoSweep 6s infinite;
  z-index:2;
  pointer-events:none;
  mix-blend-mode:overlay
}

/* ── Card Content ── */
.explore-card-content{
  position:relative;
  z-index:3;
  height:100%;
  display:flex;
  flex-direction:column;
  justify-content:space-between;
  padding:20px
}

.explore-card-top{
  display:flex;
  align-items:center;
  justify-content:space-between
}

.explore-card-letter{
  width:40px;
  height:40px;
  border-radius:10px;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:13px;
  font-weight:900;
  color:#fff;
  box-shadow:0 4px 16px rgba(0,0,0,0.4);
  letter-spacing:0.5px
}

.explore-card-price{
  font-size:11px;
  font-weight:700;
  padding:4px 12px;
  border-radius:var(--radius-pill);
  backdrop-filter:blur(8px)
}

.explore-card-bottom{
  display:flex;
  flex-direction:column;
  gap:4px
}

.explore-card-name{
  font-size:18px;
  font-weight:900;
  color:#fff;
  letter-spacing:-0.3px;
  text-shadow:0 2px 8px rgba(0,0,0,0.6)
}

.explore-card-category{
  font-size:10px;
  font-weight:700;
  text-transform:uppercase;
  letter-spacing:1.5px;
  color:rgba(255,255,255,0.5)
}

.explore-card-desc{
  font-size:12px;
  color:rgba(255,255,255,0.7);
  line-height:1.4;
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
  margin-top:2px
}

.explore-card-meta{
  display:flex;
  align-items:center;
  justify-content:space-between;
  margin-top:8px
}

.explore-card-members{
  display:flex;
  align-items:center;
  gap:6px;
  font-size:11px;
  color:rgba(255,255,255,0.5);
  font-weight:600
}

.explore-live-dot{
  width:6px;
  height:6px;
  background:var(--neon-green);
  border-radius:50%;
  animation:pulse 2s infinite;
  flex-shrink:0
}

/* ── See All CTA ── */
.explore-see-all{
  width:100%;
  padding:14px;
  font-size:13px;
  font-weight:800;
  text-transform:uppercase;
  letter-spacing:1px;
  color:var(--orange);
  background:linear-gradient(135deg, rgba(255, 255, 255,0.1), rgba(255, 255, 255,0.02));
  border:1px solid rgba(255, 255, 255,0.3);
  border-radius:16px;
  cursor:pointer;
  transition:all 0.4s cubic-bezier(0.175,0.885,0.32,1.275);
  display:flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  box-shadow:inset 0 0 20px rgba(255, 255, 255,0.05), 0 8px 32px rgba(255, 255, 255,0.1)
}

.explore-see-all:hover{
  background:linear-gradient(135deg, rgba(255, 255, 255,0.2), rgba(255, 255, 255,0.05));
  border-color:var(--orange);
  color:#fff;
  transform:translateY(-2px);
  box-shadow:inset 0 0 20px rgba(255, 255, 255,0.1), 0 12px 40px rgba(255, 255, 255,0.25);
  text-shadow:0 0 8px var(--orange)
}
