@import url("./portal-header-auth.css");

:root {
  --page-max: 1520px;
  --page-pad: 24px;
  --navy: #1f4e8c;
  --navy-deep: #17375f;
  --navy-soft: #2d6fbc;
  --orange: #f0a12f;
  --orange-deep: #de6f1c;
  --green: #5aa73a;
  --green-deep: #3e8b2d;
  --success: #4aa963;
  --danger: #d96262;
  --text: #1d3659;
  --muted: #60758f;
  --line: #dbe5f3;
  --card: #ffffff;
  --shadow: 0 18px 34px rgba(27, 53, 93, 0.12);
  --shadow-sm: 0 10px 24px rgba(24, 52, 95, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 112vh;
  padding-bottom: 88px;
  font-family: "Trebuchet MS", "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background: linear-gradient(180deg, #ecf2fb 0, #f7f9fd 260px, #f8faff 100%);
}

a {
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
}

button,
input,
select,
textarea {
  font: inherit;
}

[v-cloak] {
  display: none;
}

.container {
  max-width: var(--page-max);
  margin: 0 auto;
  padding: 0 var(--page-pad);
}

.portal-header {
  background: linear-gradient(90deg, #1f467d, #315f9a 58%, #3768a6);
  color: #fff;
  box-shadow: 0 8px 18px rgba(18, 38, 68, 0.14);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.portal-header .container {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr) max-content;
  align-items: center;
  gap: 18px;
  min-height: 84px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 8px 10px 8px 0;
  text-decoration: none;
  color: #fff;
  flex: 0 0 auto;
}

.brand-mark {
  display: block;
  width: 70px;
  height: 70px;
  overflow: hidden;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  box-shadow: 0 12px 26px rgba(16, 36, 68, 0.22);
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.brand-text strong {
  font-size: 20px;
  line-height: 1;
}

.brand-text em {
  font-style: normal;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.78);
}

.top-nav {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex: 1 1 auto;
  flex-wrap: wrap;
  min-width: 0;
}

.top-nav a {
  padding: 10px 16px;
  border-radius: 999px;
  text-decoration: none;
  color: rgba(255, 255, 255, 0.84);
  font-size: 14px;
  font-weight: 700;
    transition: none;
}

.top-nav a:hover,
.top-nav a.active {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
}

.top-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex: 0 0 auto;
}

.top-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 18px;
  border-radius: 12px;
  text-decoration: none;
  font-size: 13px;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.top-btn.light {
  background: #fff;
  color: var(--navy);
}

.top-btn.accent {
  background: linear-gradient(135deg, var(--orange), var(--orange-deep));
  color: #fff;
  box-shadow: 0 10px 18px rgba(224, 111, 28, 0.28);
}

.top-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 16px rgba(19, 41, 75, 0.12);
}

.notice-strip {
  padding: 18px 0 8px;
}

.notice-frame {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow-sm);
}

.notice-label {
  flex: 0 0 auto;
  padding: 8px 14px;
  border-radius: 999px;
  background: #edf3fc;
  color: var(--navy);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.notice-marquee {
  flex: 1 1 auto;
  overflow: hidden;
}

.notice-list {
  display: inline-flex;
  align-items: center;
  gap: 42px;
  width: max-content;
  margin: 0;
  padding: 0 0 0 100%;
  list-style: none;
  animation: notice-scroll 16s linear infinite;
}

.notice-marquee:hover .notice-list {
  animation-play-state: paused;
}

.notice-list li a {
  color: #47607e;
  text-decoration: none;
  white-space: nowrap;
  font-size: 14px;
  font-weight: 600;
}

.notice-list li a:hover {
  color: var(--navy);
}

.toolbar-btn,
.action-btn,
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border: 0;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.toolbar-btn.primary,
.action-btn.primary,
.btn.primary {
  background: linear-gradient(135deg, var(--navy), var(--navy-soft));
  color: #fff;
  box-shadow: 0 10px 20px rgba(18, 40, 75, 0.22);
}

.btn.success {
  background: linear-gradient(135deg, var(--green), var(--green-deep));
  color: #fff;
  box-shadow: 0 10px 20px rgba(64, 139, 45, 0.22);
}

.action-btn.secondary {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.toolbar-btn.ghost,
.btn.ghost {
  background: #f4f7fc;
  color: #35537c;
  border: 1px solid var(--line);
}

.toolbar-btn:hover,
.action-btn:hover,
.btn:hover {
  transform: translateY(-1px);
}

.filter-section {
  position: relative;
  z-index: 5;
  margin-top: 12px;
}

.filter-card {
  padding: 24px;
  border-radius: 24px;
  background: #fff;
  border: 1px solid rgba(212, 224, 240, 0.88);
  box-shadow: var(--shadow);
}

.filter-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}

.filter-copy h2 {
  margin: 0;
  color: #1f4274;
  font-size: 28px;
}

.filter-copy p {
  margin: 8px 0 0;
  color: #667d98;
  line-height: 1.7;
}

.count-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 999px;
  background: #edf4ff;
  color: #275b9c;
  font-weight: 800;
  white-space: nowrap;
}

