:root {
  --primary: #ffe333;
  --primary-deep: #f7cb65;
  --canvas: #fff9ef;
  --card: rgba(255, 252, 247, 0.92);
  --ink: #3b3531;
  --subtle: #887d75;
  --blue-card: #186d92;
  --pink: #ffdbe7;
  --pink-deep: #f6a8bc;
  --mint: #dff5e8;
  --sky: #dff1ff;
  --lavender: #e7e1ff;
  --line: rgba(80, 57, 33, 0.08);
  --shadow: 0 18px 40px rgba(212, 168, 88, 0.18);
  --radius-xl: 34px;
  --radius-lg: 26px;
  --radius-md: 20px;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  font-family: "Noto Sans SC", sans-serif;
  background:
    radial-gradient(circle at top, #fff7bd 0%, #ffeeb7 30%, #ffe5ee 62%, #fff9ef 100%);
  color: var(--ink);
}

body {
  display: flex;
  justify-content: center;
  padding: 16px;
}

button,
input {
  font: inherit;
}

button {
  border: 0;
  background: transparent;
  cursor: pointer;
}

.app-shell {
  width: 100%;
  display: flex;
  justify-content: center;
}

.phone-frame {
  width: min(100%, 393px);
  height: min(calc(100vh - 32px), 852px);
  background:
    linear-gradient(180deg, rgba(255, 244, 191, 0.92) 0%, rgba(255, 245, 232, 0.98) 100%);
  border-radius: 36px;
  border: 10px solid #ffe333;
  box-shadow: 0 30px 60px rgba(240, 184, 81, 0.26);
  overflow: hidden;
  position: relative;
}

.phone-frame::before,
.phone-frame::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  filter: blur(10px);
  opacity: 0.42;
  pointer-events: none;
}

.phone-frame::before {
  width: 140px;
  height: 140px;
  background: rgba(255, 220, 231, 0.5);
  top: 96px;
  right: -40px;
}

.phone-frame::after {
  width: 110px;
  height: 110px;
  background: rgba(223, 241, 255, 0.58);
  left: -28px;
  bottom: 112px;
}

.topbar {
  padding: var(--space-4) var(--space-4) var(--space-3);
  background:
    linear-gradient(180deg, rgba(255, 227, 51, 0.9) 0%, rgba(255, 241, 184, 0.92) 74%, rgba(255, 249, 239, 0.3) 100%);
  backdrop-filter: blur(12px);
}

.statusbar,
.topbar-main,
.searchbar,
.bottom-nav,
.section-head,
.quick-entry,
.stats-grid {
  display: flex;
  align-items: center;
}

.statusbar {
  justify-content: space-between;
  font-weight: 800;
  margin-bottom: 10px;
}

.dynamic-island {
  width: 120px;
  height: 28px;
  border-radius: 999px;
  background: #0c0c0c;
}

.topbar-main {
  justify-content: space-between;
  margin-bottom: var(--space-3);
}

.campus-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
}

.campus-tag svg {
  width: 17px;
  height: 17px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
}

.searchbar {
  gap: var(--space-2);
  background: rgba(255, 255, 255, 0.86);
  padding: 5px 5px 5px 12px;
  border-radius: 999px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.45);
}

.searchbar input {
  border: 0;
  outline: none;
  background: transparent;
  flex: 1;
}

