/* Socialify Campus: events, clubs, credentials (campusevents/, clubs/, credentials/ templates). One Socialify brand:
   the rainbow bar, light page, white glass cards, pink→violet / blue→violet buttons; never a dark background. */
.cp { --cp-rainbow: linear-gradient(90deg, #2f6bff, #0a8cff, #00b4d0, #12b886, #4fcf3a, #f4b400, #ff7b25, #ff4f6d, #f03e9b, #c44ee6, #7b5cff);
  --cp-btn: linear-gradient(90deg, #2f6bff, #7b5cff 55%, #c44ee6); --cp-btn2: linear-gradient(90deg, #f03e9b, #c44ee6 50%, #7b5cff);
  --cp-ink: #101828; --cp-soft: #5b6478; --cp-line: #e9ecf3; --cp-brand: #5b4cff; --cp-ok: #12b886; --cp-warn: #f08c00;
  max-width: 1180px; margin: 0 auto; padding: 16px 12px 60px; color: var(--cp-ink);
  font-family: 'Inter', 'Nunito', system-ui, -apple-system, 'Segoe UI', sans-serif; -webkit-font-smoothing: antialiased; }
.cp * { box-sizing: border-box; }
.cp a { text-decoration: none; color: inherit; }
.cp h1, .cp h2, .cp h3 { font-family: inherit; color: var(--cp-ink); }
.cp h2 { font-size: 21px; font-weight: 800; margin: 26px 0 12px; text-align: center; letter-spacing: -.3px; }
.cp-muted { color: var(--cp-soft); font-size: 13.5px; }
.cp-center { text-align: center; }

/* hero */
.cp-hero { position: relative; overflow: hidden; padding: 38px 24px 30px; border-radius: 28px; border: 1px solid var(--cp-line); text-align: center;
  background: radial-gradient(60% 80% at 100% 0%, rgba(196,78,230,.14), transparent 60%), radial-gradient(50% 70% at 0% 100%, rgba(18,184,134,.12), transparent 60%),
              linear-gradient(135deg, #f5f8ff 0%, #fbf6ff 55%, #fff5fa 100%);
  box-shadow: 0 24px 48px -28px rgba(91,76,255,.3); }
.cp-hero::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 5px; background: var(--cp-rainbow); }
.cp-hero h1 { margin: 6px 0 8px; font-size: 40px; line-height: 1.08; font-weight: 800; letter-spacing: -1.2px; }
.cp-hero p { margin: 0 auto 6px; max-width: 640px; color: var(--cp-soft); font-size: 16px; line-height: 1.5; font-weight: 500; }
.cp-grad { background: var(--cp-btn); -webkit-background-clip: text; background-clip: text; color: transparent; }
.cp-eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; background: #fff; border: 1px solid var(--cp-line);
  font-size: 13px; font-weight: 700; color: var(--cp-brand); }
.cp-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 18px; }
.cp-actions > * { min-width: 180px; }

/* buttons */
.cp-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 46px; padding: 0 22px; border: 0; border-radius: 14px;
  background: var(--cp-btn); color: #fff !important; font: 700 15px/1 inherit; font-family: inherit; cursor: pointer;
  box-shadow: 0 10px 22px -10px rgba(91,76,255,.7); transition: transform .12s; }
