/* ======================================================
   會員中心 — dashboard.css
   com_agolf  |  2026 All Round Golf Corp., Ltd.
   參考 https://agolf.esun.tw/admin 設計
   ====================================================== */

/* ── 變數 ── */
:root {
  --mc-gold:        #c89a40;
  --mc-gold-light:  #f5eacc;
  --mc-gold-dark:   #9b7527;
  --mc-green:       #74986a;
  --mc-green-light: #d3eccc;
  --mc-sidebar-bg:  #fff;
  --mc-sidebar-w:   380px;
  --mc-border:      #e0d5c0;
  --mc-text:        #333;
  --mc-text-muted:  #888;
  --mc-white:       #fff;
  --mc-danger:      #d64545;
  --mc-warn:        #e6a817;
  --mc-success:     #3aab5c;
  --mc-radius:      12px;
  --mc-font:        'Inter', 'Noto Sans TC', sans-serif;
}

/* ── 滿版：覆蓋 Joomla / Helix Ultimate 模板的 container 限制 ── */
#sp-main-body:has(.HOcontainer) {
  padding: 0 !important;
}
#sp-main-body:has(.HOcontainer) > .container {
  max-width: 100% !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}
#sp-main-body:has(.HOcontainer) .container-inner {
  padding: 0 !important;
}
#sp-main-body:has(.HOcontainer) .row {
  --bs-gutter-x: 0;
  margin-left: 0 !important;
  margin-right: 0 !important;
}
#sp-main-body:has(.HOcontainer) #sp-component {
  padding-left: 0 !important;
  padding-right: 0 !important;
}
#sp-main-body:has(.HOcontainer) #sp-component > .sp-column {
  padding: 0 !important;
}

/* ── 主容器（同 HOcontainer）── */
.HOcontainer {
  display: flex;
  min-height: 600px;
  width: 100%;
  font-family: var(--mc-font);
  color: var(--mc-text);
}

/* ── 左側選單（同 HOleft-section）── */
.HOleft-section {
  width: var(--mc-sidebar-w);
  flex: 0 0 var(--mc-sidebar-w);
  background: var(--mc-sidebar-bg);
  padding: 32px 24px;
  overflow-y: auto;
  box-shadow: 2px 0 8px rgba(0,0,0,.05);
}

/* 標題＋會員資訊卡 */
.HOservice-header {
  text-align: center;
  margin-bottom: 32px;
}
.HOservice-title-g {
  color: var(--mc-gold);
  font-size: 24px;
  font-weight: bold;
  margin: 0 0 24px 0;
  font-family: 'Noto Sans TC', sans-serif;
}
.HOmember-info-g {
  background: var(--mc-gold);
  color: #fff;
  padding: 20px;
  border-radius: 12px;
  margin-bottom: 24px;
  box-shadow: 0 4px 12px rgba(200,154,64,.3);
}
.HOmember-info-g h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  color: #fff;
}
.HOmember-info-g p {
  margin: 4px 0 0;
  font-size: 15px;
  opacity: .85;
}

/* ── 選單群組共通 ── */
.menu-section,
.menu-section-g {
  margin-bottom: 24px;
}

/* 標準分類標題（金色） */
.menu-category {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #d4ae64;
  font-size: 16px;
  font-weight: bold;
  margin-bottom: 12px;
  padding: 8px 0;
  border-bottom: 2px solid #d4ae64;
}
.menu-category .material-icons {
  font-size: 20px;
}

/* ── 選單開合切換 ── */
.menu-toggle {
  cursor: pointer;
  user-select: none;
  justify-content: space-between;
  transition: opacity .25s ease;
}
.menu-toggle:hover {
  opacity: .8;
}
.menu-toggle-left {
  display: flex;
  align-items: center;
  gap: 8px;
}
.menu-chevron {
  display: flex;
  align-items: center;
  transition: transform .35s cubic-bezier(.4,0,.2,1);
  font-size: 14px;
}
.menu-toggle.is-collapsed .menu-chevron {
  transform: rotate(180deg);
}

/* ── 可摺疊面板動畫 ── */
.menu-collapsible {
  overflow: hidden;
  transition: height .35s cubic-bezier(.4,0,.2,1), opacity .3s ease;
  opacity: 1;
}
.menu-collapsible.is-collapsed {
  height: 0 !important;
  opacity: 0;
  margin: 0;
}