.searchbar button,
.primary-button,
.ghost-button,
.chip.active {
  background: linear-gradient(135deg, #ffe56e, #ffd7a8);
  color: var(--ink);
  font-weight: 800;
}

.searchbar button {
  width: 64px;
  min-width: 64px;
  padding: 9px 0;
  border-radius: 999px;
  font-size: 13px;
}

.page-container {
  height: calc(100% - 178px);
  overflow-y: auto;
  padding: var(--space-4) var(--space-4) 96px;
  position: relative;
}

.page {
  display: none;
}

.page-active {
  display: block;
}

.hero-card,
.entry-card,
.masonry-item,
.ai-card,
.recommend-item,
.club-item,
.profile-card,
.roadmap-card,
.menu-item,
.stats-grid article {
  background: var(--card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  border: 1px solid rgba(255, 255, 255, 0.62);
}

.hero-card {
  padding: var(--space-5);
  background:
    radial-gradient(circle at top right, rgba(255, 219, 231, 0.56), transparent 38%),
    radial-gradient(circle at bottom left, rgba(223, 241, 255, 0.48), transparent 32%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.94), rgba(255, 248, 221, 0.98));
  margin-bottom: var(--space-4);
  position: relative;
  overflow: hidden;
  animation: floatCard 6s ease-in-out infinite;
}

.hero-card::after {
  content: "";
  position: absolute;
  right: 28px;
  top: 26px;
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.52), rgba(255, 255, 255, 0));
}

.eyebrow {
  margin: 0 0 6px;
  color: #d68ba3;
  font-weight: 700;
}

.hero-card h1,
.section-head h2,
.profile-card h2,
.roadmap-card h3,
.ai-card h3,
.masonry-title,
.club-main h3,
.recommend-head h3 {
  font-family: "Fredoka", "Noto Sans SC", sans-serif;
  letter-spacing: 0.02em;
}

.hero-card h1,
.section-head h2,
.profile-card h2,
.roadmap-card h3,
.ai-card h3 {
  margin: 0;
}

.hero-card h1 {
  font-size: 26px;
  line-height: 1.25;
  font-weight: 800;
}

.hero-content {
  display: grid;
  grid-template-columns: 1.2fr 0.9fr;
  gap: var(--space-3);
  align-items: center;
}

.hero-card p {
  margin: 8px 0 0;
  line-height: 1.6;
  font-size: 14px;
}

.hero-visual {
  position: relative;
  height: 138px;
  border-radius: 24px;
  background: linear-gradient(165deg, rgba(255, 248, 236, 0.9), rgba(255, 241, 193, 0.85));
  border: 1px solid rgba(255, 255, 255, 0.7);
  overflow: hidden;
}

.hero-blob {
  position: absolute;
  inset: 18px auto auto 14px;
  width: 92px;
  height: 92px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(189, 222, 246, 0.88), rgba(189, 222, 246, 0));
}