.keyword-search {
  margin-bottom: 20px;
}

.keyword-search-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: 14px;
  align-items: center;
}

.keyword-input-wrap {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 52px;
  padding: 0 20px;
  border: 1px solid #d6e0ef;
  border-radius: 14px;
  background: #f7fafd;
  transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.keyword-input-wrap:focus-within {
  border-color: #a6c0e5;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(43, 95, 170, 0.08);
}

.keyword-search-icon {
  position: relative;
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

.keyword-search-icon::before {
  content: "";
  position: absolute;
  inset: 0;
  border: 2px solid #6f86a7;
  border-radius: 50%;
}

.keyword-search-icon::after {
  content: "";
  position: absolute;
  right: -4px;
  bottom: 1px;
  width: 8px;
  height: 2px;
  border-radius: 999px;
  background: #6f86a7;
  transform: rotate(45deg);
}

.keyword-input-wrap input {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 50px;
  border: 0;
  outline: 0;
  padding: 0;
  background: transparent;
  color: #27405f;
  font-size: 15px;
  font-weight: 600;
}

.keyword-input-wrap input::placeholder {
  color: #7b8da6;
  font-size: 15px;
  font-weight: 600;
}

.keyword-search-btn {
  min-height: 52px;
  padding: 0 24px;
  border-radius: 14px;
}

.filters-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) max-content;
  gap: 14px;
  align-items: end;
}

.filter-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.filter-field span {
  color: #43617f;
  font-size: 13px;
  font-weight: 800;
}

.filter-field select {
  min-height: 52px;
  padding: 0 16px;
  border: 1px solid #d6e0ef;
  border-radius: 14px;
  background: #f7fafd;
  color: #27405f;
  outline: 0;
  transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.filter-field select:focus {
  border-color: #a6c0e5;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(43, 95, 170, 0.08);
}

.filter-actions {
  display: flex;
  gap: 12px;
  align-items: center;
}

.quick-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 18px;
}

.quick-pill {
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid #dde7f4;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: #294566;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.quick-pill:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(31, 63, 109, 0.08);
}

.quick-pill.active {
  background: linear-gradient(135deg, var(--navy), var(--navy-soft));
  border-color: transparent;
  color: #fff;
}

.quick-pill.sports:not(.active) {
  color: #99650f;
}

.quick-pill.academic:not(.active) {
  color: #36538a;
}

.quick-pill.arts:not(.active) {
  color: #7e4f92;
}

.results-section {
  padding: 28px 0 42px;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}

.section-head h2 {
  margin: 0;
  color: #1f4274;
  font-size: 30px;
}

.section-head p {
  margin: 8px 0 0;
  color: #667d98;
  line-height: 1.8;
}

.section-link {
  color: #2a69b7;
  text-decoration: none;
  font-weight: 800;
}

.section-link:hover {
  color: #1f4e8c;
}

.booking-success-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
  padding: 16px 18px;
  border: 1px solid rgba(92, 182, 109, 0.28);
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(234, 251, 237, 0.96), rgba(243, 250, 255, 0.96));
  box-shadow: 0 10px 22px rgba(64, 139, 45, 0.08);
}