/* 會員球敘資料分類（金色，含上方距離）*/
.menu-category-member {
  margin-top: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #d4ae64;
  font-size: 16px;
  font-weight: bold;
  margin-bottom: 12px;
  padding: 8px 0;
  border-bottom: 2px solid #d4ae64;
}
.menu-category-member .menu-chevron {
  color: #d4ae64;
}

/* 約球人群組（綠底） */
.menu-section-g {
  background: var(--mc-green) !important;
  padding: 10px;
  border-radius: 12px;
}
.menu-category-w {
  color: #fff;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  font-weight: bold;
  margin-bottom: 12px;
  padding: 8px 0;
  border-bottom: 2px solid #fff;
}
.menu-category-w .menu-chevron {
  color: #fff;
}

/* 白色 Material icon（約球人群組專用）*/
.material-icons-w {
  font-family: 'Material Icons';
  font-weight: normal;
  font-style: normal;
  font-size: 24px;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  display: inline-block;
  white-space: nowrap;
  word-wrap: normal;
  direction: ltr;
  color: #fff;
  -webkit-font-feature-settings: 'liga';
  -webkit-font-smoothing: antialiased;
}

/* 選單子項目 */
.menu-items {
  margin-left: 28px;
}

.menu-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  margin-bottom: 8px;
  background: #f9f9f9;
  border-radius: 8px;
  cursor: pointer;
  transition: all .3s ease;
  border-left: 3px solid transparent;
  text-decoration: none;
  color: inherit;
}
.menu-item:hover {
  background: #fff8ed;
  transform: translateX(4px);
  box-shadow: 0 2px 8px rgba(212,174,100,.2);
}
.menu-item.is-active {
  background: #fff8ed;
  border-left-color: var(--mc-gold);
  font-weight: 600;
}

.menu-item-text {
  color: var(--mc-text);
  font-size: 16px;
}

/* 計數徽章 */
.menu-item-count {
  background: #d4ae64;
  color: #fff;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 16px;
  font-weight: bold;
}
.menu-item-count-w {
  background: var(--mc-green);
  color: #fff;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 16px;
  font-weight: bold;
}

/* ── 右側內容區 ── */
.HOright-section {
  flex: 1;
  background: #fff;
  padding: 32px;
  overflow-y: auto;
  border-left: 1px solid #e0e0e0;
}
.HOright-section h2 {
  color: var(--mc-text);
  font-size: 28px;
  padding-bottom: 16px;
}

.HOright-section-g {
  flex: 1;
  background: var(--mc-green);
  padding: 32px;
  overflow-y: auto;
  border-left: 1px solid #fff;
}
.HOright-section-g h2 {
  color: #fff !important;
  font-size: 28px;
  padding-bottom: 16px;
}

/* ── 頁面標題列 ── */
.page-titlebar {
  border-bottom: 3px solid #d4ae64;
  padding-bottom: 6px;
  margin-bottom: 18px;
}
.page-titlebar-g {
  border-bottom: 3px solid #fff;
  padding-bottom: 6px;
  margin-bottom: 18px;
}

/* ── 區塊標題（白底用） ── */
.mc-section-title {
  font-size: 22px;
  font-weight: 700;
  margin: 0 0 18px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--mc-gold);
}
.HOright-section-g .mc-section-title {
  color: #fff;
  border-bottom-color: #fff;
}

.mc-subtitle {
  font-size: 17px;
  font-weight: 600;
  margin: 20px 0 12px;
}

/* ── 書簽子標題 ── */
.go-booking-subtitle {
  font-size: 18px;
  font-weight: 700;
  margin: 0;
  color: #333;
}