.hero-poster {
  position: absolute;
  display: grid;
  place-items: center;
  border-radius: 22px;
  background: linear-gradient(165deg, #2e8ab0, #2b6f97);
  box-shadow: 0 10px 24px rgba(43, 111, 151, 0.18);
}

.hero-poster svg {
  width: 48px;
  height: 48px;
  stroke: rgba(255, 255, 255, 0.95);
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hero-poster-main {
  width: 92px;
  height: 112px;
  right: 22px;
  top: 12px;
}

.hero-poster-side {
  width: 72px;
  height: 84px;
  left: 18px;
  bottom: 10px;
  background: linear-gradient(165deg, #ffffff, #fff8ea);
  box-shadow: 0 10px 22px rgba(209, 181, 113, 0.14);
}

.hero-poster-side svg {
  width: 36px;
  height: 36px;
  stroke: #8e7c67;
}

.hero-chip {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.86);
  color: #6f6258;
  font-size: 11px;
  font-weight: 600;
  box-shadow: 0 8px 18px rgba(217, 190, 121, 0.14);
}

.hero-chip svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hero-chip-ai {
  right: 14px;
  bottom: 14px;
}

.hero-chip-photo {
  left: 70px;
  top: 14px;
}

.hero-badges {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.hero-badges span,
.club-tag,
.label-tag {
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
}

.hero-badges span {
  background: rgba(255, 227, 51, 0.32);
  color: #875f12;
}

.quick-entry {
  gap: var(--space-3);
  margin-bottom: var(--space-5);
}

.entry-card {
  flex: 1;
  padding: var(--space-4) var(--space-3);
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: center;
  text-align: center;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.entry-label {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  text-align: center;
}

.ai-entry-label span:first-child {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
}

.ai-entry-label span:last-child {
  font-size: 12px;
  line-height: 1.25;
  color: var(--subtle);
}

.entry-card.featured {
  flex: 1.4;
  background:
    linear-gradient(135deg, rgba(255, 231, 245, 0.98) 0%, rgba(255, 235, 168, 0.98) 100%);
}

.entry-icon {
  width: 40px;
  height: 40px;
  color: #8e7c67;
}

.entry-card span:last-child {
  font-size: 12px;
  font-weight: 600;
}

.entry-card .ai-entry-label {
  font-weight: 600;
}

.entry-card .ai-entry-label span:first-child {
  font-weight: 700;
}

.entry-icon svg,
.nav-icon svg {
  width: 100%;
  height: 100%;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.section-head {
  justify-content: space-between;
  gap: var(--space-3);
  margin-bottom: var(--space-3);
}

.section-head p {
  margin: 4px 0 0;
  font-size: 12px;
  line-height: 1.5;
  color: var(--subtle);
}

.section-head h2 {
  font-size: 18px;
  line-height: 1.3;
}

.ghost-button {
  white-space: nowrap;
  padding: 10px 14px;
  border-radius: 999px;
  box-shadow: inset 0 -2px 0 rgba(255, 255, 255, 0.28);
}

.pinned {
  margin-top: 4px;
}

.filter-row,
.tag-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-row {
  margin-bottom: var(--space-4);
}

.chip,
.tag-option {
  padding: 10px 16px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.85);
  color: var(--subtle);
  border: 1px solid rgba(220, 210, 195, 0.5);
  font-size: 13px;
  font-weight: 500;
  transition: all 180ms ease;
  box-shadow: 0 2px 8px rgba(212, 168, 88, 0.08);
}

.chip:hover,
.tag-option:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(212, 168, 88, 0.15);
}

.tag-option.active {
  background: linear-gradient(135deg, #ffe333, #ffb8d0);
  color: #4a3528;
  font-weight: 700;
  border-color: rgba(255, 200, 120, 0.6);
  box-shadow: 0 4px 14px rgba(255, 180, 140, 0.25);
}

.chip.active {
  background: linear-gradient(135deg, #ffe333, #ffd7a8);
  color: var(--ink);
  font-weight: 800;
  border-color: rgba(255, 200, 100, 0.5);
}

.masonry-grid {
  column-count: 2;
  column-gap: 12px;
}

.masonry-item {
  display: inline-block;
  width: 100%;
  margin-bottom: var(--space-4);
  overflow: hidden;
  background: rgba(255, 251, 246, 0.94);
  transform-origin: center bottom;
  animation: cardRise 420ms ease both;
}

.masonry-cover {
  width: 100%;
  background: #d7e6f0;
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
  overflow: hidden;
}

.masonry-cover-image,
.club-cover-image {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.masonry-body {
  padding: var(--space-4);
}

.masonry-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-2);
  margin-bottom: var(--space-2);
}

.masonry-title {
  margin: 0;
  font-size: 15px;
  line-height: 1.35;
  font-weight: 600;
}

.masonry-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-2);
  min-width: 0;
  width: 100%;
}

.masonry-desc,
.recommend-item p,
.club-meta,
.roadmap-card li {
  margin: 0;
  color: var(--subtle);
  line-height: 1.55;
  font-size: 12px;
}

.masonry-desc {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 38px;
}

.masonry-meta,
.club-footer,
.recommend-foot {
  margin-top: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: #8a8a8a;
}

.label-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 10px;
  border-radius: 999px;
  background: linear-gradient(145deg, rgba(231, 225, 255, 0.95), rgba(223, 241, 255, 0.95));
  color: #5a6fd4;
  font-size: 11px;
  white-space: nowrap;
  flex-shrink: 0;
  align-self: flex-start;
}

.ai-panel {
  display: grid;
  gap: 12px;
  margin-bottom: 18px;
}

.ai-form-panel {
  margin-top: 2px;
}

.ai-card {
  padding: var(--space-4);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.95), rgba(255, 246, 236, 0.98));
}

.inline-form-group {
  margin-top: 14px;
}

