:root {
  --bg: #0D0D12;
  --surface: rgba(255,255,255,0.04);
  --surface-muted: rgba(255,255,255,0.02);
  --surface-raised: rgba(255,255,255,0.07);
  --ink: #E8E8ED;
  --muted: #8E8E98;
  --rule: rgba(255,255,255,0.08);
  --accent: #7C5CFC;
  --accent-2: #A78BFA;
  --accent-soft: rgba(124, 92, 252, 0.12);
  --accent-glow: rgba(124, 92, 252, 0.25);
  --green: #34D399;
  --green-2: #6EE7B7;
  --green-soft: rgba(52, 211, 153, 0.12);
  --amber: #FBBF24;
  --amber-soft: rgba(251, 191, 36, 0.12);
  --rose: #F472B6;
  --rose-soft: rgba(244, 114, 182, 0.12);
  --sky: #38BDF8;
  --sky-soft: rgba(56, 189, 248, 0.12);
  --font: "SF Pro Text", "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", "SF Mono", "Consolas", monospace;
  --max: 1280px;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

/* Background glow */
body::before {
  content: '';
  position: fixed;
  top: -20%;
  left: 10%;
  width: 50%;
  height: 60%;
  background: radial-gradient(ellipse at center, rgba(124,92,252,0.08) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

body::after {
  content: '';
  position: fixed;
  bottom: -10%;
  right: 5%;
  width: 40%;
  height: 50%;
  background: radial-gradient(ellipse at center, rgba(52,211,153,0.05) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.page-wrap {
  position: relative;
  z-index: 1;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ===== NAV BAR ===== */
.nav-bar {
  display: flex;
  align-items: center;
  padding: 0.75rem 0;
  gap: 2rem;
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(13,13,18,0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--rule);
  overflow: visible;
}

.nav-logo {
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 0.35rem;
  text-decoration: none;
  cursor: pointer;
}

.nav-logo-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent-glow);
}

.nav-links {
  display: flex;
  gap: 1.5rem;
  flex: 1;
  flex-wrap: wrap;
}

.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.85rem;
  transition: color 0.2s;
  cursor: pointer;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--ink);
}

.nav-search {
  background: var(--surface-raised);
  border: 1px solid var(--rule);
  border-radius: 20px;
  padding: 0.4rem 1rem;
  color: var(--muted);
  font-size: 0.8rem;
  width: 180px;
  outline: none;
  transition: border-color 0.2s, width 0.3s;
  flex-shrink: 0;
}

.nav-search:focus {
  border-color: var(--accent);
  width: 220px;
  color: var(--ink);
}

.btn-join {
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 0.45rem 1.25rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
}

.btn-join:hover {
  background: #9370FF;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px var(--accent-glow);
}

/* ===== HEADER ===== */
.header-strip {
  padding: 3rem 0 2rem;
}

.header-strip h1 {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 0.25rem;
}

.header-strip h1 span {
  color: var(--accent);
}

.header-strip .subtitle {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.live-stats {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.8rem;
  color: var(--muted);
  flex-wrap: wrap;
}

.live-dot {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.live-dot::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(52,211,153,0.5);
  }
  50% {
    box-shadow: 0 0 0 8px rgba(52,211,153,0);
  }
}

.live-dot strong {
  color: var(--green);
}

/* ===== THREE-COLUMN LAYOUT ===== */
.three-col {
  display: grid;
  grid-template-columns: 260px 1fr 260px;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
  align-items: start;
}

/* ===== BASE CARD ===== */
.card {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 14px;
  padding: 1.25rem;
  transition: all 0.25s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.card:hover {
  background: var(--surface-raised);
  border-color: rgba(255,255,255,0.14);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.3);
}

.card-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
  font-weight: 600;
  font-size: 0.9rem;
}

.card-header .icon {
  font-size: 1.1rem;
}
.card-header .card-more {
  margin-left: auto;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--accent);
  cursor: pointer;
  transition: opacity 0.2s;
}
.card-header .card-more:hover {
  opacity: 0.8;
}

.card-divider {
  border: none;
  border-top: 1px solid var(--rule);
  margin: 0.75rem 0;
}

/* ===== SIDEBAR CARD (compact) ===== */
.sidebar-card {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 14px;
  padding: 1.1rem;
  transition: all 0.25s ease;
  cursor: pointer;
  margin-bottom: 1rem;
}

.sidebar-card:hover {
  background: var(--surface-raised);
  border-color: rgba(255,255,255,0.14);
  transform: translateY(-2px);
}

.sidebar-card:last-child {
  margin-bottom: 0;
}

/* Topic items */
.topic-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 0.75rem;
  border-radius: 10px;
  transition: background 0.2s;
  cursor: pointer;
}

.topic-item:hover {
  background: var(--surface-raised);
}

.topic-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 700;
  color: #fff;
}

.topic-avatar.purple { background: var(--accent); }
.topic-avatar.green { background: var(--green); }
.topic-avatar.amber { background: var(--amber); }
.topic-avatar.rose { background: var(--rose); }
.topic-avatar.dark {
  background: var(--surface-raised);
  color: var(--muted);
  border: 1px solid var(--rule);
}

.topic-info {
  flex: 1;
  min-width: 0;
}

.topic-title {
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 0.15rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.topic-meta {
  font-size: 0.75rem;
  color: var(--muted);
}

.topic-views {
  font-size: 0.7rem;
  color: var(--muted);
  white-space: nowrap;
}

/* Badge */
.badge {
  display: inline-block;
  padding: 0.15rem 0.55rem;
  border-radius: 20px;
  font-size: 0.65rem;
  font-weight: 600;
}

.badge-hot { background: var(--accent-soft); color: var(--accent); }
.badge-live { background: var(--green-soft); color: var(--green); }
.badge-amber { background: var(--amber-soft); color: var(--amber); }
.badge-rose { background: var(--rose-soft); color: var(--rose); }
.badge-sky { background: var(--sky-soft); color: var(--sky); }

/* ===== COMMUNITY RECOMMEND (Center) ===== */
.recommend-section {
  margin-bottom: 1.25rem;
}

.recommend-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.85rem;
}

.recommend-header .rec-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 0.95rem;
}

.recommend-header .rec-title .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent-glow);
}

.recommend-header .rec-more {
  font-size: 0.75rem;
  color: var(--muted);
  cursor: pointer;
  transition: color 0.2s;
}

.recommend-header .rec-more:hover {
  color: var(--accent);
}

.rec-post {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 14px;
  padding: 0;
  margin-bottom: 0.85rem;
  cursor: pointer;
  transition: all 0.25s ease;
  display: flex;
  overflow: hidden;
}

.rec-post:hover {
  background: var(--surface-raised);
  border-color: rgba(255,255,255,0.14);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.3);
}

.rec-post:last-child {
  margin-bottom: 0;
}

.rec-post-cover {
  width: 140px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  position: relative;
  overflow: hidden;
}

.rec-post-cover.grad-purple {
  background: linear-gradient(135deg, rgba(124,92,252,0.3) 0%, rgba(124,92,252,0.08) 100%);
}

.rec-post-cover.grad-green {
  background: linear-gradient(135deg, rgba(52,211,153,0.3) 0%, rgba(52,211,153,0.08) 100%);
}

.rec-post-cover.grad-amber {
  background: linear-gradient(135deg, rgba(251,191,36,0.3) 0%, rgba(251,191,36,0.08) 100%);
}

.rec-post-cover.grad-rose {
  background: linear-gradient(135deg, rgba(244,114,182,0.3) 0%, rgba(244,114,182,0.08) 100%);
}

.rec-post-cover .rec-pin {
  position: absolute;
  top: 8px;
  left: 8px;
  background: var(--accent);
  color: #fff;
  font-size: 0.6rem;
  font-weight: 700;
  padding: 0.15rem 0.5rem;
  border-radius: 8px;
  letter-spacing: 0.03em;
}

.rec-post-body {
  padding: 1rem 1.15rem;
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.rec-post-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.65rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
}

