:root {
  --bg: #0c0f17;
  --card: #121725;
  --line: #1f2635;
  --text: #d6d9e4;
  --muted: #9ba3b5;
  --accent: #c9a84c;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Manrope', system-ui, sans-serif;
  background: radial-gradient(120% 120% at 20% 20%, rgba(201,168,76,.06), transparent 40%), var(--bg);
  color: var(--text);
  min-height: 100vh;
}

.profile-header {
  padding: 18px 26px 14px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

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

.profile-club-large {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--text);
}

.profile-club-large[data-loading="true"] {
  visibility: hidden;
}

.back-btn {
  border: 1px solid var(--line);
  background: #0f1421;
  color: var(--text);
  padding: 8px 10px;
  border-radius: 10px;
  cursor: pointer;
}

.profile-brand {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.4rem;
  letter-spacing: -0.2px;
}
.profile-brand .brand-mark { color: #f7fbff; }
.profile-brand em { font-style: italic; color: var(--accent); }

.profile-meta {
  color: var(--muted);
  font-size: .9rem;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}

.profile-club {
  color: var(--muted);
  font-size: .95rem;
}

.profile-email {
  color: var(--text);
  font-size: .9rem;
}

.profile-main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 32px 22px 60px;
}

.profile-hero {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 22px;
  align-items: center;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: linear-gradient(145deg, rgba(201,168,76,.07), transparent 55%), var(--card);
}

.kicker {
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--accent);
  font-size: 12px;
  margin: 0 0 6px;
}

.profile-hero h1 {
  margin: 0 0 8px;
  font-size: 1.8rem;
}

.sub {
  margin: 0;
  color: var(--muted);
}

.share-box {
  display: flex;
  gap: 10px;
  align-items: center;
}

.club-edit {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.club-edit-row {
  display: flex;
  gap: 8px;
}

.club-hint {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.share-input {
  flex: 1;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #0f1421;
  color: var(--text);
}

.btn-share {
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--accent);
  background: var(--accent);
  color: #0b0d14;
  font-weight: 700;
  cursor: pointer;
}

.profile-list-section {
  margin-top: 28px;
}

.list-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
}

.list-head h2 {
  margin: 0;
  font-size: 1.2rem;
}

.list-head select {
  background: #0f1421;
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 8px 10px;
}

.competitions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}

.status {
  margin: 8px 0 14px;
  color: var(--muted);
  font-size: .95rem;
}
.status--error { color: #ff9b9b; }
.status--ok { color: var(--accent); }

.comp-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px;
  background: var(--card);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.comp-card h3 {
  margin: 0;
  font-size: 1.05rem;
}

.comp-meta {
  color: var(--muted);
  font-size: .9rem;
}

.comp-actions {
  display: flex;
  gap: 10px;
  margin-top: 6px;
}

.btn-link {
  flex: 1;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #0f1421;
  color: var(--text);
  text-align: center;
  text-decoration: none;
  font-weight: 600;
}

.btn-link:hover { border-color: var(--accent); }

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  background: rgba(201,168,76,.12);
  color: var(--accent);
}

.profile-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  padding: 24px;
  font-size: .9rem;
  border-top: 1px solid var(--line);
}

.profile-footer-brand {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.3rem;
}

.profile-footer-brand .brand-mark { color: #f7fbff; }
.profile-footer-brand em { font-style: italic; color: var(--accent); }

.profile-footer-meta {
  display: flex;
  gap: 12px;
  color: var(--muted);
  font-size: .9rem;
}

@media (max-width: 760px) {
  .profile-hero { grid-template-columns: 1fr; }
  .share-box { flex-direction: column; align-items: stretch; }
  .btn-share { width: 100%; }
  .profile-meta { align-items: flex-start; }
}
