/* ============================================================
   HAPPENGRID — COMMUNITY PROFILE PAGE
   Premium dark theme, glassmorphism, fully responsive
   ============================================================ */

/* ---- Variables ---- */
:root {
  --cp-bg:          hsl(240, 18%, 4%);
  --cp-surface:     hsla(240, 18%, 9%, 0.82);
  --cp-surface-2:   hsla(240, 18%, 12%, 0.7);
  --cp-border:      hsla(270, 30%, 38%, 0.18);
  --cp-border-hi:   hsla(270, 60%, 60%, 0.35);
  --cp-text:        hsl(0, 0%, 98%);
  --cp-text-soft:   hsl(240, 8%, 68%);
  --cp-text-mute:   hsl(240, 8%, 50%);
  --cp-violet:      hsl(270, 80%, 65%);
  --cp-violet-soft: hsla(270, 80%, 65%, 0.14);
  --cp-radius:      16px;
  --cp-radius-sm:   10px;
  --cp-shadow:      0 8px 32px -12px hsla(0,0%,0%,0.55);
  --cp-shadow-lg:   0 24px 60px -20px hsla(270,80%,50%,0.35), 0 8px 30px -10px hsla(0,0%,0%,0.5);
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }

body {
  font-family: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  background:
    radial-gradient(900px 500px at 80% -150px, hsla(270,80%,38%,0.16), transparent 60%),
    radial-gradient(700px 500px at -5% 110%, hsla(290,80%,35%,0.10), transparent 60%),
    var(--cp-bg);
  color: var(--cp-text);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

/* ---- Container ---- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.25rem;
}
@media (min-width: 1024px) { .container { padding: 0 2rem; } }

/* ---- Glass card ---- */
.glass-card {
  background: var(--cp-surface);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--cp-border);
  border-radius: var(--cp-radius);
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.65rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 600;
  font-family: inherit;
  border-radius: var(--cp-radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, hsl(270,80%,60%), hsl(290,80%,55%));
  color: #fff;
  box-shadow: 0 6px 20px -8px hsla(270,80%,55%,0.6);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 10px 28px -8px hsla(270,80%,55%,0.7); }

.btn-outline {
  background: transparent;
  border-color: var(--cp-border);
  color: var(--cp-text);
}
.btn-outline:hover { background: var(--cp-violet-soft); border-color: var(--cp-border-hi); }

.btn-manage {
  background: var(--cp-violet-soft);
  border-color: hsla(270,60%,50%,0.3);
  color: hsl(270,80%,78%);
}
.btn-manage:hover { background: hsla(270,80%,60%,0.22); border-color: var(--cp-border-hi); }

.btn-following {
  background: hsla(270,60%,50%,0.12);
  border-color: hsla(270,60%,50%,0.35);
  color: hsl(270,80%,78%);
}
.btn-following:hover { background: hsla(0,80%,55%,0.12); border-color: hsla(0,80%,55%,0.35); color: hsl(0,80%,72%); }

/* ============================================================
   HERO
   ============================================================ */
.community-hero {
  position: relative;
  margin-bottom: 0;
  /* Push down past the fixed navbar */
  padding-top: 64px;
}

/* Cover band — much shorter, just enough for visual depth */
.cp-cover {
  height: 160px;
  position: relative;
  overflow: hidden;
}
@media (min-width: 768px) { .cp-cover { height: 180px; } }

.cp-cover-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg,
    hsl(270,60%,14%) 0%,
    hsl(240,30%,9%)  50%,
    hsl(290,50%,11%) 100%);
}

.cp-cover-pattern {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle, hsla(270,80%,65%,0.07) 1px, transparent 1px);
  background-size: 30px 30px;
}

.cp-cover-fade {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 30%, var(--cp-bg) 100%);
}

/* Hero content card — overlaps the cover by exactly its height */
.cp-hero-card {
  position: relative;
  margin-top: -60px;
  z-index: 2;
  padding: 1.5rem 1.75rem;
  background: var(--cp-surface);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--cp-border);
  border-radius: var(--cp-radius);
  box-shadow: var(--cp-shadow-lg);
}

.cp-hero-inner {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  text-align: center;
}

@media (min-width: 768px) {
  .cp-hero-inner {
    flex-direction: row;
    align-items: center;
    gap: 1.25rem;
    text-align: left;
  }
}