.compact-slider-group {
  margin-top: 14px;
}

.compact-primary {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 16px;
  font-size: 14px;
}

.slider-group {
  margin-top: 16px;
}

.slider-group label {
  display: block;
  margin-bottom: 10px;
  font-weight: 700;
}

.slider-group input {
  width: 100%;
}

.slider-group span {
  display: inline-block;
  margin-top: 8px;
  color: var(--subtle);
}

.primary-button {
  width: 100%;
  padding: 14px 18px;
  border-radius: 18px;
  margin-top: 16px;
}

.chat-bubble {
  padding: 12px 14px;
  border-radius: 18px;
  margin-top: 12px;
  line-height: 1.6;
}

.chat-bubble.assistant {
  background: linear-gradient(145deg, #fff0c8, #ffe1f0);
}

.chat-bubble.user {
  background: #fff;
  border: 1px solid var(--line);
}

.recommend-list,
.club-list,
.menu-list {
  display: grid;
  gap: 12px;
}

.recommend-item,
.club-item,
.menu-item,
.roadmap-card {
  padding: var(--space-4);
}

.recommend-item {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(255, 244, 232, 0.96));
}

.recommend-head,
.club-top {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
}

.match-score {
  min-width: 70px;
  height: fit-content;
  padding: 8px 10px;
  border-radius: 14px;
  background: linear-gradient(145deg, rgba(255, 227, 51, 0.26), rgba(255, 220, 231, 0.76));
  font-weight: 800;
  text-align: center;
}

.club-item {
  display: grid;
  gap: 12px;
}

.club-main {
  display: grid;
  gap: 10px;
}

.club-cover {
  height: 138px;
  border-radius: 18px;
  background: #d7e6f0;
  overflow: hidden;
}

.club-tag {
  background: linear-gradient(145deg, rgba(255, 227, 51, 0.28), rgba(255, 219, 231, 0.84));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 10px;
  min-width: 48px;
  white-space: nowrap;
  flex-shrink: 0;
  line-height: 1;
}

.club-top h3 {
  margin: 0;
  line-height: 1.2;
}

.apply-button {
  width: 100%;
  padding: 11px 14px;
  border-radius: 14px;
  background: linear-gradient(145deg, #ffcf69, #ffb4c8);
  color: #563d32;
  font-weight: 700;
  box-shadow: inset 0 -2px 0 rgba(255, 255, 255, 0.25);
}

.profile-card {
  padding: var(--space-4);
  display: flex;
  gap: var(--space-3);
  align-items: center;
  margin-bottom: var(--space-4);
}

.profile-card p {
  margin: 4px 0 0;
  color: var(--subtle);
  font-size: 13px;
}

.avatar {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ffe333, #ffb7cf);
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 24px;
}

.stats-grid {
  gap: var(--space-3);
  margin-bottom: var(--space-4);
}

.stats-grid article {
  flex: 1;
  padding: 16px 12px;
  flex-direction: column;
  align-items: flex-start;
  display: flex;
  gap: 4px;
}

.stats-grid strong {
  font-size: 24px;
}

.menu-item {
  text-align: left;
  padding: 13px 14px;
  border-radius: 18px;
  font-size: 14px;
  font-weight: 600;
  min-height: 50px;
  display: flex;
  align-items: center;
}

.roadmap-card {
  margin-top: var(--space-4);
}

.roadmap-card ol {
  margin: 12px 0 0;
  padding-left: 18px;
}

.bottom-nav {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  justify-content: space-around;
  padding: 10px 10px 14px;
  background:
    linear-gradient(180deg, rgba(255, 242, 190, 0.95), rgba(255, 228, 82, 0.98) 100%);
  backdrop-filter: blur(14px);
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  min-width: 58px;
  color: #403700;
  font-size: 11px;
  line-height: 1.2;
}

.nav-icon {
  width: 23px;
  height: 23px;
  color: currentColor;
}

.nav-item.center {
  background: linear-gradient(145deg, rgba(255, 253, 243, 0.94), rgba(255, 242, 203, 0.92));
  padding: 9px 12px;
  border-radius: 18px;
  transform: translateY(-6px);
  box-shadow: 0 12px 26px rgba(212, 168, 88, 0.12);
}

.nav-item.active {
  font-weight: 800;
  color: #c6788b;
}

.entry-card:hover,
.ghost-button:hover,
.primary-button:hover,
.apply-button:hover {
  transform: translateY(-2px) scale(1.01);
}

@keyframes floatCard {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-4px);
  }
}

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