/* ── 標題 + 分頁器橫排 ── */
.go-subtitle-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
}
.go-pager {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.go-pager-size {
  font-size: 13px;
  color: #666;
  display: flex;
  align-items: center;
  gap: 4px;
}
.go-pager-size select {
  background: #fff;
  color: #333;
  border: 1px solid #ccc;
  border-radius: 6px;
  padding: 3px 6px;
  font-size: 13px;
  cursor: pointer;
}
.go-pager-size select option {
  background: #fff;
  color: #333;
}
.go-pager-info {
  font-size: 13px;
  color: #888;
  white-space: nowrap;
}
.go-pager-nav {
  display: flex;
  align-items: center;
  gap: 2px;
}
.go-pager-nav button {
  min-width: 30px;
  height: 30px;
  border: 1px solid #ccc;
  border-radius: 6px;
  background: #fff;
  color: #555;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: background .15s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.go-pager-nav button:hover:not(:disabled) {
  background: #f0e8d8;
  border-color: var(--mc-gold);
  color: var(--mc-gold);
}
.go-pager-nav button:disabled {
  opacity: .35;
  cursor: not-allowed;
}
.go-pager-nav button.is-current {
  background: var(--mc-gold);
  border-color: var(--mc-gold);
  color: #fff;
}
.go-pager-pages {
  display: flex;
  gap: 2px;
}

/* ── 空白提示 ── */
.mc-empty {
  text-align: center;
  padding: 60px 20px;
  color: var(--mc-text-muted);
}
.mc-empty .material-icons-outlined,
.mc-empty .material-icons {
  font-size: 56px;
  color: var(--mc-border);
  display: block;
  margin-bottom: 12px;
}
.HObooking-empty {
  text-align: center;
  color: #999;
  background: #fff;
  border-radius: 16px;
  padding: 40px 20px;
}
.HObooking-empty .material-icons {
  font-size: 80px;
  color: #d4ae64;
  margin-bottom: 16px;
}
.HObooking-empty .material-icons-g {
  font-size: 80px;
  color: var(--mc-green);
  margin-bottom: 16px;
}

/* ── 約球人說明介紹（白底框） ── */
.go-organizer-intro {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 16px rgba(0,0,0,.06);
  padding: 18px 20px 20px;
  margin-bottom: 20px;
  font-size: 15px;
  color: #555;
  line-height: 1.7;
}
.go-organizer-intro strong {
  color: var(--mc-green);
}
.go-organizer-intro ul {
  margin: 8px 0 0;
  padding-left: 20px;
}
.go-organizer-intro li {
  margin-bottom: 4px;
}

/* ── 統計卡片 ── */
.go-organizer-summary {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.go-organizer-card {
  flex: 1;
  min-width: 220px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0,0,0,.05);
  padding: 12px 16px;
}
.go-filter-card {
  cursor: pointer;
  transition: box-shadow .25s, border-color .25s, transform .15s;
  border: 2px solid transparent;
}
.go-filter-card:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,.12);
  transform: translateY(-1px);
}
.go-filter-card.is-active {
  border-color: var(--mc-gold);
  box-shadow: 0 4px 16px rgba(200,154,64,.30);
}

/* Loading overlay */
.go-table-overlay {
  position: relative;
  display: none;
  justify-content: center;
  align-items: center;
  height: 0;
  overflow: visible;
  z-index: 10;
  pointer-events: none;
}
.go-table-overlay.is-visible {
  display: flex;
}
.go-table-overlay.is-visible + .go-point-tablewrap {
  opacity: .35;
  pointer-events: none;
  transition: opacity .15s;
}
.go-point-tablewrap {
  transition: opacity .25s;
}
.go-table-spinner {
  position: absolute;
  top: 80px;
  width: 36px;
  height: 36px;
  border: 4px solid rgba(200,154,64,.25);
  border-top-color: var(--mc-gold);
  border-radius: 50%;
  animation: goSpin .7s linear infinite;
  z-index: 11;
}
@keyframes goSpin {
  to { transform: rotate(360deg); }
}
.go-organizer-card-label {
  font-size: 13px;
  color: #777;
  margin-bottom: 4px;
}
.go-organizer-card-value {
  font-size: 20px;
  font-weight: 700;
  color: var(--mc-text);
}
.go-organizer-card-tag {
  font-size: 16px;
  color: var(--mc-green);
  margin-top: 2px;
}

/* ── 表格（綠色表頭，for host sections） ── */
.go-point-tablewrap {
  background: #fff;
  border-radius: 16px;
  padding: 16px 20px;
  overflow-x: auto;
}
.go-point-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
}
.go-point-table thead th {
  font-size: 16px;
  font-weight: 400;
  color: #000;
  padding: 8px 10px;
  border-bottom: 2px solid var(--mc-green);
  background: var(--mc-green-light);
  text-align: left;
}
.go-point-table tbody td {
  padding: 10px;
  border-bottom: 1px solid #f0f0f0;
  font-size: 15px;
  vertical-align: middle;
}
.go-point-table tbody tr:last-child td {
  border-bottom: none;
}