.booking-success-copy {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.booking-success-copy strong {
  color: #2d7d34;
  font-size: 16px;
}

.booking-success-copy span {
  color: #5e7390;
  font-size: 14px;
  line-height: 1.7;
}

.banner-link-btn {
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid #cfe0f4;
  border-radius: 999px;
  background: #fff;
  color: #2b5c9b;
  font-weight: 800;
  cursor: pointer;
}

.date-nav-bar {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 14px;
}

.nav-btn {
  min-width: 56px;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid #d6e0ef;
  border-radius: 12px;
  background: #f3f7fd;
  color: #27405f;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.nav-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(31, 63, 109, 0.08);
}

.nav-btn:disabled {
  cursor: not-allowed;
  opacity: 0.48;
  transform: none;
  box-shadow: none;
}

.date-display {
  min-height: 44px;
  position: relative;
  display: flex;
  align-items: center;
  padding: 0 16px;
  border: 1px solid #d6e0ef;
  border-radius: 12px;
  background: #fff;
  color: #27405f;
  font-weight: 700;
}

.date-picker-wrap {
  position: relative;
  flex: 1 1 auto;
}

.date-picker-box {
  width: 100%;
  overflow: hidden;
  justify-content: space-between;
  gap: 12px;
  text-align: left;
  cursor: pointer;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.date-picker-box:hover {
  border-color: #8aaedf;
  box-shadow: 0 8px 18px rgba(31, 63, 109, 0.08);
  transform: translateY(-1px);
}

.date-picker-box:focus-within {
  border-color: #89afe0;
  box-shadow: 0 0 0 4px rgba(63, 121, 199, 0.12);
}

.date-picker-box[aria-expanded="true"] {
  border-color: #89afe0;
  box-shadow: 0 0 0 4px rgba(63, 121, 199, 0.12);
}

.date-picker-box:focus-visible {
  border-color: #89afe0;
  box-shadow: 0 0 0 4px rgba(63, 121, 199, 0.12);
}

.date-display-text {
  position: relative;
  z-index: 1;
  pointer-events: none;
}

.date-display-icon {
  position: relative;
  z-index: 1;
  margin-left: auto;
  width: 22px;
  height: 22px;
  border: 2px solid #7f9ec7;
  border-radius: 7px;
  background: linear-gradient(180deg, #fafdff, #edf4fd);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75);
  pointer-events: none;
}

.date-display-icon::before,
.date-display-icon::after {
  content: "";
  position: absolute;
  top: 4px;
  width: 3px;
  height: 5px;
  border-radius: 999px;
  background: #4f74a9;
}

.date-display-icon::before {
  left: 4px;
}

.date-display-icon::after {
  right: 4px;
}

.date-display-icon-top {
  position: absolute;
  top: 7px;
  left: 3px;
  right: 3px;
  height: 5px;
  border-radius: 3px;
  background: #7f9ec7;
}

.date-display-icon-top::before {
  content: "";
  position: absolute;
  top: 8px;
  left: 4px;
  right: 4px;
  height: 2px;
  background:
    linear-gradient(90deg, #c0d3ea 0, #c0d3ea 45%, transparent 45%, transparent 55%, #c0d3ea 55%, #c0d3ea 100%);
}

.date-picker-panel {
  position: absolute;
  top: calc(100% + 12px);
  left: 0;
  z-index: 30;
  width: 360px;
  max-width: 100%;
  padding: 16px;
  border: 1px solid #d5e2f3;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 16px 34px rgba(24, 52, 95, 0.16);
}

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

.date-picker-head strong {
  color: #17375f;
  font-size: 16px;
}

.date-picker-switch {
  width: 36px;
  height: 36px;
  border: 1px solid #d6e0ef;
  border-radius: 10px;
  background: #f3f7fd;
  color: #27405f;
  font-weight: 800;
  cursor: pointer;
}

.date-picker-switch:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.date-picker-weekdays,
.date-picker-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 6px;
}

.date-picker-weekdays {
  margin-bottom: 8px;
}

.date-picker-weekdays span {
  text-align: center;
  color: #7a8ea9;
  font-size: 12px;
  font-weight: 800;
}

.date-picker-day {
  min-height: 40px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: #f7faff;
  color: #27405f;
  font-weight: 700;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.date-picker-day:hover:not(:disabled) {
  border-color: #90b2df;
  background: #edf4fe;
  transform: translateY(-1px);
}

.date-picker-day.muted {
  color: #a0b0c5;
  background: #fbfcfe;
}

.date-picker-day.today {
  border-color: #9bbbe4;
}

.date-picker-day.selected {
  border-color: #2f6fc4;
  background: linear-gradient(135deg, #3276ce, #1f4f8f);
  color: #fff;
  box-shadow: 0 10px 18px rgba(31, 79, 143, 0.22);
}

.date-picker-day:disabled {
  opacity: 0.42;
  cursor: not-allowed;
  transform: none;
}

.schedule-date-nav {
  margin: 18px 20px 0;
}

.schedule-date-nav .date-display {
  font-size: 16px;
  font-weight: 800;
}

.schedule-date-nav .date-picker-box {
  justify-content: space-between;
}

.more-search-note {
  margin-bottom: 18px;
  color: #5a76a0;
  font-size: 14px;
}

.club-list-container {
  display: grid;
  gap: 16px;
}

.club-list-card {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr) minmax(380px, 420px);
  gap: 18px;
  align-items: center;
  padding: 18px;
  border: 1px solid #dbe4f0;
  border-radius: 24px;
  background: #fff;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.club-list-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.club-list-thumb {
  width: 100%;
  height: 160px;
  overflow: hidden;
  border-radius: 18px;
  background: #dce6f6;
}

.club-list-thumb-image,
.schedule-thumb-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.club-thumb-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    linear-gradient(180deg, rgba(245, 249, 255, 0.98), rgba(231, 239, 251, 0.98));
}

.club-thumb-empty-state {
  color: #7e93b0;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-align: center;
}

.club-list-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}

.club-list-header {
  min-height: 0;
}

.club-list-title {
  margin: 0;
  color: #1f4274;
  font-size: 28px;
}

.club-list-subtitle {
  margin-top: 8px;
  color: #4b6c95;
  font-size: 15px;
  font-weight: 700;
}

.club-list-tags {
  margin-top: 8px;
  color: #5f7590;
  line-height: 1.7;
}

.club-list-side {
  display: grid;
  grid-template-columns: minmax(190px, 1fr) minmax(168px, 180px);
  gap: 12px;
  align-items: center;
}

.club-list-stats {
  display: grid;
  gap: 12px;
  align-content: center;
  min-width: 0;
}

.club-list-stats span {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid #d6e0ef;
  border-radius: 999px;
  background: #fff;
  color: #35537c;
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
  overflow: hidden;
}

.club-list-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  margin-top: 16px;
  color: #5f7590;
  line-height: 1.7;
}

.club-list-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: #f8fbff;
  border: 1px solid var(--line);
}