.applications-list,
.admin-list {
  display: grid;
  gap: 12px;
}

.application-item,
.admin-item {
  background: var(--card);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  box-shadow: var(--shadow);
  border: 1px solid rgba(255, 255, 255, 0.62);
}

.application-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 8px;
}

.application-head h3 {
  margin: 0;
  font-size: 16px;
}

.status-badge {
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
}

.status-pending {
  background: rgba(255, 227, 51, 0.32);
  color: #875f12;
}

.status-interview {
  background: rgba(223, 241, 255, 0.9);
  color: #186d92;
}

.status-accepted {
  background: rgba(223, 245, 232, 0.9);
  color: #2d7a50;
}

.status-rejected {
  background: rgba(255, 219, 231, 0.9);
  color: #9b4a61;
}

.application-meta {
  display: flex;
  gap: 12px;
  font-size: 12px;
  color: var(--subtle);
  margin-bottom: 8px;
}

.application-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 12px;
}

.apply-form {
  display: grid;
  gap: 16px;
}

.form-group {
  display: grid;
  gap: 8px;
}

.form-group label {
  font-weight: 700;
  font-size: 14px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.86);
  outline: none;
  transition: border-color 150ms ease;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: rgba(255, 203, 101, 0.8);
}

.position-selector {
  display: grid;
  gap: 8px;
}

.position-option {
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.86);
  cursor: pointer;
  transition: all 150ms ease;
}

.position-option.active {
  border-color: rgba(255, 203, 101, 0.8);
  background: linear-gradient(145deg, rgba(255, 231, 245, 0.5), rgba(255, 244, 232, 0.9));
}

.admin-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
  padding: 4px;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 18px;
}

.admin-tab {
  flex: 1;
  padding: 10px 12px;
  border-radius: 14px;
  font-weight: 600;
  font-size: 13px;
  color: var(--subtle);
  transition: all 150ms ease;
}

.admin-tab.active {
  background: linear-gradient(135deg, #ffe56e, #ffd7a8);
  color: var(--ink);
  font-weight: 800;
}

.admin-content.hidden {
  display: none;
}

.admin-item-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 8px;
}

.admin-item-head h4 {
  margin: 0;
  font-size: 15px;
}

.admin-item-meta {
  font-size: 12px;
  color: var(--subtle);
  margin-bottom: 8px;
}