/* 已取消列灰色 */
.go-row-cancelled td {
  background: #f4f2f2 !important;
}
.go-row-cancelled td,
.go-row-cancelled small {
  color: #666;
}

/* 流程說明（綠底白字） */
.go-status-note {
  margin-top: 16px;
  font-size: 16px;
  color: #fff;
}
.go-status-note ul {
  margin: 6px 0 0;
  padding-left: 20px;
}
.go-status-note li {
  margin-bottom: 4px;
}

/* ── 按鈕 ── */
.mc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 18px;
  border-radius: 24px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all .2s;
  white-space: nowrap;
}
.mc-btn--primary {
  background: var(--mc-gold);
  color: #fff;
}
.mc-btn--primary:hover { background: var(--mc-gold-dark); }
.mc-btn--outline {
  background: transparent;
  color: var(--mc-gold-dark);
  border-color: var(--mc-gold);
}
.mc-btn--outline:hover { background: var(--mc-gold-light); }
.mc-btn--danger {
  background: transparent;
  color: var(--mc-danger);
  border-color: var(--mc-danger);
}
.mc-btn--danger:hover { background: #fdeaea; }

/* 綠色按鈕（host 區域專用） */
.go-btn-g {
  background: var(--mc-green);
  color: #fff;
  border: 0;
  border-radius: 10px;
  padding: 10px 20px;
  font-weight: 700;
  letter-spacing: .05em;
  cursor: pointer;
  transition: all .2s ease;
  min-width: 120px;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  font-size: 16px;
}
.go-btn-g:hover { filter: brightness(.92); }
.go-btn-outline-g {
  background: #fff;
  color: var(--mc-green);
  border: 1px solid var(--mc-green);
  border-radius: 10px;
  padding: 10px;
  font-weight: 700;
  letter-spacing: .05em;
  cursor: pointer;
  transition: all .2s ease;
  min-width: 140px;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  font-size: 16px;
}
.go-btn-outline-g:hover { filter: brightness(.95); }
.go-btn-outline-r {
  background: #fff;
  color: #d32f2f;
  border: 1px solid #d32f2f;
  border-radius: 10px;
  padding: 10px;
  font-weight: 700;
  letter-spacing: .05em;
  cursor: pointer;
  transition: all .2s ease;
  min-width: 140px;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  font-size: 16px;
}
.go-btn-outline-r:hover { filter: brightness(.95); }
.go-btn-danger {
  padding: 10px 16px;
  border-radius: 12px;
  border: 0;
  background: var(--mc-danger);
  color: #fff;
  font-weight: 900;
  cursor: pointer;
}

/* 取消整場按鈕 */
.go-cancel-session-btn {
  background: var(--mc-danger) !important;
  color: #fff !important;
  border: 0 !important;
  border-radius: 10px;
  padding: 10px 18px;
  font-weight: 800;
  cursor: pointer;
  min-width: 120px;
  margin-top: 12px;
}
.go-cancel-session-btn:hover { filter: brightness(.92); }

/* ── 金色按鈕（會員區域） ── */
.go-btn {
  background: var(--mc-gold);
  color: #fff;
  border: 0;
  border-radius: 10px;
  padding: 10px 20px;
  font-weight: 700;
  letter-spacing: .05em;
  cursor: pointer;
  transition: all .2s ease;
  min-width: 120px;
  text-align: center;
  font-size: 16px;
}
.go-btn:hover { filter: brightness(.95); }

/* ── 卡片列表（保留 booked/waitlist/completed 使用） ── */
.mc-cards { display: flex; flex-direction: column; gap: 16px; }

.mc-card {
  position: relative;
  display: grid;
  grid-template-columns: 120px 1fr auto auto;
  gap: 16px;
  align-items: center;
  background: var(--mc-white);
  border: 1px solid var(--mc-border);
  border-radius: var(--mc-radius);
  padding: 18px 20px;
  transition: box-shadow .2s;
}
.mc-card:hover { box-shadow: 0 4px 14px rgba(0,0,0,.07); }

/* 狀態標籤 */
.mc-tag {
  display: inline-block;
  padding: 3px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  position: absolute;
  top: -10px;
  left: 14px;
}
.mc-tag--open   { background: var(--mc-gold); color: #fff; }
.mc-tag--full   { background: #999; color: #fff; }
.mc-tag--done   { background: var(--mc-success); color: #fff; }
.mc-tag--warn   { background: var(--mc-warn); color: #fff; }
.mc-tag--cancel { background: var(--mc-danger); color: #fff; }
.mc-tag--draft  { background: #ccc; color: #555; }

/* 日期欄 */
.mc-card-date {
  text-align: center;
  border-right: 1px dashed var(--mc-border);
  padding-right: 16px;
}
.mc-card-date__day  { font-size: 15px; font-weight: 700; color: var(--mc-gold-dark); }
.mc-card-date__week { font-size: 13px; color: var(--mc-text-muted); }
.mc-card-date__time { font-size: 14px; font-weight: 600; margin-top: 2px; }

/* 資訊欄 */
.mc-card-info { min-width: 0; }
.mc-card-loc { font-size: 13px; color: var(--mc-text-muted); margin-bottom: 2px; }
.mc-card-loc i { color: var(--mc-danger); margin-right: 4px; font-size: 13px; }
.mc-card-title {
  font-size: 17px;
  font-weight: 700;
  margin: 0 0 4px;
  color: var(--mc-gold-dark);
}
.mc-card-meta    { font-size: 13px; margin: 0; color: var(--mc-text-muted); }
.mc-card-players { font-size: 13px; margin: 4px 0 0; color: #555; }

/* 費用欄 */
.mc-card-fee {
  font-size: 13px;
  border-left: 1px dashed var(--mc-border);
  padding-left: 16px;
  white-space: nowrap;
}
.mc-card-fee div + div { margin-top: 4px; }
.mc-card-fee span { font-weight: 700; margin-left: 6px; }

/* 操作欄 */
.mc-card-actions {
  display: flex;
  flex-direction: column;
  gap: 6px;
  border-left: 1px dashed var(--mc-border);
  padding-left: 16px;
}

/* ── 舊式 mc-table（備用） ── */
.mc-table-wrap { overflow-x: auto; }
.mc-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.mc-table th,
.mc-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--mc-border);
  text-align: left;
}
.mc-table th {
  background: var(--mc-sidebar-bg);
  font-weight: 600;
  white-space: nowrap;
}
.mc-table-time { font-size: 13px; color: var(--mc-text-muted); }
.mc-table-actions { white-space: nowrap; }
.mc-link {
  color: var(--mc-gold-dark);
  text-decoration: none;
  font-weight: 600;
  margin-right: 10px;
}
.mc-link:hover { text-decoration: underline; }

/* ── host 說明區（保留舊 mc-host-*，相容） ── */
.mc-host-intro {
  background: var(--mc-sidebar-bg);
  border: 1px solid var(--mc-border);
  border-radius: var(--mc-radius);
  padding: 16px 20px;
  margin-bottom: 20px;
}
.mc-host-intro p { margin: 0 0 12px; font-size: 14px; }
.mc-host-stats { display: flex; gap: 24px; }
.mc-stat {
  display: flex;
  align-items: baseline;
  gap: 6px;
}
.mc-stat-num   { font-size: 26px; font-weight: 700; color: var(--mc-gold-dark); }
.mc-stat-label { font-size: 13px; color: var(--mc-text-muted); }

/* ── 群聊列表 ── */
.mc-chat-list { display: flex; flex-direction: column; gap: 8px; }
.mc-chat-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  background: var(--mc-white);
  border: 1px solid var(--mc-border);
  border-radius: var(--mc-radius);
  text-decoration: none;
  color: var(--mc-text);
  transition: box-shadow .2s;
}
.mc-chat-item:hover { box-shadow: 0 3px 10px rgba(0,0,0,.06); }
.mc-chat-icon .material-icons-outlined { font-size: 32px; color: var(--mc-gold); }
.mc-chat-info { flex: 1; min-width: 0; }
.mc-chat-info h4 { margin: 0; font-size: 15px; }
.mc-chat-info p  { margin: 2px 0 0; font-size: 13px; color: var(--mc-text-muted); }
.mc-chat-arrow   { color: var(--mc-text-muted); font-size: 14px; }

/* ── 表單（約球資料等） ── */
.mc-form { margin-top: 10px; }
.mc-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.mc-field { display: flex; flex-direction: column; }
.mc-field--full { grid-column: 1 / -1; }
.mc-field label {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 6px;
}
.mc-req { color: var(--mc-danger); }
.mc-field input,
.mc-field select,
.mc-field textarea {
  padding: 8px 12px;
  border: 1px solid var(--mc-border);
  border-radius: 8px;
  font: inherit;
  font-size: 14px;
}
.mc-field input:focus,
.mc-field select:focus,
.mc-field textarea:focus {
  outline: none;
  border-color: var(--mc-gold);
  box-shadow: 0 0 0 3px rgba(200,154,64,.15);
}
.mc-field small { font-size: 12px; color: var(--mc-text-muted); margin-top: 4px; }
.mc-form-actions {
  margin-top: 24px;
  display: flex;
  gap: 12px;
}

/* 約球表單 — 綠色邊框白底（for go-booking-form） */
.go-booking-form {
  display: flex;
  background: #fff;
  flex-direction: column;
  gap: 20px;
  padding: 30px;
  box-shadow: 0 4px 16px rgba(0,0,0,.08);
  border-radius: 20px;
  border: 1px solid var(--mc-green);
}
.go-form-row {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}
.go-form-field {
  flex: 1;
  min-width: 240px;
}
.go-form-field--full {
  flex-basis: 100%;
  min-width: 100%;
}
.go-form-field label {
  display: block;
  margin-bottom: 6px;
  font-size: 15px;
  color: #555;
}

/* 男女同價 inline checkbox */
.go-sameprice-wrap {
  font-weight: normal;
  font-size: 14px;
  color: #888;
}
.go-sameprice-label {
  display: inline !important;
  cursor: pointer;
  font-weight: normal;
  font-size: 14px;
  color: #888;
}
.go-sameprice-label input[type="checkbox"] {
  width: auto;
  margin-right: 2px;
  vertical-align: middle;
  accent-color: var(--mc-green);
}
.go-input {
  width: 100%;
  border-radius: 8px;
  border: 1px solid #dedede;
  padding: 10px 12px;
  font-size: 16px;
  outline: none;
  background-color: #fff;
}
.go-input::placeholder { color: #b0b0b0; }
.go-input:focus {
  border-color: var(--mc-gold);
  box-shadow: 0 0 0 2px rgba(200,154,64,.15);
}
.go-input-textarea {
  resize: vertical;
  min-height: 96px;
}

.go-booking-cta {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 12px;
  flex-wrap: nowrap;
}

/* ── 球友清單 ── */
.go-member-section {
  border-top: 1px solid #e0e0e0;
  padding-top: 20px;
}
.go-member-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
}
.go-member-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 16px;
  background: #f9f9f9;
  border-radius: 8px;
  font-size: 15px;
  border-left: 3px solid transparent;
}
.go-member-item--host {
  border-left-color: var(--mc-gold);
  background: #fffcf5;
}
.go-member-item--partner {
  border-left-color: var(--mc-green);
}
.go-member-name {
  font-weight: 600;
  min-width: 100px;
}
.go-member-gender {
  color: #666;
  min-width: 30px;
}
.go-member-tag {
  font-size: 13px;
  color: #999;
  flex: 1;
}
.go-member-tag--host {
  color: var(--mc-gold-dark);
}
.go-member-tag--partner {
  color: var(--mc-green);
}
.go-member-remove {
  margin-left: auto;
  background: none;
  border: none;
  color: #999;
  cursor: pointer;
  font-size: 16px;
  padding: 4px 8px;
  border-radius: 4px;
  transition: color .2s, background .2s;
}
.go-member-remove:hover {
  color: #d64545;
  background: rgba(214,69,69,.08);
}
.go-member-header {
  display: flex;
  justify-content: flex-start;
}
.go-member-add-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* ── 追加球友 Modal ── */
.go-addmember-box {
  width: min(520px, calc(100% - 32px));
  padding: 0;
  overflow: hidden;
}
.go-member-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px 14px;
  border-bottom: 1px solid #eee;
}
.go-member-modal-header .modal-title {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  color: #333;
}
.go-member-modal-close {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid #ddd;
  border-radius: 6px;
  background: #fff;
  cursor: pointer;
  font-size: 20px;
  line-height: 1;
  color: #666;
  transition: background .2s, border-color .2s;
  flex-shrink: 0;
}
.go-member-modal-close:hover {
  background: #f5f5f5;
  border-color: #bbb;
  color: #333;
}
.go-addmember-form {
  padding: 20px 20px 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.go-addmember-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.go-addmember-label {
  font-size: 15px;
  font-weight: 600;
  color: #444;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.go-addmember-required {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  color: #c0392b;
  background: #fdecea;
  padding: 1px 6px;
  border-radius: 4px;
  line-height: 1.5;
}
.go-addmember-hint {
  font-weight: 400;
  font-size: 13px;
  color: #999;
}
.go-addmember-gender {
  display: flex;
  align-items: center;
  gap: 20px;
  padding-top: 4px;
}
.go-addmember-radio {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 15px;
  color: #444;
  cursor: pointer;
  user-select: none;
}
.go-addmember-radio input[type="radio"] {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--mc-green, #74986a);
  cursor: pointer;
}
.go-addmember-actions {
  display: flex;
  gap: 12px;
  padding: 22px 20px 0;
}
.go-addmember-actions .go-btn-outline-g {
  flex: 1;
  text-align: center;
  padding: 12px 20px;
  font-size: 16px;
  border-radius: 10px;
}
.go-addmember-actions .go-btn {
  flex: 1;
  text-align: center;
  padding: 12px 20px;
  font-size: 16px;
  border-radius: 10px;
  background: var(--mc-gold, #c89a40);
  border-color: var(--mc-gold, #c89a40);
}
.go-addmember-note {
  padding: 14px 20px 18px;
  font-size: 13px;
  line-height: 1.6;
  color: #999;
}

/* ── 預覽 Modal ── */
.modal-box1170 {
  position: relative;
  background: #fff;
  border-radius: 10px;
  padding: 0;
  width: min(1170px, calc(100% - 32px));
  box-shadow: 0 4px 20px rgba(0,0,0,.15);
  font-size: 16px;
  overflow: hidden;
}
.modal-box1170 #previewContent {
  padding: 20px;
}

/* 工具列 */
.mc-toolbar {
  margin-bottom: 16px;
}

/* ── 點數 ── */
.mc-points-balance-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 24px;
  background: linear-gradient(135deg, var(--mc-gold-light), #fff);
  border: 1px solid var(--mc-gold);
  border-radius: var(--mc-radius);
  margin-bottom: 24px;
}
.mc-points-balance-card .material-icons-outlined { font-size: 40px; color: var(--mc-gold); }
.mc-points-label { font-size: 13px; color: var(--mc-text-muted); }
.mc-points-value { font-size: 28px; font-weight: 700; color: var(--mc-gold-dark); }
.mc-points-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 18px;
  font-weight: 700;
  color: var(--mc-gold-dark);
}
.mc-points-badge .material-icons-outlined { font-size: 22px; }

.mc-plans {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
}
.mc-plan-card {
  background: var(--mc-white);
  border: 1px solid var(--mc-border);
  border-radius: var(--mc-radius);
  padding: 20px;
  text-align: center;
}
.mc-plan-card h4 { margin: 0 0 8px; font-size: 16px; }
.mc-plan-points  { font-size: 24px; font-weight: 700; color: var(--mc-gold-dark); }
.mc-plan-price   { font-size: 14px; color: var(--mc-text-muted); margin: 6px 0 14px; }

.mc-pts-plus  { color: var(--mc-success); font-weight: 700; }
.mc-pts-minus { color: var(--mc-danger);  font-weight: 700; }

/* ── 點數交易表格（金色表頭） ── */
.go-point-table-y {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
}
.go-point-table-y thead th {
  font-size: 16px;
  font-weight: 400;
  color: #000;
  padding: 8px 10px;
  border-bottom: 2px solid #d4ae64;
  background: #fff9ee;
  text-align: left;
}
.go-point-table-y tbody td {
  padding: 10px;
  border-bottom: 1px solid #f0f0f0;
  font-size: 15px;
  vertical-align: middle;
}
.go-point-table-y tbody tr:last-child td {
  border-bottom: none;
}

/* ── Modal 基礎（整場取消 / 名單管理等） ── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.45);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  padding: 16px;
}
.modal-overlay.is-open { display: flex; }

/* ── 服務條款 Modal ── */
.go-terms-overlay {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(0,0,0,.55);
  z-index: 9999;
}
.go-terms-overlay.is-open { display: flex; }
.go-terms-box {
  width: min(920px, 100%);
  max-height: min(86vh, 900px);
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,.25);
  display: flex;
  flex-direction: column;
}
.go-terms-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(0,0,0,.08);
}
.go-terms-title { margin: 0; font-size: 18px; font-weight: 700; }
.go-terms-close {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 10px;
  background: rgba(0,0,0,.06);
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
}
.go-terms-body { padding: 0; flex: 1; min-height: 320px; }
.go-terms-footer {
  padding: 14px 16px 16px;
  border-top: 1px solid rgba(0,0,0,.08);
}
.go-terms-check {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  user-select: none;
  margin-bottom: 12px;
}
.go-terms-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}
.go-terms-confirm[disabled] { opacity: .45; cursor: not-allowed; }
.go-terms-hint { margin: 10px 0 0; font-size: 12px; opacity: .7; }
.modal-box800 {
  position: relative;
  background: #fff;
  border-radius: 10px;
  padding: 24px;
  width: min(1100px, calc(100% - 32px));
  box-shadow: 0 4px 20px rgba(0,0,0,.15);
  font-size: 16px;
}
.modal-title {
  font-size: 18px;
  font-weight: 800;
  color: var(--mc-text);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.modal-close {
  position: absolute;
  right: 12px;
  top: 10px;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: #f3f3f3;
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
  border: none;
}
.modal-close:hover { color: #444; transform: scale(1.1); }
.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 18px;
}
.modal-note {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: #777;
}
.modal-info {
  font-size: 16px;
  color: #555;
  line-height: 1.6;
  margin: 10px 0 20px;
}
.modal-btn-outline {
  background: var(--mc-gold);
  border: 1px solid var(--mc-gold);
  padding: 10px 20px;
  border-radius: 6px;
  cursor: pointer;
  color: #fff;
}
.modal-btn-outline:hover {
  background: #fff;
  color: var(--mc-gold);
}
.modal-btn {
  background: var(--mc-danger);
  border: 1px solid var(--mc-danger);
  color: #fff;
  padding: 10px 16px;
  border-radius: 10px;
  font-weight: 800;
  cursor: pointer;
}

/* ── 手機版 sidebar toggle ── */
.mc-sidebar-toggle {
  display: none;
  position: fixed;
  bottom: 20px;
  left: 20px;
  z-index: 1000;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--mc-gold);
  color: #fff;
  border: none;
  font-size: 20px;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0,0,0,.2);
}