/* Community logo */
.cp-logo {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  font-weight: 700;
  color: #fff;
  background: hsla(270, 60%, 30%, 0.6);
  border: 2px solid hsla(270, 40%, 55%, 0.3);
  overflow: hidden;
}

.cp-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (min-width: 768px) {
  .cp-logo { width: 80px; height: 80px; }
}

/* Community meta */
.cp-hero-meta {
  flex: 1;
  min-width: 0;
  width: 100%;
}

.cp-name-row {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
  margin-bottom: 0.3rem;
  justify-content: center;
}

@media (min-width: 768px) {
  .cp-name-row { justify-content: flex-start; }
}

.cp-name-row h1 {
  font-size: clamp(1.25rem, 0.9rem + 1.5vw, 1.75rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin: 0;
  word-break: break-word;
}

.cp-owner-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.22rem 0.65rem;
  background: hsla(38,90%,55%,0.14);
  border: 1px solid hsla(38,90%,55%,0.35);
  color: hsl(38,90%,68%);
  font-size: 0.68rem;
  font-weight: 700;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

.cp-tagline {
  color: var(--cp-text-soft);
  font-size: 0.9rem;
  margin-bottom: 0.65rem;
  line-height: 1.5;
  word-break: break-word;
}

.cp-meta-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1rem;
  font-size: 0.8rem;
  color: var(--cp-text-soft);
  justify-content: center;
}

@media (min-width: 768px) {
  .cp-meta-chips { justify-content: flex-start; }
}

.cp-meta-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.cp-meta-chip svg { color: var(--cp-violet); flex-shrink: 0; }
.cp-meta-chip strong { color: var(--cp-text); }

/* Hero actions */
.cp-hero-actions {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  align-items: center;
  flex-shrink: 0;
  justify-content: center;
  width: 100%;
}

@media (min-width: 768px) {
  .cp-hero-actions {
    width: auto;
    justify-content: flex-end;
  }
}

/* Flash messages */
.cp-messages { display: flex; flex-direction: column; gap: 0.5rem; margin-bottom: 1rem; }

.cp-message {
  padding: 0.75rem 1rem;
  border-radius: var(--cp-radius-sm);
  font-size: 0.85rem;
  border: 1px solid;
}
.cp-message-success { background: hsla(150,70%,40%,0.1); border-color: hsla(150,70%,40%,0.3); color: hsl(150,70%,62%); }
.cp-message-error   { background: hsla(0,80%,55%,0.1);   border-color: hsla(0,80%,55%,0.3);   color: hsl(0,80%,68%); }
.cp-message-info    { background: var(--cp-violet-soft);  border-color: hsla(270,80%,55%,0.25); color: hsl(270,80%,72%); }

/* ============================================================
   PAGE BODY — two-column layout on desktop
   ============================================================ */
.cp-body {
  padding: 1.5rem 0 5rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

/* On tablet (768-1024): single column but slightly tighter layout */
@media (min-width: 768px) and (max-width: 1023px) {
  .cp-body { gap: 1.4rem; padding: 2rem 0 5rem; }
  .cp-section { padding: 1.6rem; }
}

/* On desktop: main content left (wider), sidebar right (narrower) */
@media (min-width: 1024px) {
  .cp-body {
    grid-template-columns: 1fr 340px;
    grid-template-rows: auto;
    align-items: start;
    gap: 1.5rem;
  }

  /* Stats strip spans full width */
  .cp-stats-strip { grid-column: 1 / -1; }

  /* About section goes into the sidebar column */
  .cp-section--about { grid-column: 2; grid-row: 2; }

  /* Upcoming events spans main column */
  .cp-section--upcoming { grid-column: 1; grid-row: 2; }

  /* Past events spans main column */
  .cp-section--past { grid-column: 1; }

  /* Reviews spans main column */
  .cp-section--reviews { grid-column: 1; }
}

/* ============================================================
   STATS STRIP
   ============================================================ */
.cp-stats-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  padding: 0;
  overflow: hidden;
}

@media (max-width: 640px) {
  .cp-stats-strip { grid-template-columns: repeat(2, 1fr); }
}

.cp-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  padding: 1.1rem 0.75rem;
  text-align: center;
  position: relative;
  transition: background 0.2s;
  min-width: 0;
}