.admin-item-actions {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

.action-button {
  flex: 1;
  padding: 10px 12px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 700;
}

.action-button.accept {
  background: linear-gradient(145deg, #dff5e8, #b8e6d0);
  color: #2d7a50;
}

.action-button.reject {
  background: linear-gradient(145deg, #ffdbe7, #f6a8bc);
  color: #9b4a61;
}

.action-button.view {
  background: rgba(255, 255, 255, 0.8);
  color: var(--ink);
  border: 1px solid var(--line);
}

.back-button {
  padding: 8px 12px;
  font-weight: 700;
}

@media (max-width: 360px) {
  body {
    padding: 0;
  }

  .phone-frame {
    width: 100%;
    height: 100vh;
    border-radius: 0;
    border-width: 0;
  }

  .quick-entry {
    flex-direction: column;
  }

  .hero-content {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    height: 126px;
  }

  .masonry-grid {
    column-count: 1;
  }

  .stats-grid {
    flex-direction: column;
  }

  .masonry-head {
    align-items: flex-start;
  }

  .masonry-title {
    font-size: 14px;
  }

  .admin-tabs {
    gap: 4px;
  }

  .admin-tab {
    padding: 8px 10px;
    font-size: 12px;
  }
}

.club-detail-hero {
  width: 100%;
  height: 220px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 16px;
  background: #d7e6f0;
}

.club-detail-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.club-detail-info {
  background: var(--card);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  box-shadow: var(--shadow);
  border: 1px solid rgba(255, 255, 255, 0.62);
  margin-bottom: 16px;
}

.club-detail-info h3 {
  margin: 0 0 8px 0;
  font-size: 18px;
  font-family: "Fredoka", "Noto Sans SC", sans-serif;
}

.club-detail-meta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.club-detail-meta span {
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 227, 51, 0.25);
  color: #875f12;
  font-size: 12px;
  font-weight: 600;
}

.club-detail-info p {
  color: var(--subtle);
  line-height: 1.6;
  font-size: 14px;
  margin: 0;
}

.club-detail-activities h3 {
  margin: 0 0 12px 0;
  font-size: 16px;
  font-family: "Fredoka", "Noto Sans SC", sans-serif;
}

.activity-item {
  background: var(--card);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  box-shadow: var(--shadow);
  border: 1px solid rgba(255, 255, 255, 0.62);
  margin-bottom: 12px;
}

.activity-item h4 {
  margin: 0 0 6px 0;
  font-size: 15px;
}

.activity-item p {
  margin: 0;
  color: var(--subtle);
  font-size: 13px;
  line-height: 1.5;
}

.activity-item .activity-date {
  display: inline-block;
  margin-top: 8px;
  font-size: 12px;
  color: var(--subtle);
}

.search-results {
  display: none;
  margin-top: 12px;
}

.search-results.active {
  display: block;
}

.search-result-item {
  background: var(--card);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  margin-bottom: 12px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(255, 255, 255, 0.62);
  cursor: pointer;
  transition: transform 150ms ease;
}

.search-result-item:hover {
  transform: translateY(-2px);
}

.masonry-item {
  cursor: pointer;
  transition: transform 150ms ease;
}

.masonry-item:hover {
  transform: translateY(-3px);
}

.carousel-container {
  margin-bottom: 18px;
  position: relative;
}

.carousel {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-bottom: 6px;
}

.carousel::-webkit-scrollbar {
  display: none;
}

.carousel-item {
  flex: 0 0 246px;
  scroll-snap-align: start;
  background: var(--card);
  border-radius: var(--radius-lg);
  padding: 12px;
  box-shadow: 0 10px 24px rgba(212, 168, 88, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.62);
  cursor: pointer;
  transition: transform 150ms ease;
}

.carousel-item:hover {
  transform: translateY(-2px);
}

.carousel-item-cover {
  width: 100%;
  height: 140px;
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 12px;
  background: #d7e6f0;
}

.carousel-item-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.carousel-item-cover-169 {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 10px;
  background: #d7e6f0;
}

.carousel-item-cover-169 img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.carousel-item h4 {
  margin: 0 0 4px 0;
  font-size: 14px;
  line-height: 1.35;
  font-family: "Fredoka", "Noto Sans SC", sans-serif;
}

.carousel-item p {
  margin: 0;
  color: var(--subtle);
  font-size: 12px;
  line-height: 1.45;
}

.carousel-item-meta {
  display: flex;
  gap: 8px;
  margin-top: 8px;
  flex-wrap: wrap;
}

.carousel-item-meta span {
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 11px;
  background: rgba(255, 227, 51, 0.25);
  color: #875f12;
  font-weight: 600;
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 8px;
}

.carousel-dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: rgba(200, 180, 150, 0.4);
  transition: all 200ms ease;
}

.carousel-dot.active {
  width: 16px;
  background: linear-gradient(135deg, #ffe333, #ffb8d0);
}

.sort-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  font-size: 13px;
}

.sort-bar span {
  color: var(--subtle);
  font-weight: 500;
}

.sort-button {
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  color: var(--subtle);
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(220, 210, 195, 0.3);
  transition: all 150ms ease;
}

.sort-button.active {
  background: linear-gradient(135deg, #ffe333, #ffd7a8);
  color: var(--ink);
  font-weight: 700;
  border-color: transparent;
}

.notifications-list {
  display: grid;
  gap: 12px;
}

.notification-item {
  background: var(--card);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  box-shadow: var(--shadow);
  border: 1px solid rgba(255, 255, 255, 0.62);
  transition: all 150ms ease;
}

.notification-item.unread {
  background: linear-gradient(145deg, rgba(255, 231, 245, 0.5), rgba(255, 244, 232, 0.9));
  border-left: 3px solid #ffb8d0;
}

.notification-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 8px;
}

.notification-head h4 {
  margin: 0;
  font-size: 15px;
}

.notification-type {
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
}

.notification-type.info {
  background: rgba(223, 241, 255, 0.9);
  color: #186d92;
}

.notification-type.success {
  background: rgba(223, 245, 232, 0.9);
  color: #2d7a50;
}

.notification-type.warning {
  background: rgba(255, 227, 51, 0.25);
  color: #875f12;
}

.notification-item p {
  margin: 0;
  color: var(--subtle);
  font-size: 13px;
  line-height: 1.5;
}

.notification-time {
  display: inline-block;
  margin-top: 8px;
  font-size: 12px;
  color: var(--subtle);
}

.menu-item {
  position: relative;
}

.badge-dot {
  position: absolute;
  top: 11px;
  right: 13px;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(135deg, #ff6b6b, #ee5a5a);
  box-shadow: 0 2px 8px rgba(238, 90, 90, 0.4);
  animation: pulseBadge 2s ease-in-out infinite;
}

@keyframes pulseBadge {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.2);
    opacity: 0.8;
  }
}