.rec-post-title {
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.rec-post-excerpt {
  font-size: 0.75rem;
  color: var(--muted);
  margin-bottom: 0.5rem;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.rec-post-footer {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.7rem;
  color: var(--muted);
}

.rec-post-footer .rec-author {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.rec-post-footer .rec-author-av {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.55rem;
  font-weight: 700;
  color: #fff;
}

.rec-post-footer span {
  display: flex;
  align-items: center;
  gap: 0.2rem;
}

/* ===== SIDEBAR: Member avatars ===== */
.member-stack {
  display: flex;
  align-items: center;
  gap: 0;
  margin: 0.75rem 0;
}

.member-stack .m-av {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid var(--bg);
  margin-left: -8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.6rem;
  font-weight: 700;
  color: #fff;
  transition: transform 0.2s;
}

.member-stack .m-av:hover {
  transform: translateY(-3px);
  z-index: 2;
}

.member-stack .m-av:first-child {
  margin-left: 0;
}

.member-stack .m-av-more {
  background: var(--surface-raised);
  color: var(--muted);
  border: 1px dashed var(--rule);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  margin-left: -8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.6rem;
}

/* Event card */
.event-card {
  background: var(--green-soft);
  border: 1px solid var(--green);
  border-radius: 12px;
  padding: 0.85rem;
  margin-top: 0.75rem;
}

.event-card .event-label {
  font-size: 0.7rem;
  color: var(--green);
  font-weight: 600;
  margin-bottom: 0.35rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.event-card .event-title {
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.event-card .event-meta {
  font-size: 0.7rem;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.event-card .event-signup {
  background: var(--green);
  color: #0D0D12;
  padding: 0.2rem 0.6rem;
  border-radius: 12px;
  font-size: 0.65rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}

.event-card .event-signup:hover {
  filter: brightness(1.2);
  transform: scale(1.05);
}

/* Circle list */
.circle-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.5rem 0;
  cursor: pointer;
  transition: opacity 0.2s;
}

.circle-item:hover {
  opacity: 0.8;
}

.circle-dot {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
}

.circle-dot.purple { background: var(--accent-soft); color: var(--accent); }
.circle-dot.green { background: var(--green-soft); color: var(--green); }
.circle-dot.amber { background: var(--amber-soft); color: var(--amber); }
.circle-dot.dark { background: var(--surface-raised); color: var(--muted); }

.circle-info .c-name {
  font-size: 0.8rem;
  font-weight: 500;
}

.circle-info .c-stats {
  font-size: 0.7rem;
  color: var(--muted);
}

/* Course card */
.course-card {
  padding: 0.65rem 0.75rem;
  border-radius: 10px;
  margin-bottom: 0.5rem;
  cursor: pointer;
  transition: background 0.2s;
}

.course-card:hover {
  background: var(--surface-raised);
}

.course-card.premium {
  background: var(--accent-soft);
}

.course-card .c-title {
  font-size: 0.8rem;
  font-weight: 500;
  margin-bottom: 0.15rem;
}

.course-card .c-meta {
  font-size: 0.7rem;
  color: var(--muted);
}

/* Resource card */
.resource-card {
  padding: 0.65rem 0.75rem;
  border-radius: 10px;
  margin-bottom: 0.5rem;
  cursor: pointer;
  transition: background 0.2s;
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
}

.resource-card:hover {
  background: var(--surface-raised);
}

.resource-card .r-tag {
  padding: 0.1rem 0.4rem;
  border-radius: 10px;
  font-size: 0.6rem;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 0.15rem;
}

.r-tag.demand { background: var(--accent-soft); color: var(--accent); }
.r-tag.supply { background: var(--green-soft); color: var(--green); }

.resource-card .r-info {
  flex: 1;
  min-width: 0;
}

.resource-card .r-title {
  font-size: 0.78rem;
  font-weight: 500;
  margin-bottom: 0.1rem;
}

.resource-card .r-meta {
  font-size: 0.7rem;
  color: var(--muted);
}

/* ===== CTA Banner ===== */
.cta-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--accent-soft);
  border: 1px solid var(--accent);
  border-radius: 14px;
  padding: 1.5rem 2rem;
  margin-bottom: 2rem;
  gap: 1.5rem;
  cursor: pointer;
  transition: all 0.3s;
}

.cta-banner:hover {
  background: rgba(124, 92, 252, 0.18);
  border-color: rgba(124, 92, 252, 0.6);
  box-shadow: 0 0 40px var(--accent-glow);
}

.cta-banner .cta-text h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 0.2rem;
}

.cta-banner .cta-text p {
  font-size: 0.9rem;
  color: var(--muted);
}

.cta-btn {
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 0.7rem 1.8rem;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
  flex-shrink: 0;
}

.cta-btn:hover {
  background: #9370FF;
  transform: scale(1.05);
  box-shadow: 0 4px 20px var(--accent-glow);
}

/* ===== FOOTER ===== */
.site-footer {
  text-align: center;
  padding: 1.5rem 0 2rem;
  border-top: 1px solid var(--rule);
  font-size: 0.75rem;
  color: var(--muted);
}

.site-footer a {
  color: var(--muted);
  text-decoration: none;
  margin: 0 0.5rem;
  transition: color 0.2s;
  cursor: pointer;
}

.site-footer a:hover {
  color: var(--accent);
}

/* ===== EMAIL SIGNUP POPUP ===== */
.popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(4px);
  z-index: 200;
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding: 40px 20px;
  overflow-y: auto;
  overflow-x: hidden;
}

.popup-overlay.show {
  display: flex;
}

.popup {
  background: #1a1a24;
  border: 1px solid var(--rule);
  border-radius: 16px;
  padding: 2rem;
  max-width: 400px;
  width: 100%;
  text-align: center;
  animation: popIn 0.3s ease;
  flex-shrink: 0;
}

@keyframes popIn {
  from {
    opacity: 0;
    transform: scale(0.9) translateY(10px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.popup h3 {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
}

.popup p {
  color: var(--muted);
  font-size: 0.85rem;
  margin-bottom: 1.25rem;
  line-height: 1.5;
}

.popup input {
  width: 100%;
  padding: 0.7rem 1rem;
  border-radius: 10px;
  border: 1px solid var(--rule);
  background: var(--surface);
  color: var(--ink);
  font-size: 0.9rem;
  outline: none;
  margin-bottom: 0.75rem;
  transition: border-color 0.2s;
}

.popup input:focus {
  border-color: var(--accent);
}

.popup .btn-submit {
  width: 100%;
  padding: 0.7rem;
  border-radius: 10px;
  border: none;
  background: var(--accent);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}

.popup .btn-submit:hover {
  background: #9370FF;
}

.popup .btn-close {
  margin-top: 0.75rem;
  background: none;
  border: none;
  color: var(--muted);
  font-size: 0.8rem;
  cursor: pointer;
  transition: color 0.2s;
}

.popup .btn-close:hover {
  color: var(--ink);
}

/* ===== TOAST ===== */
.toast {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  background: var(--green);
  color: #0D0D12;
  padding: 0.7rem 1.5rem;
  border-radius: 12px;
  font-size: 0.85rem;
  font-weight: 700;
  z-index: 300;
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}

.toast.show {
  opacity: 1;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1100px) {
  .three-col {
    grid-template-columns: 220px 1fr 220px;
    gap: 1rem;
  }
}

@media (max-width: 900px) {
  .three-col {
    grid-template-columns: 1fr 1fr;
  }
  .three-col > .col-center {
    grid-column: 1 / -1;
    order: -1;
  }
  .rec-post {
    flex-direction: column;
  }
  .rec-post-cover {
    width: 100%;
    height: 100px;
  }
  .nav-links {
    display: none;
  }
  .nav-search {
    width: 100px;
  }
  .nav-search:focus {
    width: 140px;
  }
  .cta-banner {
    flex-direction: column;
    text-align: center;
  }
  .header-strip {
    padding: 2rem 0 1.5rem;
  }
}

@media (max-width: 500px) {
  .three-col {
    grid-template-columns: 1fr;
  }
  .nav-search {
    display: none;
  }
}

/* ===== PAGE SYSTEM ===== */
.page-section {
  display: none;
}
.page-section.active {
  display: block;
}
.page-section > .page-wrap:first-of-type {
  padding-top: 6.25rem;
}
#page-home > .page-wrap:first-of-type {
  padding-top: 0;
}

/* ===== LOGIN POPUP ENHANCEMENTS ===== */
.account-type-switch {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
  background: var(--surface);
  padding: 0.3rem;
  border-radius: 10px;
  border: 1px solid var(--rule);
}
.account-type-btn {
  flex: 1;
  padding: 0.5rem 0;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  background: transparent;
  color: var(--muted);
  border: none;
  border-radius: 7px;
  transition: all 0.2s;
  text-align: center;
}
.account-type-btn.active {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 2px 8px var(--accent-glow);
}
.account-type-btn:hover {
  color: var(--ink);
}
.account-type-btn.active:hover {
  color: #fff;
}
.login-tabs {
  display: flex;
  margin-bottom: 1.25rem;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--rule);
}
.login-tab {
  flex: 1;
  padding: 0.55rem 0;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  background: var(--surface);
  color: var(--muted);
  border: none;
  transition: all 0.2s;
  text-align: center;
}
.login-tab.active {
  background: var(--accent-soft);
  color: var(--accent);
}
.login-tab:hover {
  color: var(--ink);
}
.login-form {
  display: none;
}
.login-form.active {
  display: block;
}
.login-form input {
  width: 100%;
  padding: 0.7rem 1rem;
  border-radius: 10px;
  border: 1px solid var(--rule);
  background: var(--surface);
  color: var(--ink);
  font-size: 0.9rem;
  outline: none;
  margin-bottom: 0.75rem;
  transition: border-color 0.2s;
}
.login-form input:focus {
  border-color: var(--accent);
}
.bind-hint {
  font-size: 0.72rem;
  color: var(--muted);
  margin-bottom: 0.75rem;
  cursor: pointer;
  transition: color 0.2s;
}
.bind-hint:hover {
  color: var(--accent);
}
.account-switch {
  font-size: 0.75rem;
  color: var(--muted);
  margin-top: 0.5rem;
  cursor: pointer;
  transition: color 0.2s;
  background: none;
  border: none;
}
.account-switch:hover {
  color: var(--accent);
}

/* ===== COMMUNITY PAGE (Weibo-style) ===== */
.community-page {
  padding: 1.5rem 0 2rem;
}
.community-layout {
  display: grid;
  grid-template-columns: 220px 1fr 260px;
  gap: 1.25rem;
  align-items: start;
}
.community-sidebar {
  position: sticky;
  top: 80px;
}
.community-feed {
  max-width: 640px;
  margin: 0 auto;
  width: 100%;
}

/* Composer */
.composer {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 14px;
  padding: 1.15rem;
  margin-bottom: 1rem;
}
.composer-header {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.75rem;
}
.composer-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}
.composer-user {
  font-size: 0.85rem;
  font-weight: 600;
}
.composer-textarea {
  width: 100%;
  min-height: 80px;
  background: var(--surface-raised);
  border: 1px solid var(--rule);
  border-radius: 10px;
  padding: 0.75rem;
  color: var(--ink);
  font-family: var(--font);
  font-size: 0.85rem;
  resize: vertical;
  outline: none;
  transition: border-color 0.2s;
}
.composer-textarea:focus {
  border-color: var(--accent);
}
.composer-textarea::placeholder {
  color: var(--muted);
}
.composer-circle-select {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.6rem;
  padding: 0.5rem 0.75rem;
  background: var(--surface-raised);
  border-radius: 10px;
}
.composer-circle-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--muted);
  white-space: nowrap;
}
.composer-circle-selector {
  flex: 1;
  padding: 0.35rem 0.5rem;
  font-size: 0.78rem;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 8px;
  cursor: pointer;
  outline: none;
  transition: border-color 0.2s;
}
.composer-circle-selector:focus {
  border-color: var(--accent);
}
.composer-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 0.75rem;
  gap: 0.5rem;
}
.composer-actions {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}
.composer-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.4rem 0.75rem;
  border-radius: 18px;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid var(--rule);
  background: var(--surface-raised);
  color: var(--muted);
  transition: all 0.2s;
  white-space: nowrap;
}
.composer-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-soft);
}
.composer-btn.image-btn { color: var(--amber); }
.composer-btn.image-btn:hover { border-color: var(--amber); background: var(--amber-soft); }
.composer-btn.video-btn { color: var(--rose); }
.composer-btn.video-btn:hover { border-color: var(--rose); background: var(--rose-soft); }
.composer-submit {
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 0.45rem 1.5rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}
.composer-submit:hover {
  background: #9370FF;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px var(--accent-glow);
}
.composer-submit:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}
.composer-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.75rem;
}
.composer-preview-item {
  width: 80px;
  height: 80px;
  border-radius: 8px;
  overflow: hidden;
  position: relative;
  background: var(--surface-raised);
  border: 1px solid var(--rule);
}
.composer-preview-item img,
.composer-preview-item video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.composer-preview-item .remove-media {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(0,0,0,0.7);
  color: #fff;
  border: none;
  font-size: 0.6rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}
.composer-preview-item .video-duration {
  position: absolute;
  bottom: 2px;
  right: 2px;
  background: rgba(0,0,0,0.7);
  color: #fff;
  font-size: 0.6rem;
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
}

/* Feed Posts */
.feed-post {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 14px;
  padding: 1.15rem;
  margin-bottom: 0.85rem;
  transition: all 0.25s ease;
  cursor: pointer;
}
.feed-post:hover {
  background: var(--surface-raised);
  border-color: rgba(255,255,255,0.14);
}
.feed-post-header {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.65rem;
}
.feed-post-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  color: #fff;
}
.feed-post-avatar.clickable,
.feed-post-name.clickable {
  cursor: pointer;
  transition: opacity 0.2s;
}
.feed-post-avatar.clickable:hover,
.feed-post-name.clickable:hover {
  opacity: 0.8;
}
.feed-post-name.clickable:hover {
  text-decoration: underline;
}
.feed-post-user {
  flex: 1;
  min-width: 0;
}
.feed-post-name {
  font-size: 0.85rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}