.cp-stat:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0;
  top: 20%;
  bottom: 20%;
  width: 1px;
  background: var(--cp-border);
}

@media (max-width: 640px) {
  .cp-stat:nth-child(2)::after { display: none; }
  .cp-stat:nth-child(1),
  .cp-stat:nth-child(2) { border-bottom: 1px solid var(--cp-border); }
}

.cp-stat:hover { background: var(--cp-violet-soft); }

.cp-stat-value {
  font-size: clamp(1.2rem, 0.95rem + 1vw, 1.6rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, hsl(270,80%,78%), hsl(290,80%,68%));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1;
}

.cp-stat-label {
  font-size: 0.68rem;
  color: var(--cp-text-mute);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

/* ============================================================
   SECTIONS
   ============================================================ */
.cp-section {
  padding: 1.75rem;
  border-radius: var(--cp-radius);
}

.cp-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1.35rem;
  flex-wrap: wrap;
}

.cp-section-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--cp-text);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.cp-section-title svg { color: var(--cp-violet); flex-shrink: 0; }

.cp-view-all {
  font-size: 0.8rem;
  color: hsl(270,80%,72%);
  font-weight: 600;
  transition: color 0.18s;
}
.cp-view-all:hover { color: #fff; }

.cp-about-text {
  color: var(--cp-text-soft);
  font-size: 0.95rem;
  line-height: 1.75;
}

/* ============================================================
   EVENTS GRID
   ============================================================ */
.cp-events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1rem;
}

@media (min-width: 1024px) {
  /* In the main column (left), allow up to 3 cards */
  .cp-section--upcoming .cp-events-grid,
  .cp-section--past .cp-events-grid {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  }
}

@media (max-width: 540px) {
  .cp-events-grid {
    grid-template-columns: 1fr;
    gap: 0.85rem;
  }
}

.cp-event-card {
  display: flex;
  flex-direction: column;
  border-radius: var(--cp-radius);
  overflow: hidden;
  border: 1px solid var(--cp-border);
  background: linear-gradient(145deg, hsl(240,18%,11%), hsl(240,18%,8%));
  transition: transform 0.28s ease, border-color 0.28s ease, box-shadow 0.28s ease;
  text-decoration: none;
  color: inherit;
}

.cp-event-card:hover {
  transform: translateY(-5px);
  border-color: var(--cp-border-hi);
  box-shadow: 0 16px 40px -16px hsla(270,80%,55%,0.4);
}

.cp-event-card.past { opacity: 0.72; }
.cp-event-card.past:hover { opacity: 1; }

/* Event image */
.cp-event-image {
  position: relative;
  height: 155px;
  overflow: hidden;
  background: hsl(240,18%,10%);
  flex-shrink: 0;
}

.cp-event-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.cp-event-card:hover .cp-event-image img { transform: scale(1.06); }

.cp-event-image-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: hsla(270,80%,65%,0.3);
  background: linear-gradient(135deg, hsla(270,50%,22%,0.4), hsla(290,50%,18%,0.35));
}

.cp-event-badge {
  position: absolute;
  top: 0.6rem;
  left: 0.6rem;
  padding: 0.22rem 0.65rem;
  background: hsla(270,80%,55%,0.88);
  backdrop-filter: blur(6px);
  color: #fff;
  font-size: 0.67rem;
  font-weight: 700;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.cp-event-type-badge {
  position: absolute;
  top: 0.6rem;
  right: 0.6rem;
  padding: 0.22rem 0.65rem;
  font-size: 0.67rem;
  font-weight: 700;
  border-radius: 999px;
  backdrop-filter: blur(6px);
}

.cp-event-type-badge.free { background: hsla(150,70%,40%,0.88); color: #fff; }
.cp-event-type-badge.paid { background: hsla(38,90%,50%,0.88);  color: #fff; }

/* Event content */
.cp-event-content {
  padding: 1rem 1.1rem 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  flex: 1;
}

.cp-event-content h3 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--cp-text);
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.cp-event-date,
.cp-event-venue {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.78rem;
  color: var(--cp-text-soft);
}

.cp-event-date svg,
.cp-event-venue svg { color: var(--cp-violet); flex-shrink: 0; }

/* Empty state */
.cp-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.65rem;
  padding: 2.5rem 1rem;
  text-align: center;
  color: var(--cp-text-mute);
  border-radius: var(--cp-radius-sm);
  border: 1px dashed hsla(270,30%,38%,0.35);
  background: hsla(240,18%,10%,0.5);
}

.cp-empty-state p { font-size: 0.875rem; margin: 0; }

/* ============================================================
   REVIEWS
   ============================================================ */
.cp-add-review-btn {
  padding: 0.45rem 0.9rem;
  font-size: 0.8rem;
}

.cp-reviews-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.cp-review-item {
  padding: 1.1rem 1.2rem;
  background: var(--cp-surface-2);
  border: 1px solid var(--cp-border);
  border-radius: var(--cp-radius-sm);
  transition: border-color 0.2s;
}

.cp-review-item:hover { border-color: var(--cp-border-hi); }

.cp-review-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  flex-wrap: wrap;
}