.favorite-button {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  display: grid;
  place-items: center;
  box-shadow: 0 4px 12px rgba(212, 168, 88, 0.2);
  z-index: 10;
  transition: all 150ms ease;
}

.favorite-button:hover {
  transform: scale(1.1);
}

.favorite-button.active svg {
  fill: #ff6b6b;
  stroke: #ff6b6b;
}

.favorite-button svg {
  width: 20px;
  height: 20px;
  stroke: #8e7c67;
  fill: none;
  stroke-width: 2;
  transition: all 150ms ease;
}

.club-item {
  position: relative;
}

.hero-activities-banner {
  margin-top: 18px;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(255, 227, 51, 0.12), rgba(255, 184, 208, 0.1));
  border-radius: 14px;
  padding: 10px 0;
}

.hero-activities-scroll {
  display: flex;
  gap: 40px;
  animation: scrollActivities 25s linear infinite;
  white-space: nowrap;
}

.hero-activities-scroll:hover {
  animation-play-state: paused;
}

@keyframes scrollActivities {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.hero-activity-item {
  display: inline-block;
  font-size: 13px;
  color: #4a3528;
  font-weight: 500;
  padding: 4px 0;
}

.ai-card-head {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.ai-fill-button {
  margin-left: auto;
  background: linear-gradient(135deg, #ffe333, #ffb8d0);
  color: #4a3528;
  border: none;
  font-weight: 700;
  padding: 8px 14px;
  font-size: 13px;
}

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  animation: fadeIn 200ms ease-in;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal-container {
  background: white;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
  width: 90%;
  max-width: 400px;
  animation: slideUp 200ms ease-out;
}

@keyframes slideUp {
  from { 
    opacity: 0;
    transform: translateY(20px);
  }
  to { 
    opacity: 1;
    transform: translateY(0);
  }
}

.modal-header {
  padding: 20px 24px 16px;
  border-bottom: 1px solid #f0f0f0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-header h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  color: #4a3528;
}

.modal-close {
  background: none;
  border: none;
  font-size: 24px;
  color: #8e7c67;
  cursor: pointer;
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  transition: background 150ms ease;
}

.modal-close:hover {
  background: #f5f5f5;
}

.modal-body {
  padding: 24px;
  font-size: 16px;
  line-height: 1.6;
  color: #4a3528;
}

.modal-footer {
  padding: 0 24px 24px;
  display: flex;
  gap: 12px;
  justify-content: flex-end;
}

.modal-footer button {
  flex: 1;
  max-width: 120px;
}

.ai-chat-container {
  background: rgba(255, 255, 255, 0.94);
  border-radius: 22px;
  box-shadow: 0 10px 24px rgba(212, 168, 88, 0.12);
  margin-bottom: 16px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.74);
}

.ai-chat-messages {
  padding: 18px;
  max-height: 360px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.ai-message {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.user-message {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  flex-direction: row-reverse;
}

.message-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ffe333, #ffb8d0);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 800;
  flex-shrink: 0;
}

.user-message .message-avatar {
  background: linear-gradient(135deg, #a5c9ff, #6fa3ff);
}

.message-content {
  flex: 1;
  max-width: 80%;
}

.message-bubble {
  padding: 12px 14px;
  border-radius: 18px;
}

.assistant-bubble {
  background: linear-gradient(145deg, rgba(255, 244, 208, 0.9), rgba(255, 232, 241, 0.9));
}

.user-bubble {
  background: #fff;
  border: 1px solid rgba(80, 57, 33, 0.08);
}

.message-content p {
  margin: 0 0 10px 0;
  font-size: 14px;
  line-height: 1.5;
  color: #4a3528;
}

.message-content p:last-child {
  margin-bottom: 0;
}

.message-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.suggestion-button {
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(220, 210, 195, 0.55);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 12px;
  color: #4a3528;
  cursor: pointer;
  transition: all 150ms ease;
}

.suggestion-button:hover {
  background: #e9ecef;
  border-color: #dee2e6;
}

.ai-chat-input {
  padding: 14px 18px 16px;
  border-top: 1px solid rgba(80, 57, 33, 0.06);
  display: flex;
  gap: 10px;
  align-items: center;
}

#ai-chat-input-field {
  flex: 1;
  padding: 12px 16px;
  border: 1px solid rgba(220, 210, 195, 0.65);
  border-radius: 24px;
  font-size: 14px;
  outline: none;
  transition: border-color 150ms ease;
  background: rgba(255, 255, 255, 0.92);
}

#ai-chat-input-field:focus {
  border-color: #ffe333;
}

#ai-chat-send {
  width: 62px;
  min-width: 62px;
  height: 42px;
  margin-top: 0;
  padding: 0;
  border-radius: 999px;
  font-size: 14px;
}

.chat-recommend-list {
  display: grid;
  gap: 10px;
  margin-top: 10px;
}

.chat-recommend-card {
  width: 100%;
  text-align: left;
  padding: 12px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(220, 210, 195, 0.55);
}

.chat-recommend-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}