.feed-post-time {
  font-size: 0.7rem;
  color: var(--muted);
}
.feed-post-content {
  font-size: 0.88rem;
  line-height: 1.7;
  margin-bottom: 0.75rem;
  word-break: break-word;
}
.feed-post-media {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.4rem;
  margin-bottom: 0.75rem;
}
.feed-post-media.single {
  grid-template-columns: 1fr;
  max-width: 400px;
}
.feed-post-media img {
  width: 100%;
  border-radius: 8px;
  object-fit: cover;
  aspect-ratio: 1;
  cursor: pointer;
  transition: opacity 0.2s;
}
.feed-post-media img:hover {
  opacity: 0.85;
}
.feed-post-media video {
  width: 100%;
  border-radius: 8px;
  max-height: 300px;
  background: #000;
}
.feed-post-actions {
  display: flex;
  gap: 1.5rem;
  font-size: 0.78rem;
  color: var(--muted);
}
.feed-post-actions span {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  cursor: pointer;
  transition: color 0.2s;
}
.feed-post-actions span:hover {
  color: var(--ink);
}
.feed-post-actions .action-like:hover {
  color: var(--rose);
}
.feed-post-actions .action-comment:hover {
  color: var(--accent);
}
.feed-post-actions .action-share:hover {
  color: var(--green);
}

/* Community Sidebar */
.community-topics {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 14px;
  padding: 1rem;
  margin-bottom: 1rem;
}
.community-topics .topic-tag {
  display: inline-block;
  padding: 0.25rem 0.65rem;
  border-radius: 14px;
  font-size: 0.72rem;
  cursor: pointer;
  margin: 0.2rem;
  transition: all 0.2s;
  background: var(--surface-raised);
  color: var(--muted);
  border: 1px solid var(--rule);
}
.community-topics .topic-tag:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.community-topics .topic-tag.hot {
  background: var(--accent-soft);
  color: var(--accent);
  border-color: var(--accent);
}
.community-topics .topic-tag.active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  font-weight: 600;
  box-shadow: 0 2px 8px var(--accent-glow);
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 3rem 1rem;
}
.empty-state .empty-icon {
  font-size: 3rem;
  margin-bottom: 0.75rem;
  opacity: 0.5;
}
.empty-state .empty-text {
  color: var(--muted);
  font-size: 0.9rem;
}

/* ===== CIRCLES PAGE ===== */
.circles-page {
  padding: 1.5rem 0 3rem;
}
.circles-page-header {
  margin-bottom: 1.5rem;
}
.circles-page-header h2 {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 0.5rem 0;
}
.circles-page-header > p {
  color: var(--muted);
  margin: 0 0 0.75rem 0;
  font-size: 0.9rem;
}
.circles-official-notice {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 0.85rem;
  background: var(--green-soft);
  border: 1px solid var(--green);
  border-radius: 10px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--green);
}
.circles-official-notice .notice-icon {
  font-size: 0.9rem;
}
.circles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 1rem;
}
.circle-card {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 14px;
  padding: 1.25rem;
  transition: all 0.2s;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.circle-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}
.circle-card-header {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
}
.circle-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  flex-shrink: 0;
}
.circle-icon.purple { background: var(--accent-soft); }
.circle-icon.blue { background: var(--sky-soft); }
.circle-icon.green { background: var(--green-soft); }
.circle-icon.amber { background: var(--amber-soft); }
.circle-icon.rose { background: var(--rose-soft); }
.circle-icon.sky { background: var(--sky-soft); }
.circle-info {
  flex: 1;
  min-width: 0;
}
.circle-name-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.3rem;
  flex-wrap: wrap;
}
.circle-name {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ink);
  margin: 0;
}
.circle-official-badge {
  font-size: 0.62rem;
  font-weight: 700;
  padding: 0.15rem 0.45rem;
  background: linear-gradient(135deg, var(--green), var(--green-2));
  color: #fff;
  border-radius: 6px;
  white-space: nowrap;
}
.circle-desc {
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.5;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.circle-stats {
  display: flex;
  gap: 1.5rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--rule);
}
.circle-stat {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}
.circle-stat-value {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ink);
}
.circle-stat-label {
  font-size: 0.7rem;
  color: var(--muted);
}
.circle-join-btn {
  width: 100%;
  padding: 0.6rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s;
}
.circle-join-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px var(--accent-glow);
}
.circle-join-btn.joined {
  background: var(--surface-raised);
  color: var(--green);
  border: 1px solid var(--green);
}
.circle-join-btn.joined:hover {
  background: var(--green-soft);
  box-shadow: none;
}

@media (max-width: 768px) {
  .circles-grid {
    grid-template-columns: 1fr;
  }
  .circles-page-header h2 {
    font-size: 1.3rem;
  }
}

/* ===== ACTIVITY PAGE ===== */
.activity-page {
  padding: 1.5rem 0 2rem;
}
.activity-page-header {
  margin-bottom: 1.5rem;
}
.activity-page-header h2 {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 0.35rem;
}
.activity-page-header p {
  color: var(--muted);
  font-size: 0.85rem;
}
.activity-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 1rem;
}
.activity-card {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 14px;
  padding: 1.25rem;
  cursor: pointer;
  transition: all 0.25s ease;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.activity-card:hover {
  background: var(--surface-raised);
  border-color: rgba(255,255,255,0.14);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.3);
}
.activity-card-type {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.activity-card-type.online { color: var(--sky); }
.activity-card-type.offline { color: var(--green); }
.activity-card-type .type-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  display: inline-block;
}
.activity-card-type.online .type-dot { background: var(--sky); }
.activity-card-type.offline .type-dot { background: var(--green); }
.activity-card-title {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.4;
}
.activity-card-desc {
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.activity-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--muted);
  margin-top: auto;
}
.activity-card-signup {
  background: var(--green);
  color: #0D0D12;
  padding: 0.3rem 0.8rem;
  border-radius: 14px;
  font-size: 0.7rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
}
.activity-card-signup:hover {
  filter: brightness(1.2);
  transform: scale(1.05);
}
.activity-card-signup.full {
  background: var(--surface-raised);
  color: var(--muted);
  cursor: not-allowed;
}
.activity-card-signup.full:hover {
  filter: none;
  transform: none;
}

/* ===== RESPONSIVE ADDITIONS ===== */
@media (max-width: 900px) {
  .community-layout {
    grid-template-columns: 1fr;
  }
  .community-sidebar {
    display: none;
  }
  .community-feed {
    max-width: 100%;
  }
  .activity-grid {
    grid-template-columns: 1fr;
  }
}

/* ===== LIGHT THEME ===== */
[data-theme="light"] {
  --bg: #F5F5F7;
  --surface: rgba(0,0,0,0.03);
  --surface-muted: rgba(0,0,0,0.01);
  --surface-raised: rgba(0,0,0,0.05);
  --ink: #1A1A2E;
  --muted: #6B6B80;
  --rule: rgba(0,0,0,0.1);
  --accent: #6C4FE0;
  --accent-2: #8B5CF6;
  --accent-soft: rgba(108, 79, 224, 0.1);
  --accent-glow: rgba(108, 79, 224, 0.2);
  --green: #059669;
  --green-2: #10B981;
  --green-soft: rgba(5, 150, 105, 0.1);
  --amber: #D97706;
  --amber-soft: rgba(217, 119, 6, 0.1);
  --rose: #DB2777;
  --rose-soft: rgba(219, 39, 119, 0.1);
  --sky: #0284C7;
  --sky-soft: rgba(2, 132, 199, 0.1);
}

[data-theme="light"] .nav-bar {
  background: rgba(245,245,247,0.88);
}

[data-theme="light"] body::before {
  background: radial-gradient(ellipse at center, rgba(108,79,224,0.06) 0%, transparent 70%);
}

[data-theme="light"] body::after {
  background: radial-gradient(ellipse at center, rgba(5,150,105,0.04) 0%, transparent 70%);
}

[data-theme="light"] .popup {
  background: #FFFFFF;
}

[data-theme="light"] .event-card .event-signup {
  color: #fff;
}

[data-theme="light"] .activity-card-signup {
  color: #fff;
}

[data-theme="light"] .toast {
  color: #fff;
}

[data-theme="light"] .btn-join {
  color: #fff;
}

[data-theme="light"] .composer-submit {
  color: #fff;
}

[data-theme="light"] .cta-btn {
  color: #fff;
}

/* System-following theme */
@media (prefers-color-scheme: light) {
  [data-theme="system"] {
    --bg: #F5F5F7;
    --surface: rgba(0,0,0,0.03);
    --surface-muted: rgba(0,0,0,0.01);
    --surface-raised: rgba(0,0,0,0.05);
    --ink: #1A1A2E;
    --muted: #6B6B80;
    --rule: rgba(0,0,0,0.1);
    --accent: #6C4FE0;
    --accent-2: #8B5CF6;
    --accent-soft: rgba(108, 79, 224, 0.1);
    --accent-glow: rgba(108, 79, 224, 0.2);
    --green: #059669;
    --green-2: #10B981;
    --green-soft: rgba(5, 150, 105, 0.1);
    --amber: #D97706;
    --amber-soft: rgba(217, 119, 6, 0.1);
    --rose: #DB2777;
    --rose-soft: rgba(219, 39, 119, 0.1);
    --sky: #0284C7;
    --sky-soft: rgba(2, 132, 199, 0.1);
  }
  [data-theme="system"] .nav-bar {
    background: rgba(245,245,247,0.88);
  }
  [data-theme="system"] body::before {
    background: radial-gradient(ellipse at center, rgba(108,79,224,0.06) 0%, transparent 70%);
  }
  [data-theme="system"] body::after {
    background: radial-gradient(ellipse at center, rgba(5,150,105,0.04) 0%, transparent 70%);
  }
  [data-theme="system"] .popup { background: #FFFFFF; }
  [data-theme="system"] .event-card .event-signup,
  [data-theme="system"] .activity-card-signup,
  [data-theme="system"] .toast,
  [data-theme="system"] .btn-join,
  [data-theme="system"] .composer-submit,
  [data-theme="system"] .cta-btn { color: #fff; }
}

/* Theme transition */
body, .nav-bar, .popup, .card, .sidebar-card, .feed-post, .activity-card,
.composer, .event-card, .course-card, .resource-card, .cta-banner,
body::before, body::after {
  transition: background-color 0.4s ease, border-color 0.4s ease, color 0.4s ease;
}

/* ===== THEME SETTINGS TOGGLE ===== */
.theme-btn {
  background: var(--surface-raised);
  border: 1px solid var(--rule);
  border-radius: 50%;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.1rem;
  color: var(--muted);
  transition: all 0.2s;
  padding: 0;
  flex-shrink: 0;
}
.theme-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-soft);
}
.theme-btn:active {
  transform: scale(0.92);
}
[data-theme="dark"] .theme-btn {
  box-shadow: 0 0 0 2px rgba(124, 92, 252, 0.4), 0 0 12px rgba(124, 92, 252, 0.3);
  border-color: var(--accent);
}