.club-list-actions {
  display: grid;
  gap: 12px;
  align-content: center;
}

.club-list-actions .action-btn {
  width: 100%;
  min-height: 52px;
  font-size: 15px;
  border-radius: 16px;
}

.club-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.club-card,
.schedule-main-card,
.info-card {
  background: var(--card);
  border: 1px solid #dbe4f0;
  border-radius: 24px;
  box-shadow: var(--shadow-sm);
}

.club-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  overflow: hidden;
}

.club-cover {
  position: relative;
  height: 220px;
  overflow: hidden;
  background: #dce6f6;
}

.club-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  transition: transform 0.25s ease;
}

.club-card:hover .club-cover img {
  transform: scale(1.03);
}

.club-tag {
  position: absolute;
  top: 14px;
  left: 14px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(15, 37, 68, 0.78);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.club-body {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  padding: 20px;
}

.club-name {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin: 0 0 12px;
  color: #1f4274;
  font-size: 22px;
}

.club-name span:first-child {
  flex: 1 1 auto;
  min-width: 0;
}

.club-mode {
  flex: 0 0 auto;
  margin-top: 4px;
  padding: 5px 10px;
  border-radius: 999px;
  background: #f3f7fd;
  border: 1px solid #d8e4f2;
  color: #537090;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.club-desc {
  min-height: 88px;
  margin: 0;
  color: #5b708b;
  line-height: 1.8;
}

.club-tags,
.schedule-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-height: 38px;
  margin-top: 14px;
}

.club-tag-pill {
  padding: 6px 10px;
  border: 1px solid #dbe5f3;
  border-radius: 999px;
  background: #f6f9fe;
  color: #36537b;
  font-size: 12px;
  font-weight: 700;
}

.club-meta {
  display: grid;
  gap: 10px;
  margin-top: 16px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #f8fbff;
  color: #60758f;
  font-size: 14px;
  line-height: 1.7;
}

.club-meta span {
  color: #25446e;
  font-weight: 700;
}

.club-actions {
  display: flex;
  gap: 12px;
  padding: 0 20px 20px;
}

.club-actions .action-btn {
  flex: 1 1 0;
}

.action-btn.secondary {
  background: #f5f8fd;
  color: #284c7b;
  border: 1px solid #d8e4f2;
}

.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 48px 24px;
  border: 1px solid rgba(212, 224, 240, 0.88);
  border-radius: 24px;
  background: #fff;
  box-shadow: var(--shadow-sm);
  text-align: center;
}