@media (max-width: 480px) {
  .cp-review-header { gap: 0.6rem; }
  .cp-reviewer-avatar { width: 36px; height: 36px; font-size: 0.85rem; }
}

.cp-reviewer-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, hsl(270,80%,55%), hsl(290,80%,50%));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
  box-shadow: 0 4px 14px -6px hsla(270,80%,55%,0.5);
}

.cp-reviewer-info { flex: 1; min-width: 0; }
.cp-reviewer-info h4 { font-size: 0.875rem; font-weight: 700; color: var(--cp-text); margin: 0 0 0.1rem; }
.cp-reviewer-info p  { font-size: 0.72rem; color: var(--cp-text-mute); margin: 0; }

.cp-review-stars { font-size: 1rem; letter-spacing: 1px; flex-shrink: 0; }
.star-filled { color: hsl(38,90%,58%); }
.star-empty  { color: hsla(0,0%,100%,0.18); }

.cp-review-text {
  font-size: 0.875rem;
  color: var(--cp-text-soft);
  line-height: 1.65;
  margin: 0;
}

/* ============================================================
   MODALS
   ============================================================ */
.cp-modal-overlay {
  position: fixed;
  inset: 0;
  background: hsla(240,20%,4%,0.82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.cp-modal {
  background: hsl(240,18%,8%);
  border: 1px solid var(--cp-border-hi);
  border-radius: 20px;
  width: 100%;
  max-width: 480px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 30px 70px -20px hsla(0,0%,0%,0.75);
  animation: cpModalIn 0.22s cubic-bezier(0.34,1.56,0.64,1);
}

.cp-modal-wide { max-width: 540px; }

@keyframes cpModalIn {
  from { transform: scale(0.94) translateY(12px); opacity: 0; }
  to   { transform: scale(1) translateY(0); opacity: 1; }
}

.cp-modal-header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--cp-border);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  position: sticky;
  top: 0;
  background: hsl(240,18%,8%);
  z-index: 1;
}

.cp-modal-header h3 { font-size: 1.05rem; font-weight: 700; color: var(--cp-text); margin: 0 0 0.15rem; }
.cp-modal-subtitle  { font-size: 0.78rem; color: var(--cp-text-mute); margin: 0; }

.cp-modal-close {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: hsla(0,0%,100%,0.05);
  border: 1px solid hsla(0,0%,100%,0.08);
  color: var(--cp-text-soft);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.18s;
  flex-shrink: 0;
}
.cp-modal-close:hover { background: hsla(0,80%,60%,0.15); color: hsl(0,80%,72%); }

.cp-modal-body { padding: 1.5rem; }

.cp-form-group { margin-bottom: 1.2rem; }

.cp-form-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--cp-text-soft);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

.cp-form-input,
.cp-form-textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  background: hsla(240,18%,6%,0.8);
  border: 1.5px solid var(--cp-border);
  border-radius: var(--cp-radius-sm);
  color: var(--cp-text);
  font-size: 0.9rem;
  font-family: inherit;
  transition: all 0.2s;
}

.cp-form-input::placeholder,
.cp-form-textarea::placeholder { color: var(--cp-text-mute); }

.cp-form-input:focus,
.cp-form-textarea:focus {
  outline: none;
  border-color: hsla(270,80%,65%,0.55);
  box-shadow: 0 0 0 3px hsla(270,80%,65%,0.1);
}

.cp-form-textarea { resize: vertical; }