/* ===== RESOURCE SECTION RESTRUCTURE ===== */
.resource-sub-section {
  margin-bottom: 0.75rem;
}
.resource-sub-section:last-child {
  margin-bottom: 0;
}
.resource-sub-label {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.5rem;
  padding-left: 0.25rem;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}
.resource-sub-label .sub-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  display: inline-block;
}
.resource-sub-label .sub-dot.demand { background: var(--accent); }
.resource-sub-label .sub-dot.project { background: var(--green); }
.r-tag.project { background: var(--amber-soft); color: var(--amber); }

/* ===== COURSE SECTION REDESIGN ===== */
.course-tabs {
  display: flex;
  gap: 0.35rem;
  margin-bottom: 0.75rem;
}
.course-tab {
  flex: 1;
  padding: 0.35rem 0;
  border-radius: 8px;
  font-size: 0.7rem;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  border: 1px solid var(--rule);
  background: var(--surface);
  color: var(--muted);
  transition: all 0.2s;
}
.course-tab.active {
  background: var(--accent-soft);
  color: var(--accent);
  border-color: var(--accent);
}
.course-tab:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.course-sub-label {
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.35rem;
  padding-left: 0.25rem;
}
.course-card.live {
  background: var(--rose-soft);
}
.course-card .c-badge {
  display: inline-block;
  padding: 0.1rem 0.4rem;
  border-radius: 8px;
  font-size: 0.6rem;
  font-weight: 700;
  margin-left: 0.35rem;
}
.c-badge.video { background: var(--sky-soft); color: var(--sky); }
.c-badge.live { background: var(--rose-soft); color: var(--rose); }
.c-badge.free { background: var(--green-soft); color: var(--green); }

/* ===== USER PROFILE PAGE ===== */
.profile-page {
  padding: 0 0 3rem;
}
.profile-header {
  margin-bottom: 1.5rem;
}
.profile-hero {
  background: var(--surface);
  border-radius: 16px;
  padding: 2rem;
  border: 1px solid var(--rule);
  display: flex;
  gap: 2rem;
  align-items: center;
  margin-top: 0.75rem;
}
.profile-avatar-xl {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  font-size: 3rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 20px var(--accent-glow);
}
.profile-hero-info {
  flex: 1;
}
.profile-name-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.4rem;
}
.profile-name-row h2 {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--ink);
  margin: 0;
}
.profile-type-badge {
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.2rem 0.6rem;
  border-radius: 8px;
}
.profile-type-badge.badge-personal {
  background: var(--accent-soft);
  color: var(--accent);
}
.profile-type-badge.badge-enterprise {
  background: var(--green-soft);
  color: var(--green);
}
.profile-member-row {
  margin-bottom: 0.6rem;
}
.profile-member-badge {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.7rem;
  border-radius: 10px;
  display: inline-block;
}
.profile-member-badge.badge-personal {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
}
.profile-member-badge.badge-personal.badge-p1 {
  background: linear-gradient(135deg, #6366f1, #818cf8);
  color: #fff;
}
.profile-member-badge.badge-personal.badge-p2 {
  background: linear-gradient(135deg, var(--accent), #a78bfa);
  color: #fff;
}
.profile-member-badge.badge-personal.badge-p3 {
  background: linear-gradient(135deg, #f59e0b, #fbbf24);
  color: #fff;
}
.profile-member-badge.badge-enterprise {
  background: linear-gradient(135deg, var(--green), var(--green-2));
  color: #fff;
}
.profile-gender-row {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.6rem;
}
.profile-gender-icon {
  font-size: 1rem;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--surface-raised);
}
.profile-gender-icon.male {
  color: #3b82f6;
  background: #dbeafe;
}
.profile-gender-icon.female {
  color: #ec4899;
  background: #fce7f3;
}
.profile-gender-icon.other {
  color: #8b5cf6;
  background: #ede9fe;
}
.profile-gender-text {
  font-size: 0.8rem;
  color: var(--muted);
}
.profile-bio {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.6;
  margin: 0 0 1rem 0;
  max-width: 600px;
}
.profile-stats {
  display: flex;
  gap: 2rem;
}
.profile-stat {
  text-align: left;
  cursor: default;
}
.profile-stat#profileStatFollowing,
.profile-stat#profileStatFollowers {
  cursor: pointer;
  transition: opacity 0.2s;
}
.profile-stat#profileStatFollowing:hover,
.profile-stat#profileStatFollowers:hover {
  opacity: 0.7;
}
.profile-stat.disabled {
  cursor: not-allowed;
  opacity: 0.5;
}
.profile-stat-value {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--ink);
}
.profile-stat-label {
  font-size: 0.78rem;
  color: var(--muted);
  margin-top: 0.1rem;
}
.profile-circles-section {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--rule);
}
.profile-circles-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}
.profile-circles-header h4 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink);
  margin: 0;
}
.profile-circles-count {
  font-size: 0.78rem;
  color: var(--muted);
  font-weight: 500;
}
.profile-circles-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.profile-circle-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.75rem;
  background: var(--surface-raised);
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.2s;
  border: 1px solid var(--rule);
}
.profile-circle-item:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
}
.profile-circle-icon {
  font-size: 1rem;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  flex-shrink: 0;
}
.profile-circle-name {
  font-size: 0.8rem;
  color: var(--ink);
  font-weight: 500;
  white-space: nowrap;
}
.profile-tabs {
  display: flex;
  gap: 0.25rem;
  margin-bottom: 1.25rem;
  border-bottom: 2px solid var(--rule);
  padding-bottom: 0;
}
.profile-tab {
  padding: 0.75rem 1.5rem;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  background: transparent;
  color: var(--muted);
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: all 0.2s;
}
.profile-tab:hover {
  color: var(--ink);
}
.profile-tab.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}
.profile-tab-content {
  display: none;
}
.profile-tab-content.active {
  display: block;
}

/* Profile Post Cards */
.profile-posts {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1rem;
}
.profile-post-card {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 12px;
  padding: 1.25rem;
  cursor: pointer;
  transition: all 0.2s;
}
.profile-post-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}
.profile-post-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 0.2rem 0.6rem;
  border-radius: 6px;
  margin-bottom: 0.6rem;
}
.profile-post-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 0.5rem 0;
  line-height: 1.4;
}
.profile-post-content {
  font-size: 0.82rem;
  color: var(--muted);
  margin: 0 0 0.75rem 0;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.profile-post-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.profile-post-time {
  font-size: 0.72rem;
  color: var(--muted);
}
.profile-post-stats {
  display: flex;
  gap: 0.75rem;
  font-size: 0.75rem;
  color: var(--muted);
}

/* Profile Activity Cards */
.profile-activities {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.profile-activity-card {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 12px;
  padding: 1rem 1.25rem;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  gap: 1.5rem;
  align-items: center;
}
.profile-activity-card:hover {
  border-color: var(--accent);
}
.pa-left {
  text-align: center;
  min-width: 80px;
}
.pa-type {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
  margin-bottom: 0.3rem;
  display: inline-block;
}
.pa-time {
  font-size: 0.72rem;
  color: var(--muted);
}
.pa-main {
  flex: 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.pa-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink);
  margin: 0;
}
.pa-status {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.6rem;
  border-radius: 8px;
}
.pa-status.status-已参与 { background: var(--accent-soft); color: var(--accent); }
.pa-status.status-已完成 { background: var(--green-soft); color: var(--green); }
.pa-status.status-获奖 { background: var(--amber-soft); color: var(--amber); }

/* Profile Resource Cards */
.profile-resources {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 1rem;
}
.profile-resource-card {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 12px;
  padding: 1.25rem;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  gap: 1rem;
}
.profile-resource-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}
.pr-type {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  font-size: 0.7rem;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  padding: 0.5rem 0.3rem;
  border-radius: 8px;
  letter-spacing: 0.1em;
  flex-shrink: 0;
}
.pr-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.pr-name {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink);
  margin: 0;
}
.pr-desc {
  font-size: 0.8rem;
  color: var(--muted);
  margin: 0;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.pr-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  padding-top: 0.5rem;
}
.pr-time {
  font-size: 0.72rem;
  color: var(--muted);
}
.pr-status {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
}
.pr-status.status-success { background: var(--green-soft); color: var(--green); }
.pr-status.status-pending { background: var(--amber-soft); color: var(--amber); }

@media (max-width: 768px) {
  .profile-hero {
    flex-direction: column;
    text-align: center;
    padding: 1.5rem 1rem;
    gap: 1rem;
  }
  .profile-name-row {
    justify-content: center;
    flex-wrap: wrap;
  }
  .profile-bio {
    text-align: center;
  }
  .profile-stats {
    justify-content: center;
  }
  .profile-posts {
    grid-template-columns: 1fr;
  }
  .profile-resources {
    grid-template-columns: 1fr;
  }
  .profile-tabs {
    overflow-x: auto;
  }
  .profile-tab {
    white-space: nowrap;
    padding: 0.6rem 1rem;
    font-size: 0.82rem;
  }
}

/* ===== PERSONAL CENTER PAGE ===== */
.personal-page {
  padding: 1.5rem 0 2rem;
}
.personal-header {
  margin-bottom: 1.5rem;
}
.personal-header h2 {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 0.25rem;
}
.personal-header p {
  color: var(--muted);
  font-size: 0.85rem;
}
.personal-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 1.25rem;
  align-items: start;
}
.personal-sidebar {
  position: sticky;
  top: 80px;
}
.personal-nav {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 14px;
  overflow: hidden;
}
.personal-nav-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.75rem 1rem;
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
  color: var(--muted);
  transition: all 0.2s;
  border: none;
  background: none;
  width: 100%;
  text-align: left;
  border-bottom: 1px solid var(--rule);
}
.personal-nav-item:last-child {
  border-bottom: none;
}
.personal-nav-item:hover {
  background: var(--surface-raised);
  color: var(--ink);
}
.personal-nav-item.active {
  background: var(--accent-soft);
  color: var(--accent);
}
.personal-nav-item .nav-icon {
  font-size: 1rem;
}
.personal-content {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 14px;
  padding: 1.5rem;
}
.personal-section {
  display: none;
}
.personal-section.active {
  display: block;
}
.personal-section h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--rule);
}
.profile-avatar-area {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
}
.profile-avatar-large {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}
.profile-avatar-info {
  font-size: 0.75rem;
  color: var(--muted);
}
.profile-avatar-info .btn-change-avatar {
  background: var(--surface-raised);
  border: 1px solid var(--rule);
  color: var(--accent);
  padding: 0.3rem 0.75rem;
  border-radius: 14px;
  font-size: 0.7rem;
  cursor: pointer;
  margin-top: 0.35rem;
  transition: all 0.2s;
}
.profile-avatar-info .btn-change-avatar:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
}
.form-group {
  margin-bottom: 1rem;
}
.form-group label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
  color: var(--ink);
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.6rem 0.85rem;
  border-radius: 10px;
  border: 1px solid var(--rule);
  background: var(--surface-raised);
  color: var(--ink);
  font-size: 0.85rem;
  font-family: var(--font);
  outline: none;
  transition: border-color 0.2s;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--accent);
}
.form-group textarea {
  resize: vertical;
  min-height: 70px;
}
.form-group select {
  appearance: none;
  cursor: pointer;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}