.empty-state h3 {
  margin: 0;
  color: #1f4274;
  font-size: 26px;
}

.empty-state p {
  max-width: 40ch;
  margin: 0;
  color: #667d98;
  line-height: 1.8;
}

.schedule-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) 320px;
  gap: 20px;
  align-items: start;
}

.schedule-main-card {
  overflow: hidden;
}

.schedule-club-head {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 20px;
  padding: 24px;
  border-bottom: 1px solid var(--line);
}

.schedule-thumb {
  width: 100%;
  height: 190px;
  overflow: hidden;
  border-radius: 18px;
  background: #dce6f6;
}

.schedule-kicker {
  color: #6a80a0;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.schedule-club-copy h3 {
  margin: 10px 0 10px;
  color: #1f4274;
  font-size: 30px;
}

.schedule-club-copy p {
  margin: 0;
  color: #5f7590;
  line-height: 1.8;
}

.legend-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  padding: 14px 20px 0;
}

.legend-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #60758f;
  font-size: 13px;
  font-weight: 700;
}

.legend-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.legend-dot.available {
  background: #b7bfca;
}

.legend-dot.mine {
  background: var(--success);
}

.legend-dot.full {
  background: var(--danger);
}

.schedule-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  align-items: start;
  gap: 12px;
  padding: 16px 20px 20px;
  overflow-x: hidden;
}

.day-column {
  display: grid;
  align-content: start;
  align-self: start;
  grid-auto-rows: max-content;
  gap: 8px;
  min-width: 0;
  width: 100%;
}

.day-head {
  display: grid;
  align-content: center;
  gap: 3px;
  min-height: 52px;
  padding: 10px 12px;
  border: 1px solid #dbe5f3;
  border-radius: 16px;
  background: #f7fafd;
  text-align: center;
}

.day-head strong {
  color: #25446e;
  font-size: 15px;
}

.day-head span {
  color: #6e84a2;
  font-size: 13px;
  font-weight: 700;
}

.slot-card {
  min-height: 76px;
  width: 100%;
  padding: 12px 10px;
  border: 1px solid transparent;
  border-radius: 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  text-align: center;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.slot-card:disabled {
  opacity: 1;
}

.slot-card strong {
  font-size: 15px;
}

.slot-card span {
  font-size: 12px;
  font-weight: 700;
}

.slot-card.available {
  background: #edf0f4;
  border-color: #d5dbe4;
  color: #334a67;
}

.slot-card.available:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 18px rgba(68, 84, 106, 0.14);
}