.cp-btn:hover { transform: translateY(-1px); }
.cp-btn.pink { background: var(--cp-btn2); box-shadow: 0 10px 22px -10px rgba(240,62,155,.6); }
.cp-btn.ghost { background: #fff; color: var(--cp-brand) !important; border: 1px solid #d9d4ff; box-shadow: none; }
.cp-btn.small { height: 36px; padding: 0 14px; font-size: 13.5px; border-radius: 11px; }
.cp-btn.wide { width: 100%; }
.cp-btn[disabled] { opacity: .5; cursor: not-allowed; }

/* tabs */
.cp-tabs { display: flex; gap: 6px; justify-content: center; flex-wrap: wrap; margin: 16px 0 6px; }
.cp-tabs a { display: inline-flex; align-items: center; gap: 6px; padding: 9px 16px; border-radius: 999px; background: #fff; border: 1px solid var(--cp-line);
  font-weight: 700; font-size: 14px; color: var(--cp-soft); }
.cp-tabs a.on { background: var(--cp-btn); color: #fff; border-color: transparent; }
.cp-preview { margin: 10px auto 0; max-width: 760px; padding: 8px 14px; border-radius: 12px; background: #fff7e6; border: 1px solid #ffe0a3;
  color: #8a5a00; font-size: 13px; font-weight: 600; text-align: center; }

/* cards + grids */
.cp-card { background: rgba(255,255,255,.92); border: 1px solid var(--cp-line); border-radius: 20px; padding: 18px;
  box-shadow: 0 1px 2px rgba(16,24,40,.04), 0 14px 30px -22px rgba(16,24,40,.25); backdrop-filter: blur(8px); }
.cp-card h3 { margin: 0 0 6px; font-size: 17px; font-weight: 800; }
.cp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.cp-two { display: grid; grid-template-columns: 1.6fr 1fr; gap: 16px; align-items: start; }
.cp-ev { display: flex; flex-direction: column; gap: 8px; padding: 0; overflow: hidden; }
.cp-ev-top { position: relative; height: 96px; display: flex; align-items: center; justify-content: center; font-size: 40px;
  background: linear-gradient(135deg, hsl(var(--h, 260) 90% 94%), hsl(calc(var(--h, 260) + 60) 90% 95%)); }
.cp-ev-top::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--cp-rainbow); }
.cp-ev-body { padding: 4px 16px 16px; display: flex; flex-direction: column; gap: 6px; }
.cp-ev-body b { font-size: 16.5px; line-height: 1.3; }
.cp-date { display: inline-flex; gap: 6px; align-items: center; font-weight: 700; font-size: 13px; color: var(--cp-brand); }
.cp-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.cp-chip { display: inline-block; padding: 4px 10px; border-radius: 999px; background: #f2f4fa; font-size: 12px; font-weight: 700; color: var(--cp-soft); }
.cp-chip.ok { background: #e6fcf5; color: #087f5b; } .cp-chip.warn { background: #fff4e6; color: #d9480f; } .cp-chip.ai { background: #f3f0ff; color: #6741d9; }
.cp-chip.feat { background: linear-gradient(90deg, #fff0f6, #f3f0ff); color: #c2255c; }
.cp-club { display: flex; gap: 14px; align-items: center; }
.cp-club-ic { flex: 0 0 auto; width: 54px; height: 54px; border-radius: 16px; display: flex; align-items: center; justify-content: center; font-size: 26px;
  background: linear-gradient(135deg, #eef2ff, #fdf2ff); border: 1px solid #ece8ff; }
.cp-club b { display: block; font-size: 16px; } .cp-club small { color: var(--cp-soft); font-size: 13px; font-weight: 500; }

/* filters / forms */
.cp-filter { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: 16px 0; }
.cp-filter input, .cp-filter select { height: 42px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--cp-line); background: #fff; font: 500 14.5px inherit; font-family: inherit; min-width: 0; }
.cp-form { max-width: 720px; margin: 0 auto; }
.cp-form label { display: block; font-weight: 700; font-size: 14px; margin: 14px 0 6px; }
.cp-form input:not([type=checkbox]):not([type=radio]), .cp-form select, .cp-form textarea { width: 100%; padding: 11px 13px; border-radius: 12px;
  border: 1px solid #dfe3ec; background: #fff; font: 500 15px inherit; font-family: inherit; color: var(--cp-ink); }
.cp-form .helptext, .cp-form .cp-help { display: block; color: var(--cp-soft); font-size: 12.5px; margin-top: 4px; }
.cp-form .errorlist { margin: 6px 0 0; padding: 0; list-style: none; color: #c92a2a; font-size: 13px; font-weight: 600; }
.cp-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.cp-inline { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.cp-inline input, .cp-inline select { height: 38px; padding: 0 10px; border-radius: 10px; border: 1px solid #dfe3ec; font: 500 14px inherit; font-family: inherit; min-width: 0; }

/* stats */
.cp-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.cp-stat { text-align: center; padding: 14px 10px; border-radius: 16px; background: #fff; border: 1px solid var(--cp-line); }
.cp-stat b { display: block; font-size: 26px; font-weight: 800; letter-spacing: -.5px; }
.cp-stat span { color: var(--cp-soft); font-size: 12.5px; font-weight: 600; }
.cp-stat.hl { background: linear-gradient(135deg, #f3f0ff, #fff0f6); border-color: #e5dbff; }
.cp-bar { display: flex; height: 12px; border-radius: 999px; overflow: hidden; background: #f1f3f9; margin: 10px 0 6px; }
.cp-bar i { display: block; height: 100%; }

/* tables */
.cp-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.cp-table th, .cp-table td { text-align: left; padding: 9px 8px; border-bottom: 1px solid var(--cp-line); vertical-align: middle; }
.cp-table th { font-size: 12px; text-transform: uppercase; letter-spacing: .4px; color: var(--cp-soft); }
.cp-scroll { overflow-x: auto; }

/* sponsors */
.cp-sponsors { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; }
.cp-sp { text-align: center; padding: 14px; border-radius: 16px; border: 1px dashed #d9d4ff; background: #fbfaff; }
.cp-sp.filled { border-style: solid; background: #fff; }
.cp-sp small { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: .6px; color: var(--cp-brand); font-weight: 800; }
.cp-sp b { display: block; font-size: 17px; margin-top: 4px; }

/* ticket */
.cp-ticket { max-width: 440px; margin: 0 auto; text-align: center; position: relative; overflow: hidden; }
.cp-ticket::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 5px; background: var(--cp-rainbow); }
.cp-qr { display: inline-block; padding: 12px; background: #fff; border-radius: 16px; border: 1px solid var(--cp-line); margin: 12px 0; }
.cp-code { font-family: ui-monospace, Menlo, monospace; font-size: 15px; font-weight: 700; letter-spacing: 1px; }
.cp-test { margin: 12px 0; padding: 10px 12px; border-radius: 12px; background: #fff4e6; border: 1px solid #ffd8a8; color: #a14a00; font-weight: 700; font-size: 13.5px; }

/* credentials */
.cp-cred { display: flex; gap: 14px; align-items: flex-start; }
.cp-cred-ic { flex: 0 0 auto; width: 56px; height: 56px; border-radius: 18px; display: flex; align-items: center; justify-content: center; font-size: 28px;
  background: linear-gradient(135deg, #fff9db, #fff0f6); border: 1px solid #ffe8cc; }
.cp-verify { max-width: 620px; margin: 0 auto; text-align: center; }
.cp-verify h1 { font-weight: 800; letter-spacing: -.5px; }
.cp-seal { display: inline-block; max-width: 100%; line-height: 1.4; padding: 8px 16px; border-radius: 18px; background: #e6fcf5; color: #087f5b; font-weight: 800; font-size: 14px; }
.cp-seal.bad { background: #fff5f5; color: #c92a2a; }
.cp-share { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 14px; }
.cp-share a, .cp-share button { min-width: 130px; }
.cp-demo { margin-top: 10px; font-size: 12px; color: #98a2b3; text-align: center; font-weight: 600; }

@media (max-width: 760px) {
  .cp { padding: 10px 16px 50px; }
  .cp-hero { padding: 30px 16px 24px; border-radius: 22px; }
  .cp-hero h1 { font-size: 30px; }
  .cp-two, .cp-row2 { grid-template-columns: 1fr; }
  .cp-actions > * { flex: 1 1 100%; }
  .cp-table th:nth-child(n+4), .cp-table td:nth-child(n+4) { display: none; }
  .cp-table.keep th, .cp-table.keep td { display: table-cell; }
}