.cp-char-hint { font-size: 0.7rem; color: var(--cp-text-mute); margin-top: 0.3rem; display: block; }

.cp-manage-footer {
  display: flex;
  gap: 0.65rem;
  justify-content: flex-end;
  padding-top: 0.5rem;
  flex-wrap: wrap;
}

.cp-manage-footer .btn { flex: 1 1 auto; min-width: 120px; }

@media (min-width: 540px) {
  .cp-manage-footer .btn { flex: 0 0 auto; min-width: 0; }
}

/* Profile picture upload row */
.cp-pic-upload-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Star rating */
.cp-star-input { display: flex; gap: 0.35rem; }

.cp-star-input .star {
  font-size: 1.8rem;
  color: hsla(0,0%,100%,0.18);
  cursor: pointer;
  transition: color 0.14s, transform 0.14s;
  line-height: 1;
  user-select: none;
}

.cp-star-input .star:hover,
.cp-star-input .star.active {
  color: hsl(38,90%,58%);
  transform: scale(1.18);
}

/* ============================================================
   RESPONSIVE TWEAKS
   ============================================================ */
@media (max-width: 768px) {
  .cp-section { padding: 1.4rem; }
  .cp-section-header { margin-bottom: 1.1rem; }
  .cp-modal-body { padding: 1.25rem; }
  .cp-modal-header { padding: 1rem 1.25rem; }
}

@media (max-width: 640px) {
  .community-hero { padding-top: 64px; }
  .cp-cover { height: 130px; }
  .cp-hero-card { padding: 1.25rem 1.1rem; margin-top: -50px; }
  .cp-logo { width: 72px; height: 72px; font-size: 1.7rem; }
  .cp-section { padding: 1.1rem; }
  .cp-section-title { font-size: 0.98rem; }
  .cp-hero-actions .btn { flex: 1 1 auto; justify-content: center; min-width: 0; }
  .cp-modal { border-radius: 16px; }
  .cp-modal-overlay { padding: 0.5rem; align-items: flex-end; }
  .cp-modal { max-height: 92vh; }
  .cp-event-image { height: 145px; }
  .cp-review-item { padding: 0.95rem 1rem; }
  .cp-review-stars { font-size: 0.95rem; }
  .cp-add-review-btn { padding: 0.4rem 0.7rem; font-size: 0.75rem; }
  .cp-pic-upload-row { gap: 0.85rem; }
}

@media (max-width: 480px) {
  .container { padding: 0 1rem; }
  .cp-cover { height: 110px; }
  .cp-hero-card { padding: 1.1rem 0.95rem; margin-top: -44px; border-radius: 14px; }
  .cp-section { padding: 1rem 0.95rem; border-radius: 14px; }
  .cp-section-header { gap: 0.5rem; margin-bottom: 0.95rem; }
  .cp-name-row h1 { font-size: 1.2rem; }
  .cp-stat-value { font-size: 1.25rem; }
  .cp-stat { padding: 0.9rem 0.5rem; }
  .cp-tagline { font-size: 0.85rem; }
  .cp-meta-chips { font-size: 0.75rem; gap: 0.35rem 0.85rem; }
  .cp-event-content { padding: 0.85rem 0.95rem 1rem; }
  .cp-event-content h3 { font-size: 0.9rem; }
  .cp-modal-overlay { padding: 0; align-items: flex-end; }
  .cp-modal {
    max-width: 100%;
    border-radius: 16px 16px 0 0;
    max-height: 94vh;
    border-bottom: none;
  }
  .cp-modal-header { padding: 0.95rem 1.1rem; border-radius: 16px 16px 0 0; }
  .cp-modal-body { padding: 1.1rem; }
  .cp-form-input, .cp-form-textarea { font-size: 0.875rem; padding: 0.7rem 0.9rem; }
  .cp-star-input .star { font-size: 1.6rem; }
  .cp-modal-header h3 { font-size: 0.98rem; }
}

@media (max-width: 380px) {
  .cp-hero-actions .btn {
    padding: 0.6rem 0.85rem;
    font-size: 0.8rem;
  }
  .btn { padding: 0.6rem 0.95rem; font-size: 0.8rem; }
  .cp-stats-strip { font-size: 0.9em; }
}

/* ============================================================
   SOCIAL MEDIA LINKS — Display (About section)
   ============================================================ */