.slot-card.mine {
  background: linear-gradient(135deg, #58b36d, #46985a);
  color: #fff;
}

.slot-card.expired {
  background: linear-gradient(135deg, #ea6f6f, #cf4b4b);
  border-color: rgba(195, 56, 56, 0.2);
  color: #fff;
  cursor: not-allowed;
  box-shadow: 0 12px 20px rgba(207, 75, 75, 0.14);
}

.slot-card.expired strong {
  text-decoration: line-through;
}

.slot-card.recent-paid-slot {
  position: relative;
  box-shadow: 0 0 0 4px rgba(74, 169, 99, 0.16), 0 18px 28px rgba(64, 139, 45, 0.18);
  animation: recent-booking-pulse 1.6s ease-in-out infinite;
}

.slot-card.recent-paid-slot::after {
  content: "Just booked";
  position: absolute;
  top: 8px;
  right: 8px;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.96);
  color: #2e7d32;
  font-size: 11px;
  font-weight: 800;
  box-shadow: 0 8px 16px rgba(46, 125, 50, 0.14);
}

.slot-card.full {
  background: linear-gradient(135deg, #e56d6d, #cf4d4d);
  color: #fff;
  cursor: not-allowed;
  opacity: 0.94;
}

.slot-card.mine span,
.slot-card.expired span,
.slot-card.full span {
  color: rgba(255, 255, 255, 0.88);
}

.schedule-side {
  display: grid;
  gap: 20px;
}

.info-card {
  padding: 22px;
}

.info-card h3 {
  margin: 0 0 14px;
  color: #1f4274;
  font-size: 20px;
}

.info-card p {
  margin: 0;
  color: #60758f;
  line-height: 1.8;
}

.info-list {
  display: grid;
  gap: 12px;
  color: #60758f;
  line-height: 1.7;
}

.info-list span {
  color: #24456f;
  font-weight: 800;
}

.hint-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.hint-item {
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #f8fbff;
  color: #5b708b;
  line-height: 1.7;
}

.side-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 16px;
}

.modal-mask {
  position: fixed;
  inset: 0;
  background: rgba(10, 24, 44, 0.52);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  z-index: 999;
}

.modal {
  width: 520px;
  max-width: 100%;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 22px 48px rgba(16, 34, 63, 0.22);
  overflow: hidden;
}

.modal-head {
  padding: 16px 18px;
  border-bottom: 1px solid #edf2f9;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.modal-head h3 {
  margin: 0;
  color: #1f4274;
  font-size: 18px;
}

.close-x {
  cursor: pointer;
  color: #5f7590;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid #e4ebf5;
  background: #fff;
  user-select: none;
}

.close-x:hover {
  background: #f7fafd;
}

.modal-body {
  padding: 20px 18px;
}

.modal-text {
  color: #546a85;
  line-height: 1.8;
}

.summary {
  display: grid;
  gap: 10px;
  color: #60758f;
  font-size: 14px;
}

.summary span {
  color: #24456f;
  font-weight: 800;
}

.modal-actions {
  margin-top: 16px;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.footer {
  background: linear-gradient(180deg, #234a83, #1f406f);
  color: #fff;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 20px 24px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.footer-links a {
  color: #dce7f7;
  text-decoration: none;
  font-size: 14px;
}

.footer p {
  margin: 0;
  font-size: 13px;
}

@keyframes notice-scroll {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-100%);
  }
}

@keyframes recent-booking-pulse {
  0%, 100% {
    transform: translateY(0);
    box-shadow: 0 0 0 4px rgba(74, 169, 99, 0.14), 0 18px 28px rgba(64, 139, 45, 0.16);
  }

  50% {
    transform: translateY(-2px);
    box-shadow: 0 0 0 8px rgba(74, 169, 99, 0.08), 0 22px 32px rgba(64, 139, 45, 0.22);
  }
}

@media (max-width: 1320px) {
  .club-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 1180px) {
  .portal-header .container {
    grid-template-columns: 1fr auto;
    padding-top: 12px;
    padding-bottom: 12px;
  }

  .top-nav {
    order: 3;
    grid-column: 1 / -1;
    width: 100%;
    justify-content: center;
  }

  .filters-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .filter-actions {
    grid-column: 1 / -1;
  }

  .schedule-layout {
    grid-template-columns: 1fr;
  }

  .club-list-card {
    grid-template-columns: 220px minmax(0, 1fr) 300px;
  }
}

@media (max-width: 920px) {
  .filter-section {
    margin-top: 12px;
  }

  .filter-head,
  .section-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .club-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .schedule-club-head {
    grid-template-columns: 1fr;
  }

  .schedule-thumb {
    height: 220px;
  }

  .schedule-grid {
    grid-template-columns: repeat(4, minmax(140px, 1fr));
  }

  .club-list-card {
    grid-template-columns: 1fr;
  }

  .club-list-thumb {
    height: 220px;
  }

  .club-list-side {
    grid-template-columns: 1fr;
  }

  .club-list-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  :root {
    --page-pad: 18px;
  }

  .portal-header .container {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .brand {
    width: 100%;
  }

  .top-nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .top-nav a {
    text-align: center;
  }

  .top-actions {
    width: 100%;
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  .notice-frame {
    align-items: flex-start;
    flex-direction: column;
  }

  .filter-card {
    padding: 20px;
    border-radius: 20px;
  }

  .keyword-search-row {
    grid-template-columns: 1fr;
  }

  .filters-grid,
  .club-grid {
    grid-template-columns: 1fr;
  }

  .filter-actions,
  .club-actions,
  .club-list-actions,
  .modal-actions {
    flex-direction: column;
  }

  .schedule-grid {
    grid-template-columns: repeat(2, minmax(140px, 1fr));
  }

  .date-nav-bar {
    flex-wrap: wrap;
  }

  .date-display {
    width: 100%;
  }

  .date-picker-panel {
    width: 100%;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 520px) {
  .brand-mark {
    width: 48px;
    height: 48px;
    border-radius: 14px;
  }

  .brand-text strong {
    font-size: 16px;
  }

  .top-nav {
    grid-template-columns: 1fr;
  }

  .schedule-grid {
    grid-template-columns: 1fr;
  }

  .footer-links {
    width: 100%;
  }

  .nav-btn,
  .toolbar-btn,
  .action-btn,
  .btn {
    width: 100%;
  }
}