.btn-save {
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 0.6rem 1.5rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}
.btn-save:hover {
  background: #9370FF;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px var(--accent-glow);
}

/* ===== CITY PARTNER PAGE ===== */
.partner-page {
  padding: 1.5rem 0 2rem;
}
.partner-hero {
  text-align: center;
  margin-bottom: 2rem;
  padding: 2rem 1rem;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 16px;
}
.partner-hero h2 {
  font-size: 1.6rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}
.partner-hero h2 span {
  color: var(--accent);
}
.partner-hero p {
  color: var(--muted);
  font-size: 0.9rem;
  max-width: 600px;
  margin: 0 auto 1.25rem;
  line-height: 1.6;
}
.partner-hero .btn-apply {
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 0.65rem 2rem;
  border-radius: 22px;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}
.partner-hero .btn-apply:hover {
  background: #9370FF;
  transform: translateY(-1px);
  box-shadow: 0 4px 20px var(--accent-glow);
}
.partner-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 2rem;
}
.partner-feature-card {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 14px;
  padding: 1.5rem;
  text-align: center;
  transition: all 0.25s ease;
  cursor: pointer;
}
.partner-feature-card:hover {
  background: var(--surface-raised);
  border-color: rgba(255,255,255,0.14);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.3);
}
.partner-feature-icon {
  font-size: 2rem;
  margin-bottom: 0.75rem;
}
.partner-feature-card h4 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}
.partner-feature-card p {
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.5;
}
.partner-benefits {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 14px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}
.partner-benefits h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 1rem;
}
.partner-benefits-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}
.partner-benefit-item {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  padding: 0.65rem;
  border-radius: 10px;
  background: var(--surface-raised);
}
.partner-benefit-item .benefit-icon {
  font-size: 1.1rem;
  flex-shrink: 0;
  margin-top: 0.1rem;
}
.partner-benefit-item .benefit-text strong {
  display: block;
  font-size: 0.8rem;
  margin-bottom: 0.15rem;
}
.partner-benefit-item .benefit-text span {
  font-size: 0.72rem;
  color: var(--muted);
}

/* ===== ACCESS CONTROL ===== */
.auth-overlay {
  display: none;
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(8px);
  border-radius: 14px;
  z-index: 10;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 0.75rem;
}
.auth-overlay.show {
  display: flex;
}
.auth-overlay .lock-icon {
  font-size: 2.5rem;
  opacity: 0.7;
}
.auth-overlay .lock-text {
  font-size: 0.85rem;
  color: var(--ink);
  font-weight: 600;
}
.auth-overlay .lock-btn {
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 0.5rem 1.25rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}
.auth-overlay .lock-btn:hover {
  background: #9370FF;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px var(--accent-glow);
}
.position-relative {
  position: relative;
}

/* ===== USER MENU (Logged In) ===== */
.user-menu {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}
.nav-user-info {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.5rem;
  margin-right: 0.25rem;
}
.nav-profile-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--surface-raised);
  border: 1px solid var(--rule);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  flex-shrink: 0;
}
.nav-profile-btn:hover {
  background: var(--accent-soft);
  border-color: var(--accent);
  transform: scale(1.1);
}
.nav-profile-icon {
  font-size: 0.85rem;
  line-height: 1;
}
.nav-user-text {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.15rem;
}
.nav-username {
  font-size: 0.82rem;
  color: var(--ink);
  font-weight: 600;
  line-height: 1.2;
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.nav-member-badge {
  font-size: 0.65rem;
  font-weight: 600;
  padding: 0.1rem 0.5rem;
  border-radius: 8px;
  line-height: 1.3;
  display: inline-block;
}
.nav-member-badge.badge-personal {
  background: var(--accent-soft);
  color: var(--accent);
}
.nav-member-badge.badge-personal.badge-p1 {
  background: linear-gradient(135deg, #e0e7ff, #c7d2fe);
  color: #4f46e5;
}
.nav-member-badge.badge-personal.badge-p2 {
  background: linear-gradient(135deg, var(--accent-soft), #ddd6fe);
  color: var(--accent);
}
.nav-member-badge.badge-personal.badge-p3 {
  background: linear-gradient(135deg, #fef3c7, #fde68a);
  color: #b45309;
}
.nav-member-badge.badge-enterprise {
  background: var(--green-soft);
  color: var(--green);
}
.user-avatar-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  border: none;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  flex-shrink: 0;
}
.user-avatar-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 0 12px var(--accent-glow);
}
.user-dropdown {
  position: absolute;
  top: 110%;
  right: 0;
  background: var(--bg);
  border: 1px solid var(--rule);
  border-radius: 12px;
  padding: 0.5rem;
  min-width: 160px;
  display: none;
  z-index: 200;
  box-shadow: 0 8px 30px rgba(0,0,0,0.4);
}
.user-dropdown.show {
  display: block;
}
.user-dropdown-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.7rem 1rem;
  min-height: 48px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.85rem;
  color: var(--muted);
  transition: all 0.2s;
  border: none;
  background: none;
  width: 100%;
  text-align: left;
}
.user-dropdown-item:hover {
  background: var(--surface-raised);
  color: var(--ink);
}
.user-dropdown-item.logout {
  color: var(--rose);
}
.user-dropdown-item.logout:hover {
  background: var(--rose-soft);
}

/* ===== TEST ACCOUNT HINT ===== */
.test-hint {
  font-size: 0.68rem;
  color: var(--amber);
  margin-top: 0.5rem;
  padding: 0.4rem 0.6rem;
  background: var(--amber-soft);
  border-radius: 8px;
  border: 1px solid var(--amber);
  text-align: center;
  line-height: 1.4;
}

/* ===== ENTERPRISE LOGIN ===== */
.enterprise-login-notice {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 0.75rem;
  background: var(--green-soft);
  border: 1px solid var(--green);
  border-radius: 10px;
  margin-bottom: 1rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--green);
}
.enterprise-login-notice .notice-icon {
  font-size: 1rem;
}
.enterprise-test-card {
  margin-top: 1rem;
  padding: 0.85rem;
  background: var(--surface-raised);
  border: 1px solid var(--rule);
  border-radius: 12px;
}
.test-card-title {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 0.6rem;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}
.test-card-title::before {
  content: '🔑';
  font-size: 0.8rem;
}
.test-card-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.3rem 0;
  font-size: 0.75rem;
}
.test-card-label {
  color: var(--muted);
  font-weight: 500;
}
.test-card-value {
  color: var(--ink);
  font-weight: 600;
  font-family: var(--font-mono);
  background: var(--surface);
  padding: 0.15rem 0.5rem;
  border-radius: 6px;
  border: 1px solid var(--rule);
}
.test-card-fill {
  width: 100%;
  margin-top: 0.6rem;
  padding: 0.45rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(135deg, var(--green), var(--green-2));
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
}
.test-card-fill:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(52, 211, 153, 0.3);
}

/* ===== COURSE PANEL DISPLAY FIX ===== */
.course-panel {
  display: none;
}
.course-panel.active {
  display: block;
}

/* ===== COMMENT MODAL ===== */
.comment-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(4px);
  z-index: 250;
  display: none;
  align-items: center;
  justify-content: center;
}
.comment-overlay.show {
  display: flex;
}
.comment-modal {
  background: var(--bg);
  border: 1px solid var(--rule);
  border-radius: 16px;
  padding: 1.5rem;
  max-width: 520px;
  width: 92%;
  max-height: 80vh;
  overflow-y: auto;
  animation: popIn 0.3s ease;
}
.comment-modal h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--rule);
}
.comment-list {
  margin-bottom: 1rem;
  max-height: 300px;
  overflow-y: auto;
}
.comment-item {
  display: flex;
  gap: 0.6rem;
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--rule);
}
.comment-item:last-child {
  border-bottom: none;
}
.comment-item-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  font-weight: 700;
  color: #fff;
}
.comment-item-body {
  flex: 1;
  min-width: 0;
}
.comment-item-name {
  font-size: 0.78rem;
  font-weight: 600;
  margin-bottom: 0.15rem;
}
.comment-item-text {
  font-size: 0.8rem;
  line-height: 1.5;
  word-break: break-word;
}
.comment-item-time {
  font-size: 0.65rem;
  color: var(--muted);
  margin-top: 0.2rem;
}
.comment-item-media {
  margin-top: 0.4rem;
}
.comment-item-media img {
  max-width: 120px;
  border-radius: 8px;
  cursor: pointer;
}
.comment-input-area {
  display: flex;
  gap: 0.5rem;
  align-items: flex-end;
}
.comment-input {
  flex: 1;
  padding: 0.55rem 0.75rem;
  border-radius: 10px;
  border: 1px solid var(--rule);
  background: var(--surface-raised);
  color: var(--ink);
  font-size: 0.82rem;
  font-family: var(--font);
  outline: none;
  resize: none;
  min-height: 40px;
  max-height: 100px;
  transition: border-color 0.2s;
}
.comment-input:focus {
  border-color: var(--accent);
}
.comment-toolbar {
  display: flex;
  gap: 0.4rem;
  margin-top: 0.5rem;
  align-items: center;
}
.comment-img-btn {
  background: var(--surface-raised);
  border: 1px solid var(--rule);
  border-radius: 14px;
  padding: 0.3rem 0.7rem;
  font-size: 0.7rem;
  cursor: pointer;
  color: var(--amber);
  transition: all 0.2s;
}
.comment-img-btn:hover {
  border-color: var(--amber);
  background: var(--amber-soft);
}
.comment-submit-btn {
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 0.4rem 1rem;
  border-radius: 16px;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}
.comment-submit-btn:hover {
  background: #9370FF;
}
.comment-preview-img {
  max-width: 80px;
  border-radius: 6px;
  margin-right: 0.5rem;
  vertical-align: middle;
}
.comment-close {
  float: right;
  background: none;
  border: none;
  color: var(--muted);
  font-size: 1.2rem;
  cursor: pointer;
  padding: 0;
  line-height: 1;
}
.comment-close:hover {
  color: var(--ink);
}

