* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background: #f1f3f7;
  color: #1a1a2e;
  min-height: 100vh;
}
a { text-decoration: none; color: inherit; }

/* ========== 1. HEADER ========== */
.header {
  background: #28398e;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  height: 56px;
  position: sticky;
  top: 0;
  z-index: 100;
}
.header-left { display: flex; align-items: center; gap: 20px; }
.header-logo img { height: 40px; display: block; }
.au-nz {
  display: flex; align-items: center; gap: 6px;
  color: #fff; font-size: 14px; font-weight: 500;
}
.au-nz svg { width: 18px; height: 18px; opacity: 0.85; }
.header-right { display: flex; align-items: center; gap: 12px; }
.avatar-ct {
  width: 36px; height: 36px; border-radius: 50%;
  background: #e8e8ee; display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700; color: #28398e;
}
.menu-btn {
  display: flex; align-items: center; gap: 8px;
  background: #4a6cf7; color: #fff; border: none; border-radius: 20px;
  padding: 8px 18px; font-size: 14px; font-weight: 600; cursor: pointer;
}
.menu-btn:hover { background: #5a7aff; }
.menu-btn svg { width: 18px; height: 18px; }

/* ========== 2. MENU DROPDOWN ========== */
.menu-overlay {
  display: none; position: fixed;
  top: 0; left: 0; right: 0; bottom: 0; z-index: 199;
}
.menu-overlay.open { display: block; }
.menu-dropdown {
  position: fixed; top: 60px; right: 24px; width: 340px;
  background: #fff; border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.16);
  z-index: 200; padding: 16px 0; display: none;
}
.menu-dropdown.open { display: block; }
.menu-search {
  display: flex; align-items: center; gap: 10px;
  margin: 0 16px 8px; padding: 10px 14px;
  border: 1px solid #e2e2e6; border-radius: 10px;
}
.menu-search svg { width: 18px; height: 18px; flex-shrink: 0; }
.menu-search span { color: #aaa; font-size: 14px; }
.menu-links { list-style: none; }
.menu-links li {
  display: flex; align-items: center; justify-content: space-between;
  padding: 11px 20px; cursor: pointer;
}
.menu-links li:hover { background: #f7f7f9; }
.menu-link-left {
  display: flex; align-items: center; gap: 12px;
  font-size: 14px; font-weight: 500; color: #1a1a2e;
}
.menu-link-left svg { width: 18px; height: 18px; }
.menu-link-ext svg { width: 14px; height: 14px; }
.menu-get-playhq {
  display: inline-flex; align-items: center; gap: 6px;
  background: #4a6cf7; color: #fff; border: none; border-radius: 20px;
  padding: 8px 18px; font-size: 13px; font-weight: 600;
  cursor: pointer; margin: 8px 20px 4px;
}
.menu-get-playhq svg { width: 14px; height: 14px; }
.menu-section-title {
  font-size: 16px; font-weight: 700; color: #1a1a2e;
  padding: 14px 20px 6px;
}
.menu-logout {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 20px 4px; font-size: 14px;
  color: #4a6cf7; font-weight: 500; cursor: pointer;
}
.menu-logout:hover { background: #f7f7f9; }
.menu-logout svg { width: 16px; height: 16px; }

/* ========== 3. HERO ========== */
.hero-wrapper { position: relative; }
.hero-bg {
  position: absolute; top: 0; left: 0; right: 0;
  height: 280px; background: #28398e; z-index: 0;
}
.hero-bg::after {
  content: ''; position: absolute; bottom: -60px; left: -5%; width: 110%;
  height: 120px; background: #28398e;
  border-radius: 0 0 50% 50%;
}
.hero-section {
  position: relative; padding: 28px 0 80px; z-index: 1;
}
.profile-info {
  display: flex; align-items: center; gap: 16px; padding: 0 40px;
}
.profile-avatar {
  width: 64px; height: 64px; border-radius: 50%; overflow: hidden; flex-shrink: 0;
}
.profile-avatar img { width: 100%; height: 100%; object-fit: cover; }
.profile-name { color: #fff; font-size: 22px; font-weight: 700; }
.profile-sub-badge {
  display: inline-block; background: rgba(255,255,255,0.2);
  color: rgba(255,255,255,0.75); font-size: 11px; font-weight: 600;
  padding: 2px 10px; border-radius: 10px; margin-top: 4px;
}

/* ========== 4. REGISTRATION CARD ========== */
.main-content {
  max-width: 700px; margin: -30px auto 0; padding: 0 24px;
  position: relative; z-index: 3;
}
.reg-card {
  background: #fff; border-radius: 5px;
  box-shadow: 0 1px 6px rgba(0,0,0,0.08);
  padding: 24px 28px 28px;
}
.back-link {
  display: inline-flex; align-items: center; gap: 6px;
  color: #4a6cf7; font-size: 13px; font-weight: 500;
  margin-bottom: 20px; cursor: pointer;
}
.back-link svg { width: 16px; height: 16px; }
.reg-card h1 {
  font-size: 24px; font-weight: 800; color: #1a1a2e; margin-bottom: 20px;
}
.card-columns { display: flex; gap: 24px; }
.card-col-left { flex: 1; min-width: 0; }
.card-col-right { flex: 0 0 260px; align-self: flex-start; }
.card-col-right img { width: 100%; border-radius: 10px; display: block; }
.step-label { font-size: 11px; color: #999; font-weight: 500; margin-bottom: 6px; }
.step-header { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.step-number {
  width: 26px; height: 26px; border-radius: 50%; background: #4a6cf7;
  color: #fff; display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700; flex-shrink: 0;
}
.step-title { font-size: 16px; font-weight: 700; color: #1a1a2e; }
.step-desc {
  font-size: 14px; color: #777; margin: 2px 0 12px 36px; line-height: 1.5;
}
.summary-dropdown {
  display: flex; align-items: center; justify-content: space-between;
  border: 1px solid #ddd; border-radius: 6px; padding: 10px 14px;
  margin: 0 0 0 36px; width: 220px; cursor: pointer;
  font-size: 14px; font-weight: 500; color: #1a1a2e;
}
.summary-dropdown svg { width: 16px; height: 16px; }
.step2-section {
  margin-top: 20px; border-top: 1px solid #f0f0f2; padding-top: 16px;
}
.step2-desc {
  font-size: 13px; color: #777; margin: 2px 0 20px 36px; line-height: 1.6;
}
.btn-copy {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  background: #4a6cf7; color: #fff; border: none; border-radius: 24px;
  padding: 12px 24px; font-size: 14px; font-weight: 600; cursor: pointer;
  width: 100%; max-width: 340px; margin: 0 0 10px;
}
.btn-copy:hover { background: #3b5ce0; }
.btn-copy svg { width: 16px; height: 16px; }
.btn-light {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  background: #e8eeff; color: #4a6cf7; border: none; border-radius: 24px;
  padding: 10px 24px; font-size: 14px; font-weight: 600; cursor: pointer;
  width: 100%; max-width: 340px; margin: 0 0 10px;
}
.btn-light:hover { background: #dce4ff; }

/* ========== 5. CLUB INFO ========== */
.club-info {
  background: #fff; padding: 36px 32px;
  max-width: 700px; margin: 40px auto 0;
}
.club-header-row {
  display: flex; align-items: center; gap: 12px; margin-bottom: 20px;
}
.club-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  overflow: hidden; flex-shrink: 0;
}
.club-avatar-inner { width: 100%; height: 100%; display: flex; }
.club-avatar-left {
  width: 50%; height: 100%; background: #c5e84d;
  display: flex; align-items: center; justify-content: center;
}
.club-avatar-right {
  width: 50%; height: 100%; background: #222;
  display: flex; align-items: center; justify-content: center;
}
.club-avatar-left span { font-size: 6px; font-weight: 900; color: #222; }
.club-avatar-right span { font-size: 5px; font-weight: 800; color: #fff; }
.club-name { font-size: 16px; font-weight: 700; color: #1a1a2e; }
.club-details-row {
  display: flex; align-items: flex-start; gap: 20px;
}
.club-detail-col1 { flex: 1; display: flex; flex-direction: column; gap: 6px; }
.club-detail-col2 { flex: 0 0 auto; }
.club-detail-col3 { flex: 0 0 auto; margin-left: auto; }
.club-detail {
  display: flex; align-items: flex-start; gap: 6px;
  font-size: 13px; color: #555;
}
.club-detail svg { width: 15px; height: 15px; flex-shrink: 0; margin-top: 2px; }
.visit-btn {
  display: inline-flex; align-items: center; gap: 5px;
  border: 1px solid #ddd; border-radius: 20px; padding: 6px 14px;
  font-size: 13px; font-weight: 500; color: #1a1a2e;
  cursor: pointer; background: #fff; white-space: nowrap;
}
.visit-btn svg { width: 13px; height: 13px; }
.club-divider { border: none; border-top: 1px solid #eee; margin: 24px 0; }
.coordinator-name { font-size: 13px; color: #999; margin-bottom: 2px; }
.coordinator-role { font-size: 15px; font-weight: 700; color: #1a1a2e; margin-bottom: 8px; }
.coordinator-email {
  display: flex; align-items: center; gap: 8px; font-size: 13px; color: #555;
}
.coordinator-email svg { width: 15px; height: 15px; }

/* ========== 6. FOOTER ========== */
.footer {
  background: #170e30; color: #fff; padding: 48px 48px 0; margin-top: 48px;
}
.footer-top {
  display: flex; justify-content: space-between; align-items: flex-start;
  margin-bottom: 36px;
}
.footer-logo img { height: 48px; display: block; }
.footer-tagline { font-size: 24px; font-weight: 700; }
.footer-columns { display: flex; gap: 48px; padding-bottom: 40px; }
.footer-col { min-width: 100px; }
.footer-col-title {
  font-size: 15px; font-weight: 700; margin-bottom: 14px; color: #fff;
}
.footer-au-nz {
  display: flex; align-items: center; gap: 6px;
  color: rgba(255,255,255,0.7); font-size: 13px; margin-bottom: 20px;
}
.footer-au-nz svg { width: 18px; height: 18px; }
.footer-link {
  display: flex; align-items: center; gap: 8px;
  color: rgba(255,255,255,0.7); font-size: 13px; padding: 5px 0; cursor: pointer;
}
.footer-link:hover { color: #fff; }
.footer-link svg { width: 16px; height: 16px; }
.footer-link-ext { margin-left: 4px; }
.footer-link-ext svg { width: 12px; height: 12px; }
.footer-sport-link {
  color: rgba(255,255,255,0.7); font-size: 13px; padding: 4px 0;
  display: block; cursor: pointer;
}
.footer-sport-link:hover { color: #fff; }
.footer-get-playhq {
  display: inline-flex; align-items: center;
  background: #fff; color: #4a6cf7; border: none; border-radius: 20px;
  padding: 8px 18px; font-size: 13px; font-weight: 600;
  cursor: pointer; margin-top: 80px;
}
.footer-logout-link {
  display: flex; align-items: center; gap: 6px;
  color: rgba(255,255,255,0.7); font-size: 13px; padding: 5px 0; cursor: pointer;
}
.footer-logout-link svg { width: 14px; height: 14px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 0; font-size: 12px; color: rgba(255,255,255,0.45);
}
.footer-bottom-links { display: flex; gap: 24px; }
.footer-bottom-links a { color: rgba(255,255,255,0.45); font-size: 12px; }
.footer-bottom-links a:hover { color: rgba(255,255,255,0.7); }

/* ========== 7. MOBILE RESPONSIVE ========== */
@media (max-width: 768px) {
  /* Header */
  .header { padding: 0 12px; height: 50px; }
  .header-logo img { height: 32px; }
  .header-left { gap: 10px; }
  .au-nz { font-size: 12px; }
  .menu-btn { padding: 6px 14px; font-size: 13px; }

  /* Menu dropdown */
  .menu-dropdown { right: 8px; left: 8px; width: auto; top: 54px; }

  /* Hero */
  .hero-bg { height: 200px; }
  .hero-section { padding: 20px 0 60px; }
  .profile-info { padding: 0 16px; }
  .profile-name { font-size: 18px; }

  /* Registration card */
  .main-content { padding: 0 12px; margin-top: -20px; }
  .reg-card { padding: 18px 16px 22px; }
  .reg-card h1 { font-size: 20px; margin-bottom: 16px; }
  .card-columns { flex-direction: column; gap: 16px; }
  .card-col-right { flex: none; width: 100%; max-width: 280px; }
  .summary-dropdown { width: 100%; }
  .step2-desc { font-size: 13px; margin-left: 36px; margin-right: 0; }
  .btn-copy, .btn-light { max-width: 100%; }

  /* Club info */
  .club-info { padding: 24px 16px; margin-top: 24px; }
  .club-details-row { flex-direction: column; gap: 12px; }
  .club-detail-col3 { margin-left: 0; }

  /* Footer */
  .footer { padding: 32px 16px 0; margin-top: 32px; }
  .footer-top { flex-direction: column; gap: 8px; }
  .footer-tagline { font-size: 18px; }
  .footer-columns { flex-direction: column; gap: 24px; }
  .footer-get-playhq { margin-top: 16px; }
  .footer-bottom { flex-direction: column; gap: 10px; text-align: center; }
}

@media (max-width: 480px) {
  .au-nz { display: none; }
  .profile-avatar { width: 48px; height: 48px; }
  .card-col-right { display: none; }
  .reg-card h1 { font-size: 18px; }
  .footer-logo img { height: 36px; }
}