.chat-recommend-head strong {
  font-size: 14px;
}

.chat-recommend-head span {
  font-size: 11px;
  font-weight: 700;
  color: #875f12;
  background: rgba(255, 227, 51, 0.22);
  padding: 4px 8px;
  border-radius: 999px;
}

.chat-recommend-card p {
  font-size: 12px;
  line-height: 1.45;
  color: var(--subtle);
}

.chat-recommend-role {
  display: inline-block;
  margin-bottom: 8px;
  font-size: 11px;
  font-weight: 700;
  color: #9b6a1f;
}

.chat-recommend-meta {
  display: inline-block;
  margin-top: 8px;
  font-size: 11px;
  color: #8e7c67;
}

.chat-detail-button {
  margin-top: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  border-radius: 999px;
  background: linear-gradient(135deg, #ffe56e, #ffd7a8);
  color: #4a3528;
  font-size: 12px;
  font-weight: 700;
}

.ai-chat-messages::-webkit-scrollbar {
  width: 4px;
}

.ai-chat-messages::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 2px;
}

.ai-chat-messages::-webkit-scrollbar-thumb {
  background: #c1c1c1;
  border-radius: 2px;
}

.ai-chat-messages::-webkit-scrollbar-thumb:hover {
  background: #a8a8a8;
}