/* ===== SHARE MODAL ===== */
.share-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(4px);
  z-index: 250;
  display: none;
  align-items: center;
  justify-content: center;
}
.share-overlay.show {
  display: flex;
}
.share-modal {
  background: var(--bg);
  border: 1px solid var(--rule);
  border-radius: 16px;
  padding: 1.5rem;
  max-width: 380px;
  width: 90%;
  text-align: center;
  animation: popIn 0.3s ease;
}
.share-modal h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 1rem;
}
.share-options {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
  margin-bottom: 1rem;
}
.share-option {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 10px;
  transition: background 0.2s;
  background: none;
  border: none;
  color: var(--ink);
}
.share-option:hover {
  background: var(--surface-raised);
}
.share-option .share-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}
.share-option .share-icon.wechat { background: var(--green-soft); }
.share-option .share-icon.weibo { background: var(--rose-soft); }
.share-option .share-icon.qq { background: var(--sky-soft); }
.share-option .share-icon.link { background: var(--accent-soft); }
.share-option .share-label {
  font-size: 0.65rem;
  color: var(--muted);
}
.share-link-row {
  display: flex;
  gap: 0.4rem;
}
.share-link-input {
  flex: 1;
  padding: 0.5rem 0.75rem;
  border-radius: 10px;
  border: 1px solid var(--rule);
  background: var(--surface-raised);
  color: var(--muted);
  font-size: 0.7rem;
  font-family: var(--font-mono);
  outline: none;
}
.share-copy-btn {
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 10px;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}
.share-copy-btn:hover {
  background: #9370FF;
}
.share-close {
  margin-top: 0.75rem;
  background: none;
  border: none;
  color: var(--muted);
  font-size: 0.8rem;
  cursor: pointer;
}
.share-close:hover {
  color: var(--ink);
}

/* ===== COMMUNITY STATS BANNER (Top of Home) ===== */
.stats-banner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.85rem;
  margin-bottom: 1.5rem;
}
.stats-banner-item {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 14px;
  padding: 1rem 1.25rem;
  text-align: center;
  transition: all 0.25s ease;
  cursor: pointer;
}
.stats-banner-item:hover {
  background: var(--surface-raised);
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 4px 20px var(--accent-glow);
}
.stats-banner-value {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 0.2rem;
}
.stats-banner-label {
  font-size: 0.72rem;
  color: var(--muted);
  font-weight: 500;
}
.stats-banner-item:nth-child(1) .stats-banner-value { color: var(--accent); }
.stats-banner-item:nth-child(2) .stats-banner-value { color: var(--green); }
.stats-banner-item:nth-child(3) .stats-banner-value { color: var(--amber); }
.stats-banner-item:nth-child(4) .stats-banner-value { color: var(--rose); }

/* ===== RESOURCE PAGE ===== */
.resource-page {
  padding: 1.5rem 0 2rem;
}
.resource-page-header {
  margin-bottom: 1.5rem;
}
.resource-page-header h2 {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 0.35rem;
}
.resource-page-header p {
  color: var(--muted);
  font-size: 0.85rem;
}
.resource-page-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 1rem;
}
.resource-page-card {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 14px;
  padding: 1.25rem;
  cursor: pointer;
  transition: all 0.25s ease;
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
}
.resource-page-card:hover {
  background: var(--surface-raised);
  border-color: rgba(255,255,255,0.14);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.3);
}
.resource-page-card .rp-tag {
  padding: 0.2rem 0.55rem;
  border-radius: 10px;
  font-size: 0.65rem;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 0.1rem;
}
.resource-page-card .rp-body {
  flex: 1;
  min-width: 0;
}
.resource-page-card .rp-title {
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.3rem;
}
.resource-page-card .rp-desc {
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.5;
  margin-bottom: 0.4rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.resource-page-card .rp-footer {
  font-size: 0.7rem;
  color: var(--muted);
  display: flex;
  gap: 0.75rem;
  align-items: center;
}
.resource-page-card .rp-budget {
  font-weight: 600;
  color: var(--accent);
}

/* ===== COURSE PAGE ===== */
.course-page {
  padding: 1.5rem 0 2rem;
}
.course-page-header {
  margin-bottom: 1.5rem;
}
.course-page-header h2 {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 0.35rem;
}
.course-page-header p {
  color: var(--muted);
  font-size: 0.85rem;
}
.course-page-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}
.course-page-tab {
  padding: 0.5rem 1.25rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid var(--rule);
  background: var(--surface);
  color: var(--muted);
  transition: all 0.2s;
}
.course-page-tab.active {
  background: var(--accent-soft);
  color: var(--accent);
  border-color: var(--accent);
}
.course-page-tab:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.course-page-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1rem;
}
.course-page-card {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 14px;
  padding: 1.25rem;
  cursor: pointer;
  transition: all 0.25s ease;
}
.course-page-card:hover {
  background: var(--surface-raised);
  border-color: rgba(255,255,255,0.14);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.3);
}
.course-page-card .cp-category {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.5rem;
}
.course-page-card .cp-title {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
  line-height: 1.3;
}
.course-page-card .cp-desc {
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.5;
  margin-bottom: 0.5rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.course-page-card .cp-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.72rem;
  color: var(--muted);
}
.course-page-card .cp-badge {
  display: inline-block;
  padding: 0.15rem 0.5rem;
  border-radius: 10px;
  font-size: 0.62rem;
  font-weight: 700;
}
.cp-badge.video { background: var(--sky-soft); color: var(--sky); }
.cp-badge.live { background: var(--rose-soft); color: var(--rose); }
.cp-badge.free { background: var(--green-soft); color: var(--green); }
.cp-badge.premium { background: var(--accent-soft); color: var(--accent); }

/* ===== NAV MOBILE HAMBURGER ===== */
.nav-hamburger {
  display: none;
  background: none;
  border: none;
  font-size: 1.3rem;
  color: var(--muted);
  cursor: pointer;
  padding: 0.25rem;
  line-height: 1;
}
.nav-hamburger:hover {
  color: var(--ink);
}
.nav-mobile-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--bg);
  border: 1px solid var(--rule);
  border-radius: 0 0 14px 14px;
  padding: 0.75rem 1.25rem;
  z-index: 110;
  flex-direction: column;
  gap: 0.5rem;
  box-shadow: 0 8px 30px rgba(0,0,0,0.3);
}
.nav-mobile-menu.show {
  display: flex;
}
.nav-mobile-menu a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
  padding: 0.5rem 0;
  cursor: pointer;
  transition: color 0.2s;
}
.nav-mobile-menu a:hover,
.nav-mobile-menu a.active {
  color: var(--ink);
}

/* ===== RESPONSIVE ADDITIONS 2 ===== */
@media (max-width: 900px) {
  .personal-layout {
    grid-template-columns: 1fr;
  }
  .personal-sidebar {
    position: static;
  }
  .personal-nav {
    display: flex;
    overflow-x: auto;
  }
  .personal-nav-item {
    flex-shrink: 0;
    border-bottom: none;
    border-right: 1px solid var(--rule);
  }
  .partner-features {
    grid-template-columns: 1fr;
  }
  .partner-benefits-grid {
    grid-template-columns: 1fr;
  }
  .form-row {
    grid-template-columns: 1fr;
  }
  .theme-btn {
    width: 30px;
    height: 30px;
    font-size: 0.75rem;
  }
  .nav-hamburger {
    display: block;
  }
  .stats-banner {
    grid-template-columns: repeat(2, 1fr);
  }
  .resource-page-grid {
    grid-template-columns: 1fr;
  }
  .course-page-grid {
    grid-template-columns: 1fr;
  }
  .share-options {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ===== INLINE COMMENTS ===== */
.feed-post-comments {
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--rule);
  display: none;
}
.feed-post-comments.show {
  display: block;
}
.inline-comment-input-area {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
  align-items: flex-end;
}
.inline-comment-input {
  flex: 1;
  padding: 0.5rem 0.75rem;
  border-radius: 10px;
  border: 1px solid var(--rule);
  background: var(--surface-raised);
  color: var(--ink);
  font-size: 0.8rem;
  font-family: var(--font);
  outline: none;
  resize: none;
  min-height: 36px;
  max-height: 80px;
  transition: border-color 0.2s;
}
.inline-comment-input:focus {
  border-color: var(--accent);
}
.inline-comment-submit {
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 0.35rem 1rem;
  border-radius: 16px;
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
  flex-shrink: 0;
}
.inline-comment-submit:hover {
  background: #9370FF;
}
.inline-comment-list {
  max-height: 250px;
  overflow-y: auto;
}
.inline-comment-item {
  display: flex;
  gap: 0.5rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--rule);
}
.inline-comment-item:last-child {
  border-bottom: none;
}
.inline-comment-avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.6rem;
  font-weight: 700;
  color: #fff;
}
.inline-comment-body {
  flex: 1;
  min-width: 0;
}
.inline-comment-name {
  font-size: 0.72rem;
  font-weight: 600;
  margin-bottom: 0.1rem;
}
.inline-comment-text {
  font-size: 0.78rem;
  line-height: 1.5;
  word-break: break-word;
}
.inline-comment-time {
  font-size: 0.62rem;
  color: var(--muted);
  margin-top: 0.15rem;
}

/* ===== GENERIC PAGES (Agent, Member) ===== */
.generic-page {
  padding: 1.5rem 0 2rem;
}
.generic-page-header {
  margin-bottom: 1.5rem;
}
.generic-page-header h2 {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 0.35rem;
}
.generic-page-header p {
  color: var(--muted);
  font-size: 0.85rem;
}

/* Agent Grid */
.agent-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
}
.agent-card {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 14px;
  padding: 1.25rem;
  cursor: pointer;
  transition: all 0.25s ease;
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
}
.agent-card:hover {
  background: var(--surface-raised);
  border-color: rgba(255,255,255,0.14);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.3);
}
.agent-card-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}
.agent-card-icon.purple { background: var(--accent-soft); color: var(--accent); }
.agent-card-icon.green { background: var(--green-soft); color: var(--green); }
.agent-card-icon.amber { background: var(--amber-soft); color: var(--amber); }
.agent-card-icon.rose { background: var(--rose-soft); color: var(--rose); }
.agent-card-icon.sky { background: var(--sky-soft); color: var(--sky); }
.agent-card-body {
  flex: 1;
  min-width: 0;
}
.agent-card-title {
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}
.agent-card-desc {
  font-size: 0.75rem;
  color: var(--muted);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 0.4rem;
}
.agent-card-footer {
  font-size: 0.7rem;
  color: var(--muted);
  display: flex;
  gap: 0.75rem;
  align-items: center;
}
.agent-card-footer .agent-tag {
  padding: 0.1rem 0.4rem;
  border-radius: 8px;
  font-size: 0.6rem;
  font-weight: 600;
}
.agent-tag.free { background: var(--green-soft); color: var(--green); }
.agent-tag.premium { background: var(--accent-soft); color: var(--accent); }