/* ── RWD ── */
@media (max-width: 960px) {
  .HOcontainer {
    flex-direction: column;
  }
  .HOleft-section {
    width: 100%;
    flex: none;
    position: fixed;
    top: 0;
    left: -100%;
    bottom: 0;
    z-index: 999;
    overflow-y: auto;
    transition: left .3s ease;
    box-shadow: 4px 0 20px rgba(0,0,0,.15);
  }
  .HOleft-section.is-visible { left: 0; }
  .mc-sidebar-toggle { display: flex; align-items: center; justify-content: center; }

  .HOright-section,
  .HOright-section-g {
    border-left: none;
    padding: 20px 16px;
  }

  .mc-card {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .mc-card-date {
    border-right: none;
    padding-right: 0;
    text-align: left;
    display: flex;
    gap: 8px;
    align-items: baseline;
  }
  .mc-card-fee {
    border-left: none;
    padding-left: 0;
    display: flex;
    gap: 16px;
  }
  .mc-card-actions {
    border-left: none;
    padding-left: 0;
    flex-direction: row;
  }
  .mc-form-grid { grid-template-columns: 1fr; }
  .go-form-row { flex-direction: column; }
  .go-booking-cta { flex-direction: column-reverse; }
  .go-organizer-summary { flex-direction: column; }
  .go-member-item { flex-wrap: wrap; gap: 8px; }
  .go-member-tag { flex-basis: 100%; font-size: 12px; }
  .go-addmember-box { width: calc(100% - 24px); }
  .go-addmember-actions { flex-direction: column; }
}

/* ============================
   排序表頭
   ============================ */
.go-th-sort {
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
  position: relative;
  transition: color .2s;
}
.go-th-sort:hover {
  color: var(--mc-gold, #c89a40);
}
.go-sort-arrow { display: inline-block; margin-left: 4px; font-size: .75em; color: #bbb; }
.go-th-sort.is-asc  .go-sort-arrow::after { content: '▲'; color: var(--mc-gold, #c89a40); }
.go-th-sort.is-desc .go-sort-arrow::after { content: '▼'; color: var(--mc-gold, #c89a40); }
.go-th-sort:not(.is-asc):not(.is-desc) .go-sort-arrow::after { content: '⇅'; }