.cp-social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--cp-border);
}

.cp-social-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.42rem 0.85rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.cp-social-link span {
  line-height: 1;
}

/* Instagram — pink/purple gradient */
.cp-social-instagram {
  background: hsla(330, 80%, 55%, 0.12);
  border-color: hsla(330, 80%, 55%, 0.28);
  color: hsl(330, 80%, 72%);
}
.cp-social-instagram:hover {
  background: hsla(330, 80%, 55%, 0.22);
  border-color: hsla(330, 80%, 55%, 0.5);
  color: hsl(330, 80%, 82%);
  transform: translateY(-1px);
}

/* Twitter / X — sky blue */
.cp-social-twitter {
  background: hsla(210, 90%, 55%, 0.1);
  border-color: hsla(210, 90%, 55%, 0.25);
  color: hsl(210, 90%, 72%);
}
.cp-social-twitter:hover {
  background: hsla(210, 90%, 55%, 0.2);
  border-color: hsla(210, 90%, 55%, 0.45);
  color: hsl(210, 90%, 82%);
  transform: translateY(-1px);
}

/* LinkedIn — blue */
.cp-social-linkedin {
  background: hsla(210, 70%, 50%, 0.1);
  border-color: hsla(210, 70%, 50%, 0.25);
  color: hsl(210, 70%, 72%);
}
.cp-social-linkedin:hover {
  background: hsla(210, 70%, 50%, 0.2);
  border-color: hsla(210, 70%, 50%, 0.45);
  color: hsl(210, 70%, 82%);
  transform: translateY(-1px);
}

/* YouTube — red */
.cp-social-youtube {
  background: hsla(0, 80%, 55%, 0.1);
  border-color: hsla(0, 80%, 55%, 0.25);
  color: hsl(0, 80%, 72%);
}
.cp-social-youtube:hover {
  background: hsla(0, 80%, 55%, 0.2);
  border-color: hsla(0, 80%, 55%, 0.45);
  color: hsl(0, 80%, 82%);
  transform: translateY(-1px);
}

/* Website — violet (matches brand) */
.cp-social-website {
  background: var(--cp-violet-soft);
  border-color: hsla(270, 60%, 55%, 0.28);
  color: hsl(270, 80%, 75%);
}
.cp-social-website:hover {
  background: hsla(270, 80%, 60%, 0.2);
  border-color: hsla(270, 80%, 60%, 0.45);
  color: hsl(270, 80%, 85%);
  transform: translateY(-1px);
}

/* ============================================================
   SOCIAL MEDIA INPUTS — Manage modal
   ============================================================ */
.cp-social-inputs {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.cp-social-input-row {
  display: flex;
  align-items: center;
  gap: 0;
  border: 1.5px solid var(--cp-border);
  border-radius: var(--cp-radius-sm);
  overflow: hidden;
  transition: border-color 0.2s;
  background: hsla(240,18%,6%,0.8);
}

.cp-social-input-row:focus-within {
  border-color: hsla(270, 80%, 65%, 0.55);
  box-shadow: 0 0 0 3px hsla(270, 80%, 65%, 0.1);
}

.cp-social-input-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-right: 1px solid var(--cp-border);
}

/* Icon accent colours */
.cp-social-input-icon.cp-social-instagram { color: hsl(330, 80%, 68%); background: hsla(330, 80%, 55%, 0.08); }
.cp-social-input-icon.cp-social-twitter   { color: hsl(210, 90%, 68%); background: hsla(210, 90%, 55%, 0.08); }
.cp-social-input-icon.cp-social-linkedin  { color: hsl(210, 70%, 68%); background: hsla(210, 70%, 50%, 0.08); }
.cp-social-input-icon.cp-social-youtube   { color: hsl(0, 80%, 68%);   background: hsla(0, 80%, 55%, 0.08); }
.cp-social-input-icon.cp-social-website   { color: hsl(270, 80%, 72%); background: hsla(270, 80%, 55%, 0.08); }

.cp-social-field {
  flex: 1;
  border: none !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  padding: 0.65rem 0.85rem !important;
  font-size: 0.82rem !important;
  color: var(--cp-text);
  min-width: 0;
}

.cp-social-field::placeholder { color: var(--cp-text-mute); }
.cp-social-field:focus { outline: none; box-shadow: none !important; }