/* Member Plans */
.member-tabs {
  display: flex;
  gap: 0.5rem;
  margin-top: 1rem;
  margin-bottom: 1.25rem;
  background: var(--surface);
  padding: 0.35rem;
  border-radius: 12px;
  width: fit-content;
  border: 1px solid var(--rule);
}
.member-tab {
  padding: 0.5rem 1.25rem;
  border-radius: 8px;
  border: none;
  background: transparent;
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}
.member-tab:hover {
  color: var(--ink);
}
.member-tab.active {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 2px 8px var(--accent-glow);
}
.member-plans {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.member-plan-card {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 14px;
  padding: 1.5rem;
  text-align: center;
  transition: all 0.25s ease;
  cursor: pointer;
}
.member-plan-card:hover {
  background: var(--surface-raised);
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.3);
}
.member-plan-card.featured {
  border-color: var(--accent);
  background: var(--accent-soft);
}
.member-plan-card.selected {
  border-color: var(--accent);
  background: var(--accent-soft);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px var(--accent-glow);
}
.member-plan-card.featured:hover {
  box-shadow: 0 8px 30px var(--accent-glow);
}
.member-plan-name {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}
.plan-selected-check {
  font-size: 0.7rem;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 0.15rem 0.5rem;
  border-radius: 10px;
  font-weight: 600;
}
.member-plan-price {
  font-size: 2rem;
  font-weight: 800;
  color: var(--accent);
  margin-bottom: 0.75rem;
}
.member-plan-price span {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--muted);
}
.member-plan-features {
  text-align: left;
  margin-bottom: 1rem;
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 2;
}
.member-plan-features li {
  list-style: none;
  padding-left: 1.2rem;
  position: relative;
}
.member-plan-features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--green);
  font-weight: 700;
}
.member-plan-btn {
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 0.55rem 1.5rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}
.member-plan-btn:hover {
  background: #9370FF;
  transform: scale(1.05);
}

@media (max-width: 900px) {
  .agent-grid {
    grid-template-columns: 1fr;
  }
  .member-plans {
    grid-template-columns: 1fr;
  }
}

/* Apply Form Popup */
.apply-popup {
  max-width: 500px;
  max-height: 90vh;
  overflow-y: auto;
  text-align: left;
}
.apply-popup h3 {
  text-align: center;
}
.apply-popup > p {
  text-align: center;
}
.apply-row {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}
.apply-row > select,
.apply-row > input {
  flex: 1;
  margin-bottom: 0;
}
.apply-popup select {
  width: 100%;
  padding: 0.7rem 1rem;
  border-radius: 10px;
  border: 1px solid var(--rule);
  background: var(--surface);
  color: var(--ink);
  font-size: 0.9rem;
  outline: none;
  margin-bottom: 0.75rem;
  transition: border-color 0.2s;
}
.apply-popup select:focus {
  border-color: var(--accent);
}
.apply-popup textarea {
  width: 100%;
  padding: 0.7rem 1rem;
  border-radius: 10px;
  border: 1px solid var(--rule);
  background: var(--surface);
  color: var(--ink);
  font-size: 0.9rem;
  outline: none;
  margin-bottom: 0.75rem;
  resize: vertical;
  min-height: 60px;
  font-family: inherit;
  line-height: 1.5;
  transition: border-color 0.2s;
}
.apply-popup textarea:focus {
  border-color: var(--accent);
}
.apply-popup .btn-submit {
  margin-top: 0.5rem;
}
.apply-popup .btn-close {
  margin-top: 0.5rem;
}

/* Payment Popup */
.payment-popup {
  max-width: 420px;
  text-align: center;
}
.payment-price {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--accent);
  margin: 1rem 0 1.5rem;
}
.payment-price span {
  font-size: 1rem;
  font-weight: 500;
  color: var(--muted);
  margin-left: 0.25rem;
}
.payment-methods {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}
.payment-method {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  border: 2px solid var(--rule);
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s;
  position: relative;
}
.payment-method:hover {
  border-color: var(--accent);
  background: var(--surface-raised);
}
.payment-method.selected {
  border-color: var(--accent);
  background: var(--accent-soft);
}
.payment-method .pm-icon {
  font-size: 1.3rem;
}
.payment-method .pm-check {
  margin-left: auto;
  color: var(--accent);
  font-weight: 700;
  font-size: 1rem;
  display: none;
}
.payment-method.selected .pm-check {
  display: inline;
}

/* Page More / Back buttons */
.page-more-btn,
.page-back-btn {
  background: var(--surface);
  color: var(--muted);
  border: 1px solid var(--rule);
  padding: 0.4rem 0.9rem;
  border-radius: 20px;
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.2s;
  z-index: 10;
}
.page-more-btn {
  position: absolute;
  top: 0.25rem;
  right: 0;
}
.page-more-btn:hover,
.page-back-btn:hover {
  color: var(--accent);
  border-color: var(--accent);
  background: var(--accent-soft);
}
.page-back-btn {
  position: static;
  margin-bottom: 0.75rem;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}
.generic-page-header,
.activity-page-header,
.resource-page-header,
.course-page-header {
  position: relative;
  padding-top: 0.25rem;
}

/* Custom Agent Card */
.custom-agent-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--surface);
  border: 1px dashed var(--accent);
  border-radius: 14px;
  padding: 1.25rem;
  margin-top: 1rem;
  cursor: pointer;
  transition: all 0.25s ease;
}
.custom-agent-card:hover {
  background: var(--accent-soft);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px var(--accent-glow);
}
.custom-agent-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: var(--accent-soft);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}
.custom-agent-body {
  flex: 1;
  min-width: 0;
}
.custom-agent-body h4 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
  color: var(--accent);
}
.custom-agent-body p {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.5;
}
.custom-agent-arrow {
  color: var(--accent);
  font-size: 1.2rem;
  font-weight: 700;
  flex-shrink: 0;
}

/* Custom Agent Form */
.custom-agent-form {
  margin-top: 1rem;
}
.form-section {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 14px;
  padding: 1.25rem;
  margin-bottom: 1rem;
}
.form-section h4 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--ink);
}
.form-row {
  display: flex;
  gap: 1rem;
}
.form-field {
  flex: 1;
}
.form-field label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 0.4rem;
}
.form-field input,
.form-field select,
.form-section textarea {
  width: 100%;
  padding: 0.65rem 0.9rem;
  border-radius: 10px;
  border: 1px solid var(--rule);
  background: var(--bg);
  color: var(--ink);
  font-size: 0.85rem;
  outline: none;
  font-family: inherit;
  transition: border-color 0.2s;
}
.form-field input:focus,
.form-field select:focus,
.form-section textarea:focus {
  border-color: var(--accent);
}
.form-section textarea {
  width: 100%;
  margin-bottom: 0;
  resize: vertical;
  min-height: 70px;
  line-height: 1.5;
}
.knowledge-upload {
  margin-top: 0.5rem;
}
.upload-area {
  border: 2px dashed var(--rule);
  border-radius: 12px;
  padding: 2rem 1.5rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
  background: var(--bg);
}
.upload-area:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
}
.upload-icon {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}
.upload-area p {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 0.25rem;
}
.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
  margin-top: 0.5rem;
}
.btn-ghost {
  background: var(--surface);
  color: var(--muted);
  border: 1px solid var(--rule);
  padding: 0.6rem 1.5rem;
  border-radius: 10px;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s;
}
.btn-ghost:hover {
  color: var(--ink);
  border-color: var(--muted);
}
.form-actions .btn-submit {
  padding: 0.6rem 1.5rem;
  width: auto;
  margin: 0;
}

/* Activity / Resource / Course Tabs */
.activity-tabs,
.resource-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}
.activity-tab,
.resource-tab {
  padding: 0.4rem 1rem;
  border-radius: 20px;
  border: 1px solid var(--rule);
  background: var(--surface);
  color: var(--muted);
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.2s;
}
.activity-tab:hover,
.resource-tab:hover {
  color: var(--ink);
  border-color: var(--muted);
}
.activity-tab.active,
.resource-tab.active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

/* Responsive */
@media (max-width: 768px) {
  .form-row {
    flex-direction: column;
    gap: 0.75rem;
  }
  .custom-agent-card {
    flex-direction: column;
    text-align: center;
  }
  .page-more-btn,
  .page-back-btn {
    position: static;
    margin-bottom: 0.75rem;
    display: inline-block;
  }
  .generic-page-header,
  .activity-page-header,
  .resource-page-header,
  .course-page-header {
    padding-top: 0;
  }
}

/* ===== Login Links ===== */
.login-links {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 0.75rem 0;
  font-size: 0.8rem;
}
.login-link {
  color: var(--accent);
  cursor: pointer;
  transition: opacity 0.2s;
}
.login-link:hover {
  opacity: 0.8;
  text-decoration: underline;
}

/* ===== Forgot Password ===== */
.forgot-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 0.5rem;
}
.forgot-desc {
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 1rem;
  line-height: 1.5;
}

/* ===== Test Card ===== */
.enterprise-test-card {
  margin-top: 1rem;
  padding: 1rem;
  background: var(--surface-raised);
  border: 1px dashed var(--rule);
  border-radius: 12px;
  transition: all 0.2s;
}
.enterprise-test-card:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
}
.test-card-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.test-card-title::before {
  content: '🧪';
  font-size: 0.9rem;
}
.test-card-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.3rem 0;
  font-size: 0.8rem;
}
.test-card-label {
  color: var(--muted);
}
.test-card-value {
  color: var(--ink);
  font-weight: 500;
  font-family: monospace;
}
.test-card-fill {
  width: 100%;
  margin-top: 0.75rem;
  padding: 0.6rem;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  font-family: var(--font);
}
.test-card-fill:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px var(--accent-glow);
}
.test-card-fill:active {
  transform: translateY(0);
}

/* ===== Register Popup ===== */
.register-popup {
  max-width: 440px;
}
.register-step {
  display: none;
}
.register-step.active {
  display: block;
  animation: popIn 0.3s ease;
}
.register-type-switch {
  display: flex;
  background: var(--surface-raised);
  border-radius: 10px;
  padding: 4px;
  margin-bottom: 1.25rem;
}
.register-type-btn {
  flex: 1;
  padding: 0.6rem;
  border: none;
  background: transparent;
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 500;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
  font-family: var(--font);
}
.register-type-btn.active {
  background: var(--accent);
  color: #fff;
  font-weight: 600;
}
.register-form {
  margin-bottom: 1rem;
}
.register-footer {
  text-align: center;
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 1rem;
  margin-bottom: 0.75rem;
}
.verify-info {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 1.25rem;
  text-align: center;
}
.verify-code-inputs {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}
.verify-input {
  width: 44px;
  height: 48px;
  text-align: center;
  font-size: 1.2rem;
  font-weight: 600;
  border: 1px solid var(--rule);
  border-radius: 10px;
  background: var(--surface);
  color: var(--ink);
  outline: none;
  transition: border-color 0.2s;
}
.verify-input:focus {
  border-color: var(--accent);
}
.resend-code {
  text-align: center;
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 1rem;
}
.resend-btn {
  color: var(--accent);
  cursor: pointer;
  font-weight: 500;
}
.resend-btn:hover {
  text-decoration: underline;
}
.register-success-icon {
  font-size: 3.5rem;
  text-align: center;
  margin-bottom: 1rem;
}
.success-tips {
  background: var(--surface-raised);
  border-radius: 10px;
  padding: 1rem;
  margin-bottom: 1.25rem;
}
.success-tips p {
  margin: 0.4rem 0;
  font-size: 0.85rem;
  color: var(--ink);
}

/* ===== Bind Email Section ===== */
.bind-email-section {
  background: var(--surface-raised);
  border-radius: 12px;
  padding: 1.25rem;
}
.bind-email-status {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--rule);
}
.bind-label {
  font-size: 0.9rem;
  color: var(--muted);
}
.bind-status {
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
}
.bind-status.unbound {
  background: var(--rose-soft);
  color: var(--rose);
}
.bind-status.bound {
  background: var(--green-soft);
  color: var(--green);
}
.email-input-row {
  display: flex;
  gap: 0.5rem;
}
.email-input-row input {
  flex: 1;
  margin-bottom: 0;
}
.btn-email-action {
  padding: 0 1.25rem;
  border: none;
  background: var(--accent);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 600;
  border-radius: 10px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s;
  font-family: var(--font);
  height: 40px;
}
.btn-email-action:hover {
  background: #9370FF;
}
.email-bind-tips {
  margin-top: 0.75rem;
  font-size: 0.75rem;
  color: var(--muted);
}

/* ===== Privacy Settings ===== */
.privacy-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
  border-bottom: 1px solid var(--rule);
}
.privacy-item:last-child {
  border-bottom: none;
}
.privacy-item-info {
  flex: 1;
  padding-right: 1rem;
}
.privacy-item-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 0.25rem;
}
.privacy-item-desc {
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.5;
}
.toggle-switch {
  position: relative;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
  cursor: pointer;
}
.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}
.toggle-slider {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--muted);
  transition: 0.3s;
  border-radius: 24px;
}
.toggle-slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background: white;
  transition: 0.3s;
  border-radius: 50%;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}
.toggle-switch input:checked + .toggle-slider {
  background: var(--accent);
}
.toggle-switch input:checked + .toggle-slider:before {
  transform: translateX(20px);
}

/* ===== Permission Denied ===== */
.permission-denied {
  text-align: center;
  padding: 3rem 2rem;
  background: var(--surface-raised);
  border-radius: 16px;
}
.permission-denied-icon {
  font-size: 3.5rem;
  margin-bottom: 1rem;
}
.permission-denied h3 {
  font-size: 1.25rem;
  color: var(--ink);
  margin-bottom: 0.5rem;
}
.permission-denied p {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 1.25rem;
}
.permission-denied .btn-upgrade {
  display: inline-block;
  padding: 0.7rem 2rem;
  background: var(--accent);
  color: #fff;
  border-radius: 25px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 0.9rem;
}
.permission-denied .btn-upgrade:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px var(--accent-glow);
}

/* ===== Course Weekly Badge ===== */
.weekly-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: linear-gradient(135deg, var(--amber), #ff8c00);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.25rem 0.6rem;
  border-radius: 12px;
  z-index: 2;
}

/* ===== Activity Priority Badge ===== */
.priority-badge {
  display: inline-block;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.2rem 0.5rem;
  border-radius: 8px;
  margin-left: 0.5rem;
}

/* ===== Customer Service Page ===== */
.cs-page {
  padding-top: 80px;
  padding-bottom: 60px;
  animation: fadeSlideUp 0.5s ease;
}
.cs-page-header {
  position: relative;
  text-align: center;
  margin-bottom: 2.5rem;
  padding-top: 1rem;
}
.cs-page-header h2 {
  font-size: 2rem;
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 0.5rem;
}
.cs-page-header p {
  color: var(--muted);
  font-size: 0.9rem;
}
.cs-tabs {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}
.cs-tab {
  padding: 0.7rem 1.75rem;
  border: 1px solid var(--rule);
  background: var(--surface);
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 500;
  border-radius: 25px;
  cursor: pointer;
  transition: all 0.2s;
  font-family: var(--font);
}
.cs-tab:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.cs-tab.active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.cs-content {
  display: none;
}
.cs-content.active {
  display: block;
  animation: fadeSlideUp 0.3s ease;
}

/* Online Service */
.cs-online-card {
  max-width: 500px;
  margin: 0 auto;
  background: var(--surface-raised);
  border-radius: 20px;
  padding: 2.5rem;
  text-align: center;
  margin-bottom: 2rem;
}
.cs-online-icon {
  font-size: 3.5rem;
  margin-bottom: 1rem;
}
.cs-online-card h3 {
  font-size: 1.3rem;
  color: var(--ink);
  margin-bottom: 0.5rem;
}
.cs-online-card > p {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}
.cs-service-hours {
  text-align: left;
  background: var(--surface);
  border-radius: 12px;
  padding: 1rem 1.25rem;
  margin-bottom: 1.5rem;
}
.cs-hours-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--ink);
  padding: 0.35rem 0;
}
.hours-icon {
  font-size: 1rem;
}
.cs-start-btn {
  width: 100%;
  padding: 0.85rem;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 12px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  font-family: var(--font);
}
.cs-start-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px var(--accent-glow);
}

/* Chat Window */
.cs-chat-window {
  max-width: 500px;
  margin: 0 auto;
  background: var(--surface-raised);
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--rule);
}
.cs-chat-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  background: var(--accent);
  color: #fff;
}
.cs-chat-avatar {
  font-size: 1.5rem;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.2);
  border-radius: 50%;
}
.cs-chat-name {
  font-weight: 600;
  font-size: 0.9rem;
}
.cs-chat-status {
  font-size: 0.75rem;
  opacity: 0.9;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}
.status-dot {
  width: 8px;
  height: 8px;
  background: #4ade80;
  border-radius: 50%;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}
.cs-chat-messages {
  height: 320px;
  overflow-y: auto;
  padding: 1rem;
  background: var(--surface);
}
.cs-msg {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
}
.cs-msg-user {
  flex-direction: row-reverse;
}
.cs-msg-avatar {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  background: var(--surface-raised);
  border-radius: 50%;
}
.cs-msg-user .cs-msg-avatar {
  background: var(--accent-soft);
}
.cs-msg-content {
  max-width: 75%;
  padding: 0.65rem 0.9rem;
  border-radius: 12px;
  font-size: 0.85rem;
  line-height: 1.5;
  background: var(--surface-raised);
  color: var(--ink);
}
.cs-msg-user .cs-msg-content {
  background: var(--accent);
  color: #fff;
}
.cs-chat-input {
  display: flex;
  gap: 0.5rem;
  padding: 0.75rem;
  background: var(--surface-raised);
  border-top: 1px solid var(--rule);
}
.cs-chat-input input {
  flex: 1;
  padding: 0.6rem 1rem;
  border: 1px solid var(--rule);
  border-radius: 20px;
  background: var(--surface);
  color: var(--ink);
  font-size: 0.85rem;
  outline: none;
  font-family: var(--font);
  transition: border-color 0.2s;
}
.cs-chat-input input:focus {
  border-color: var(--accent);
}
.cs-chat-input button {
  padding: 0 1.25rem;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  font-family: var(--font);
}
.cs-chat-input button:hover {
  background: #9370FF;
}

/* FAQ */
.faq-list {
  max-width: 700px;
  margin: 0 auto;
}
.faq-item {
  background: var(--surface-raised);
  border-radius: 12px;
  margin-bottom: 0.75rem;
  overflow: hidden;
  cursor: pointer;
  transition: box-shadow 0.2s;
}
.faq-item:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.06);
}
.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.25rem;
  font-weight: 600;
  color: var(--ink);
  font-size: 0.9rem;
}
.faq-arrow {
  color: var(--muted);
  font-size: 0.7rem;
  transition: transform 0.3s;
}
.faq-item.open .faq-arrow {
  transform: rotate(180deg);
}
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  padding: 0 1.25rem;
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.7;
}
.faq-item.open .faq-answer {
  max-height: 300px;
  padding: 0 1.25rem 1rem;
}

/* Feedback Form */
.feedback-form {
  max-width: 500px;
  margin: 0 auto;
  background: var(--surface-raised);
  border-radius: 20px;
  padding: 2rem;
}
.feedback-form h3 {
  font-size: 1.25rem;
  color: var(--ink);
  margin-bottom: 0.5rem;
  text-align: center;
}
.feedback-form > p {
  color: var(--muted);
  font-size: 0.85rem;
  margin-bottom: 1.5rem;
  text-align: center;
}
.feedback-form .form-group {
  margin-bottom: 1rem;
}
.feedback-form label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 0.4rem;
}
.feedback-form select,
.feedback-form textarea,
.feedback-form input {
  width: 100%;
  padding: 0.7rem 1rem;
  border: 1px solid var(--rule);
  border-radius: 10px;
  background: var(--surface);
  color: var(--ink);
  font-size: 0.85rem;
  outline: none;
  font-family: var(--font);
  transition: border-color 0.2s;
  box-sizing: border-box;
}
.feedback-form select:focus,
.feedback-form textarea:focus,
.feedback-form input:focus {
  border-color: var(--accent);
}
.feedback-form textarea {
  resize: vertical;
}
.feedback-form .btn-submit {
  width: 100%;
  padding: 0.8rem;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 12px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  font-family: var(--font);
}
.feedback-form .btn-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px var(--accent-glow);
}

/* ===== Circle Locked State ===== */
.circle-card.locked {
  position: relative;
}
.circle-card.locked .circle-join-btn {
  display: none;
}
.circle-locked-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  z-index: 5;
}
.circle-locked-content {
  text-align: center;
  color: #fff;
  padding: 1rem;
}
.circle-locked-icon {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}
.circle-locked-text {
  font-size: 0.8rem;
  font-weight: 500;
}

/* ===== Disabled Composer Circle Select ===== */
.composer-circle-select.disabled {
  opacity: 0.5;
  pointer-events: none;
}
.composer-circle-select.disabled::after {
  content: '（会员可发布）';
  font-size: 0.7rem;
  color: var(--rose);
  margin-left: 0.5rem;
}

/* ===== Usage Limit Banner ===== */
.usage-limit-banner {
  background: linear-gradient(135deg, var(--amber-soft), var(--rose-soft));
  border-radius: 10px;
  padding: 0.75rem 1rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.usage-limit-icon {
  font-size: 1.2rem;
}
.usage-limit-text {
  flex: 1;
  font-size: 0.8rem;
  color: var(--ink);
}
.usage-limit-text strong {
  color: var(--accent);
}
.usage-limit-btn {
  padding: 0.4rem 1rem;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 15px;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  font-family: var(--font);
}
.usage-limit-btn:hover {
  background: #9370FF;
}