/* ═══════════════════════════════════════════════════════════
   Osan Tennis — User Pages Stylesheet  (pages.css)
   모든 사용자 페이지 공통 스타일을 여기서 관리합니다.
   ─────────────────────────────────────────────────────────
   로드 순서: common.css → pages.css
   ═══════════════════════════════════════════════════════════ */

/* ═══════════════════════════════
   SHARED: 배경 / Hero
   ═══════════════════════════════ */
.page-bg { background: #f1f5f9; }

.site-hero {
    position: relative;
    background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 50%, #1d4ed8 100%);
    overflow: hidden;
}
.site-hero::before {
    content: '';
    position: absolute; inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Ccircle cx='30' cy='30' r='28'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E") repeat;
}

/* ── 예약 Hero ── */
.reservation-hero {
    position: relative;
    background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 50%, #1d4ed8 100%);
    overflow: hidden;
}
.reservation-hero::before {
    content: '';
    position: absolute; inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Ccircle cx='30' cy='30' r='28'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E") repeat;
}
.reservation-hero-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,.15) 0%, rgba(0,0,0,.35) 100%);
    pointer-events: none;
}
.hero-stat {
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 12px;
    padding: 0.75rem 1.25rem;
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
}
.hero-stat-value { font-size: 1.4rem; font-weight: 800; display: block; }
.hero-stat-label { font-size: 0.75rem; opacity: 0.8; display: block; }
.hero-date-card {
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 16px;
    padding: 1.5rem;
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    display: inline-block;
    min-width: 280px;
}
.hero-date-input { border: none; border-radius: 10px; font-size: 1.1rem; font-weight: 600; }

/* ── 마이페이지 Hero ── */
.mypage-hero {
    position: relative;
    background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 50%, #1d4ed8 100%);
    overflow: hidden;
}
.mypage-hero::before {
    content: '';
    position: absolute; inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Ccircle cx='30' cy='30' r='28'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E") repeat;
}
.penalty-banner {
    background: rgba(220, 38, 38, 0.85);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
    border-radius: 12px;
    color: #fff;
}

/* ── 정보 카드 (예약 페이지) ── */
.info-card {
    background: #fff;
    border-radius: 16px;
    border: 1px solid var(--border-color, #e2e8f0);
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    height: 100%;
}
.info-icon { font-size: 2rem; }


/* ═══════════════════════════════
   SHARED: 공통 텍스트
   ═══════════════════════════════ */
.post-content {
    font-size: 1.05rem;
    line-height: 1.9;
    color: var(--text-primary);
    word-break: keep-all;
    white-space: pre-wrap;
}
/* 목록 카드에서 말줄임 처리할 때 */
.post-content.clamp {
    font-size: inherit;
    line-height: inherit;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.comment-item:last-child { border-bottom: none !important; }


/* ═══════════════════════════════
   GAME / TOURNAMENT: 필터 탭
   ═══════════════════════════════ */
.game-filter-tabs { display: flex; gap: .5rem; flex-wrap: wrap; }
.game-tab {
    display: inline-flex; align-items: center; gap: .45rem;
    padding: .5rem 1.1rem;
    border: 1.5px solid #e2e8f0;
    border-radius: 999px;
    background: #fff;
    font-size: .88rem; font-weight: 600; color: #64748b;
    cursor: pointer; transition: all .18s;
}
.game-tab:hover  { border-color: #1d4ed8; color: #1d4ed8; background: #eff6ff; }
.game-tab.active { border-color: #1d4ed8; background: #1d4ed8; color: #fff; }
.game-tab.active .game-tab-count { background: rgba(255,255,255,.25); color: #fff; }
.game-tab-count {
    background: #f1f5f9; color: #64748b; border-radius: 999px;
    font-size: .75rem; font-weight: 700; padding: .1rem .5rem;
    min-width: 22px; text-align: center;
}


/* ═══════════════════════════════
   GAME / TOURNAMENT: 카드
   ═══════════════════════════════ */
.game-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 2px 10px rgba(0,0,0,.06);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.game-card-bar {
    display: flex;
    align-items: center;
    padding: 0.55rem 1.2rem;
    font-size: 0.82rem;
    font-weight: 600;
}
.bar-open     { background: #dbeafe; color: #1d4ed8; }
.bar-ended    { background: #f1f5f9; color: #64748b; }
.bar-upcoming { background: #fef9c3; color: #a16207; }
.game-card-body   { padding: 1.25rem 1.25rem 0.75rem; flex: 1; }
.game-card-footer { padding: 0.9rem 1.25rem 1.1rem; border-top: 1px solid #f1f5f9; }

.game-card-body.game-card-detail-trigger { cursor: pointer; }
.game-card-body.game-card-detail-trigger:hover { background: #f8fafc; }
.game-card-body.game-card-detail-trigger:hover .detail-hint { color: #1d4ed8; }
.detail-hint {
    font-size: .8rem; color: #94a3b8; font-weight: 600;
    text-align: right; margin-top: .5rem; transition: color .2s;
}

/* 이전 detail-* 클래스 호환 */
.badge.bar-open     { background: #dbeafe; color: #1d4ed8; }
.badge.bar-ended    { background: #f1f5f9; color: #64748b; }
.badge.bar-upcoming { background: #fef9c3; color: #a16207; }


/* ═══════════════════════════════
   GD: 대회 상세 팝업 (고급 디자인)
   ═══════════════════════════════ */
.gd-modal-content {
    border: none;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 25px 60px rgba(0,0,0,.18), 0 8px 20px rgba(0,0,0,.1);
}
.gd-hero {
    position: relative;
    padding: 2.5rem 2rem 2rem;
    min-height: 160px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    transition: background .3s;
}
.gd-hero-loading  { background: linear-gradient(135deg,#334155,#475569); }
.gd-hero-open     { background: linear-gradient(135deg,#1e3a8a 0%,#1d4ed8 60%,#3b82f6 100%); }
.gd-hero-ended    { background: linear-gradient(135deg,#1e293b 0%,#334155 60%,#475569 100%); }
.gd-hero-upcoming { background: linear-gradient(135deg,#78350f 0%,#b45309 60%,#d97706 100%); }
.gd-hero::before {
    content: '';
    position: absolute; inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Ccircle cx='40' cy='40' r='38'/%3E%3C/g%3E%3C/svg%3E") repeat;
    pointer-events: none;
}
.gd-hero-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,.35) 0%, transparent 60%);
    pointer-events: none;
}
.gd-hero-body { position: relative; z-index: 1; }

.gd-status-badge {
    display: inline-flex; align-items: center;
    background: rgba(255,255,255,.18);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    border: 1px solid rgba(255,255,255,.3);
    color: #fff;
    border-radius: 999px;
    padding: .3rem .9rem;
    font-size: .82rem; font-weight: 700; letter-spacing: .03em;
}
.gd-hero-title {
    color: #fff;
    font-size: 1.55rem;
    font-weight: 800;
    line-height: 1.3;
    margin: 0;
    text-shadow: 0 1px 4px rgba(0,0,0,.25);
}
.gd-close-btn {
    position: absolute; top: 1.1rem; right: 1.1rem; z-index: 2;
    width: 34px; height: 34px;
    background: rgba(255,255,255,.15);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255,255,255,.25);
    border-radius: 50%;
    color: #fff; font-size: .9rem;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; transition: background .18s;
}
.gd-close-btn:hover { background: rgba(255,255,255,.3); }

/* 본문 */
.gd-body-inner { padding: 1.75rem 1.75rem 1.25rem; }
.gd-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px,1fr));
    gap: .85rem;
    margin-bottom: 1.5rem;
}
.gd-stat-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 1.1rem .75rem;
    text-align: center;
    transition: box-shadow .18s;
}
.gd-stat-card:hover { box-shadow: 0 4px 14px rgba(30,58,138,.09); }
.gd-stat-icon  { font-size: 1.4rem; margin-bottom: .4rem; line-height: 1; }
.gd-stat-num   { font-size: 1.7rem; font-weight: 800; color: #1e3a8a; line-height: 1.1; }
.gd-stat-confirmed .gd-stat-num { color: #16a34a; }
.gd-stat-place { font-size: 1rem; font-weight: 700; color: #475569; }
.gd-stat-label { font-size: .75rem; color: #94a3b8; margin-top: .25rem; font-weight: 600; letter-spacing: .03em; }

.gd-section       { margin-bottom: 1.25rem; }
.gd-section-label {
    display: flex; align-items: center; gap: .5rem;
    font-size: .78rem; font-weight: 800; color: #64748b;
    letter-spacing: .07em; text-transform: uppercase;
    margin-bottom: .75rem;
}
.gd-section-dot   { width: 8px; height: 8px; border-radius: 50%; background: #1d4ed8; flex-shrink: 0; }
.gd-section-body  {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-left: 4px solid #1d4ed8;
    border-radius: 0 12px 12px 0;
    padding: 1.1rem 1.25rem;
    font-size: .95rem; line-height: 1.8;
    color: #334155; word-break: keep-all;
}

/* 푸터 */
.gd-footer {
    display: flex; justify-content: space-between; align-items: center;
    padding: 1rem 1.75rem;
    background: #f8fafc; border-top: 1px solid #e2e8f0;
    gap: .75rem; flex-wrap: wrap;
}
.gd-footer-actions { display: flex; gap: .65rem; flex-wrap: wrap; align-items: center; }

/* 버튼 */
.gd-btn-primary {
    display: inline-flex; align-items: center; gap: .35rem;
    padding: .65rem 1.5rem;
    background: linear-gradient(135deg,#1d4ed8,#2563eb);
    color: #fff; border: none; border-radius: 10px;
    font-size: .9rem; font-weight: 700;
    cursor: pointer; text-decoration: none;
    box-shadow: 0 4px 12px rgba(29,78,216,.3);
    transition: transform .15s, box-shadow .15s;
}
.gd-btn-primary:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(29,78,216,.4); color: #fff; }
.gd-btn-secondary {
    display: inline-flex; align-items: center; gap: .35rem;
    padding: .6rem 1.3rem;
    background: #fff; color: #1d4ed8;
    border: 1.5px solid #1d4ed8; border-radius: 10px;
    font-size: .9rem; font-weight: 700;
    cursor: pointer; transition: background .15s;
}
.gd-btn-secondary:hover { background: #eff6ff; }
.gd-btn-ghost {
    display: inline-flex; align-items: center;
    padding: .6rem 1.3rem;
    background: transparent; color: #94a3b8;
    border: 1.5px solid #e2e8f0; border-radius: 10px;
    font-size: .88rem; font-weight: 600;
    cursor: pointer; transition: border-color .15s, color .15s;
}
.gd-btn-ghost:hover { border-color: #94a3b8; color: #64748b; }
.gd-btn-ghost-danger {
    display: inline-flex; align-items: center;
    padding: .6rem 1.2rem;
    background: transparent; color: #ef4444;
    border: 1.5px solid #fca5a5; border-radius: 10px;
    font-size: .88rem; font-weight: 700;
    cursor: pointer; transition: background .15s;
}
.gd-btn-ghost-danger:hover { background: #fef2f2; }

/* 상태 필 */
.gd-status-pill {
    display: inline-flex; align-items: center; gap: .35rem;
    border-radius: 999px; padding: .45rem 1rem;
    font-size: .88rem; font-weight: 700;
}
.gd-status-pill.pending   { background: #fef9c3; color: #a16207; }
.gd-status-pill.confirmed { background: #dcfce7; color: #16a34a; }


/* ═══════════════════════════════
   PM: 참가현황 / 결과 팝업
   ═══════════════════════════════ */
.pm-modal-content {
    border: none;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 25px 60px rgba(0,0,0,.18), 0 8px 20px rgba(0,0,0,.1);
}
.pm-hero {
    position: relative;
    padding: 1.8rem 2rem 1.6rem;
    display: flex; align-items: center; gap: 1.1rem;
}
.pm-hero-list   { background: linear-gradient(135deg,#0f766e 0%,#0d9488 55%,#2dd4bf 100%); }
.pm-hero-result { background: linear-gradient(135deg,#92400e 0%,#b45309 55%,#f59e0b 100%); }
.pm-hero::before {
    content: '';
    position: absolute; inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Ccircle cx='40' cy='40' r='38'/%3E%3C/g%3E%3C/svg%3E") repeat;
    pointer-events: none;
}
.pm-hero-icon  { font-size: 2rem; line-height: 1; position: relative; z-index: 1; flex-shrink: 0; }
.pm-hero-body  { position: relative; z-index: 1; flex: 1; }
.pm-hero-title {
    color: #fff; font-size: 1.25rem; font-weight: 800;
    margin: 0 0 .3rem;
    text-shadow: 0 1px 4px rgba(0,0,0,.2);
}
.pm-hero-sub   { display: flex; gap: .4rem; flex-wrap: wrap; }
.pm-chip {
    display: inline-flex; align-items: center;
    background: rgba(255,255,255,.18); -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255,255,255,.28);
    color: #fff; border-radius: 999px;
    padding: .2rem .75rem; font-size: .78rem; font-weight: 700;
}
.pm-list-wrap { padding: .75rem 1.25rem 1rem; }
.pm-row {
    display: grid;
    grid-template-columns: 2.5rem 1fr auto auto;
    align-items: center;
    gap: .6rem; padding: .7rem .75rem;
    border-radius: 12px; margin-bottom: .4rem;
    background: #fff; border: 1px solid #f1f5f9;
    transition: box-shadow .15s;
}
.pm-row:hover      { box-shadow: 0 3px 10px rgba(0,0,0,.07); }
.pm-row-confirmed  { border-left: 3px solid #16a34a; background: #f0fdf4; }
.pm-row-gold       { border-left: 3px solid #f59e0b; background: #fffbeb; }
.pm-row-silver     { border-left: 3px solid #94a3b8; background: #f8fafc; }
.pm-row-bronze     { border-left: 3px solid #c2855b; background: #fdf6f0; }
.pm-row-rank-cell  { display: flex; align-items: center; justify-content: center; }
.pm-row-rank {
    width: 28px; height: 28px; background: #f1f5f9; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: .78rem; font-weight: 700; color: #64748b;
}
.pm-medal        { font-size: 1.45rem; line-height: 1; }
.pm-row-name     { font-size: .95rem; font-weight: 700; color: #1e293b; }
.pm-row-date     { font-size: .78rem; color: #94a3b8; text-align: right; }
.pm-row-result   { font-size: .9rem; min-width: 80px; text-align: right; }
.pm-result-text  { font-weight: 700; color: #1d4ed8; }
.pm-result-empty { color: #cbd5e1; }
.pm-badge {
    display: inline-flex; align-items: center;
    border-radius: 999px; padding: .25rem .7rem;
    font-size: .78rem; font-weight: 700;
}
.pm-badge-confirmed { background: #dcfce7; color: #16a34a; }
.pm-badge-pending   { background: #fef9c3; color: #a16207; }
.pm-empty {
    display: flex; flex-direction: column; align-items: center;
    justify-content: center; padding: 3.5rem 1rem;
    color: #94a3b8; gap: .65rem;
}
.pm-empty-icon { font-size: 2.5rem; line-height: 1; }
.pm-footer {
    display: flex; justify-content: flex-end;
    padding: .85rem 1.5rem;
    background: #f8fafc; border-top: 1px solid #e2e8f0;
}


/* ═══════════════════════════════
   MY-PAGE: 탭 / 카드
   ═══════════════════════════════ */
.mypage-tabs .nav-link {
    color: #64748b; font-weight: 600;
    border-radius: 50px; padding: 0.55rem 1.4rem;
    transition: all .2s;
}
.mypage-tabs .nav-link.active {
    background: #1d4ed8; color: #fff;
    box-shadow: 0 4px 12px rgba(29,78,216,.3);
}
.mypage-tabs .nav-link:not(.active):hover { background: #e2e8f0; color: #1e3a8a; }

.mypage-card {
    background: #fff; border-radius: 16px;
    box-shadow: 0 2px 12px rgba(0,0,0,.06); overflow: hidden;
}
.mypage-card-header {
    display: flex; align-items: center; gap: 1rem;
    padding: 1.25rem 1.75rem;
    border-bottom: 1px solid #f1f5f9; background: #fafbff;
}
.mypage-card-icon  { font-size: 1.6rem; line-height: 1; }
.mypage-card-title { font-weight: 700; font-size: 1rem; color: #1e293b; }
.mypage-card-sub   { font-size: 0.8rem; color: #94a3b8; margin-top: 1px; }
.mypage-card-body  { padding: 1.75rem; }

.reservation-thead th {
    background: #f8fafc; color: #64748b;
    font-size: 0.8rem; font-weight: 600;
    letter-spacing: .04em; text-transform: uppercase;
    border-bottom: 2px solid #e2e8f0; padding: 1rem 0.75rem;
}
.reservation-thead th.ps-4 { padding-left: 1.5rem !important; }

.status-badge {
    display: inline-block; padding: 0.3em 0.85em;
    border-radius: 50px; font-size: 0.78rem; font-weight: 600;
}
.status-confirmed { background: #dcfce7; color: #16a34a; }
.status-pending   { background: #fef9c3; color: #a16207; }
.status-paid      { background: #dbeafe; color: #1d4ed8; }
.status-cancelled { background: #f1f5f9; color: #94a3b8; }


/* ═══════════════════════════════
   MY-PAGE: 미인증 안내 배너 (verify-notice)
   ═══════════════════════════════ */
.verify-notice {
    background: linear-gradient(135deg, #fffbeb, #fef3c7);
    border: 1.5px solid #f59e0b;
    border-left: 5px solid #f59e0b;
    border-radius: 12px;
    padding: 1.5rem 1.75rem;
    display: flex; flex-direction: column; gap: 1.25rem;
}
.vn-header       { display: flex; justify-content: space-between; align-items: flex-start; gap: .75rem; }
.vn-header-left  { display: flex; align-items: flex-start; gap: .85rem; }
.vn-icon         { font-size: 1.85rem; line-height: 1; flex-shrink: 0; }
.vn-title        { font-size: 1.1rem; font-weight: 700; color: #92400e; margin-bottom: .2rem; }
.vn-subtitle     { font-size: .875rem; color: #78350f; line-height: 1.55; }
.vn-mytype       { display: flex; align-items: center; gap: .75rem; flex-wrap: wrap; background: rgba(255,255,255,.65); border-radius: 8px; padding: .65rem 1.1rem; }
.vn-mytype-label { font-size: .825rem; color: #78350f; font-weight: 600; white-space: nowrap; }
.vn-mytype-val   { font-weight: 700; font-size: .95rem; color: #92400e; background: #fde68a; border: 1px solid #f59e0b; border-radius: 6px; padding: .15rem .65rem; white-space: nowrap; }
.vn-mytype-hint  { font-size: .8rem; color: #92400e; opacity: .75; }
.vn-section      { display: flex; flex-direction: column; gap: .55rem; }
.vn-section-title { font-weight: 700; color: #92400e; font-size: .9rem; }
.vn-doc-item     { display: flex; gap: .75rem; align-items: flex-start; background: rgba(255,255,255,.7); border-radius: 8px; padding: .85rem 1.1rem; font-size: .9rem; line-height: 1.6; }
.vn-doc-check    { font-size: 1.1rem; flex-shrink: 0; margin-top: .1rem; }
.vn-doc-note     { font-size: .82rem; color: #78350f; }
.vn-submit-grid  { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
.vn-submit-card  { background: rgba(255,255,255,.75); border-radius: 10px; padding: 1rem 1.1rem; text-align: center; }
.vn-submit-icon  { font-size: 1.5rem; margin-bottom: .35rem; }
.vn-submit-label { font-size: .75rem; color: #92400e; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; margin-bottom: .3rem; }
.vn-submit-val   { font-size: .95rem; margin-bottom: .35rem; }
.vn-submit-note  { font-size: .78rem; color: #78350f; line-height: 1.55; }
.vn-caution-list { margin: 0; padding-left: 1.4rem; display: flex; flex-direction: column; gap: .35rem; }
.vn-caution-list li { font-size: .875rem; color: #78350f; line-height: 1.6; }
.vn-footer       { display: flex; gap: 1.5rem; flex-wrap: wrap; background: rgba(245,158,11,.12); border-top: 1px solid #f59e0b33; border-radius: 8px; padding: .65rem 1.1rem; font-size: .875rem; color: #92400e; }


/* ═══════════════════════════════
   RESERVATION: 캘린더
   ═══════════════════════════════ */
.cal-nav   { display: flex; align-items: center; justify-content: space-between; }
.cal-title { font-size: 1.25rem; font-weight: 700; }
.cal-grid  {
    display: grid; grid-template-columns: repeat(7, 1fr); gap: 0;
    border-top: 1px solid #dee2e6; border-left: 1px solid #dee2e6;
}
.cal-dow {
    background: #f8fafc; padding: .45rem; text-align: center;
    font-size: .78rem; font-weight: 600; color: #64748b;
    border-right: 1px solid #dee2e6; border-bottom: 1px solid #dee2e6;
}
.cal-dow:first-child { color: #ef4444; }
.cal-dow:last-child  { color: #3b82f6; }
.cal-cell {
    min-height: 90px; padding: 6px;
    border-right: 1px solid #dee2e6; border-bottom: 1px solid #dee2e6;
    background: #fff; cursor: pointer; transition: background .15s; position: relative;
}
.cal-cell:hover    { background: #f0f9ff; }
.cal-cell.empty    { background: #f8fafc; cursor: default; }
.cal-cell.today .cal-date {
    background: #3b82f6; color: #fff; border-radius: 50%;
    width: 26px; height: 26px; display: flex; align-items: center; justify-content: center;
}
.cal-cell.selected { background: #eff6ff !important; outline: 2px solid #3b82f6; }
.cal-date          { font-size: .82rem; font-weight: 600; color: #374151; margin-bottom: 4px; }
.sun .cal-date     { color: #ef4444; }
.sat .cal-date     { color: #3b82f6; }
.cal-cell.today.sun .cal-date,
.cal-cell.today.sat .cal-date {
    border-radius: 50%; width: 26px; height: 26px;
    display: flex; align-items: center; justify-content: center; color: #fff;
}
.cal-cell.today.sun .cal-date { background: #ef4444; }
.cal-cell.today.sat .cal-date { background: #3b82f6; }
.cal-badges  { display: flex; flex-wrap: wrap; gap: 2px; }
.detail-panel { position: sticky; top: 80px; }
.cal-loading {
    position: absolute; inset: 0; background: rgba(255,255,255,.65);
    display: flex; align-items: center; justify-content: center;
    z-index: 10; border-radius: 4px;
}


/* ═══════════════════════════════
   SLOTS 관리: 캘린더 (슬롯용)
   ═══════════════════════════════ */
.cal-slot-badge {
    display: inline-block; margin-top: 3px; font-size: .65rem;
    background: #dbeafe; color: #1e40af; border-radius: 10px;
    padding: 1px 6px; font-weight: 700;
}


/* ═══════════════════════════════
   RESERVATION: 슬롯 헤더
   ═══════════════════════════════ */
.slot-header { display: flex; flex-direction: column; gap: .5rem; }
.slot-header-top {
    display: flex; justify-content: space-between; align-items: center;
}
.slot-legend-row {
    display: flex; align-items: center; gap: .5rem;
    flex-wrap: nowrap;
}

/* ═══════════════════════════════
   RESERVATION: 슬롯 범례 / 빈 상태
   ═══════════════════════════════ */
.slot-legend {
    display: inline-block; width: 10px; height: 10px;
    border-radius: 50%; flex-shrink: 0;
}
.empty-state {
    display: inline-block;
    padding: 1.5rem 2rem;
}
.empty-icon { font-size: 3rem; line-height: 1; }


/* ═══════════════════════════════
   RESERVATION: 코트 탭
   ═══════════════════════════════ */
.court-tab-bar {
    background: #f8fafc;
    border: 1.5px solid #e2e8f0;
    border-radius: 14px;
    padding: .6rem .75rem;
    margin-bottom: 1rem;
}
.court-tab-list {
    display: flex; gap: .4rem; flex-wrap: wrap;
}
.court-tab-btn {
    display: inline-flex; align-items: center; gap: .4rem;
    background: #fff;
    border: 1.5px solid #e2e8f0;
    color: #64748b;
    border-radius: 999px;
    padding: .35rem 1rem;
    font-size: .82rem; font-weight: 600;
    cursor: pointer;
    transition: all .15s;
    white-space: nowrap;
}
.court-tab-btn:hover {
    border-color: #3b82f6; color: #1d4ed8; background: #eff6ff;
}
.court-tab-btn.active {
    background: #1d4ed8; border-color: #1d4ed8; color: #fff;
}
.court-tab-badge {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 18px; height: 18px;
    background: #e2e8f0; color: #64748b;
    border-radius: 999px;
    font-size: .7rem; font-weight: 700;
    padding: 0 5px;
    transition: all .15s;
}
.court-tab-badge.has-open { background: #dcfce7; color: #16a34a; }
.court-tab-btn.active .court-tab-badge { background: rgba(255,255,255,.25); color: #fff; }

/* ═══════════════════════════════
   RESERVATION: 슬롯 카드
   ═══════════════════════════════ */
.court-slot {
    cursor: default;
    border-radius: 14px !important;
    transition: box-shadow .18s, transform .18s;
    border: 1.5px solid #e2e8f0 !important;
}
.court-slot.slot-OPEN {
    border-color: #86efac !important;
    cursor: pointer;
}
.court-slot.slot-OPEN:hover {
    box-shadow: 0 6px 18px rgba(16,185,129,.2);
    transform: translateY(-2px);
}
.court-slot.slot-RESERVED { opacity: .75; }
.court-slot.slot-CLOSED   { opacity: .6; }
.court-slot.slot-PAST     { opacity: .5; cursor: not-allowed; }
.slot-time  { font-size: 1.5rem; font-weight: 800; color: #1e293b; line-height: 1.1; }
.slot-price { font-weight: 600; color: #64748b; }


/* ═══════════════════════════════
   RESERVATION: 예약 정책 안내
   ═══════════════════════════════ */
.policy-notice {
    background: #fff;
    border: 1.5px solid #e2e8f0;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,.04);
}
.policy-notice-toggle {
    width: 100%;
    display: flex; justify-content: space-between; align-items: center;
    padding: 1rem 1.25rem;
    background: #f8fafc;
    border: none; cursor: pointer;
    font-size: .95rem; color: #1e293b;
    transition: background .15s;
}
.policy-notice-toggle:hover { background: #f1f5f9; }
.policy-notice-toggle.collapsed .policy-toggle-arrow { transform: rotate(0deg); }
.policy-notice-toggle:not(.collapsed) .policy-toggle-arrow { transform: rotate(180deg); }
.policy-toggle-arrow {
    font-size: 1.1rem; color: #64748b;
    transition: transform .25s;
    display: inline-block;
}
.policy-notice-body {
    padding: 1.25rem;
    border-top: 1px solid #e2e8f0;
}
.policy-my-type-label {
    font-size: .82rem; font-weight: 700; color: #1d4ed8;
    background: #eff6ff; border: 1px solid #bfdbfe;
    border-radius: 8px; padding: .45rem 1rem;
    margin-bottom: 1rem; display: inline-block;
}
.policy-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: .75rem;
    margin-bottom: .75rem;
}
.policy-item-box {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1rem 1.1rem;
}
.policy-item-icon  { font-size: 1.2rem; margin-bottom: .35rem; }
.policy-item-label { font-size: .78rem; color: #94a3b8; font-weight: 600; margin-bottom: .2rem; }
.policy-item-val   { font-size: .95rem; font-weight: 700; color: #1e293b; }
.policy-table th, .policy-table td { vertical-align: middle; }

/* 요일 배지 (정책 안내용) */
.dow-badge { display: flex; gap: 4px; flex-wrap: wrap; }
.dow-chip {
    display: inline-flex; align-items: center; justify-content: center;
    width: 26px; height: 26px;
    border-radius: 50%; font-size: .75rem; font-weight: 700;
}
.dow-chip.active  { color: #fff; }
.dow-chip.inactive { background: #f1f5f9; color: #cbd5e1; }


/* ═══════════════════════════════
   RESERVATION: 월별 현황 캘린더 모달
   ═══════════════════════════════ */
.cal-modal-dialog {
    max-width: 560px;
}
.cal-content {
    border-radius: 20px;
    overflow: hidden;
    background: #fff;
    color: #1e293b;
    box-shadow: 0 20px 60px rgba(0,0,0,.15), 0 6px 20px rgba(0,0,0,.08);
    border: 1px solid #e2e8f0;
}

/* ── 헤더 ── */
.cal-modal-header {
    display: grid;
    grid-template-columns: 40px 1fr 40px 40px;
    align-items: center;
    gap: .5rem;
    padding: 1rem 1.1rem;
    background: linear-gradient(135deg, #1e3a8a 0%, #1d4ed8 100%);
    border-bottom: none;
}
.cal-nav-btn {
    background: rgba(255,255,255,.15);
    border: 1px solid rgba(255,255,255,.25);
    color: #fff; border-radius: 10px;
    width: 36px; height: 36px;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; font-size: .85rem;
    transition: background .15s;
    flex-shrink: 0;
}
.cal-nav-btn:hover { background: rgba(255,255,255,.28); }
.cal-modal-title {
    font-size: 1.1rem; font-weight: 800; color: #fff;
    text-align: center; letter-spacing: -.01em;
}
.cal-close-btn {
    background: rgba(255,255,255,.15);
    border: 1px solid rgba(255,255,255,.25);
    color: #fff; border-radius: 10px;
    width: 36px; height: 36px;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; font-size: .85rem;
    transition: background .15s;
    flex-shrink: 0;
}
.cal-close-btn:hover { background: rgba(255,255,255,.28); }

/* ── 코트 탭 바 ── */
.cal-court-bar {
    background: #f8fafc;
    padding: .7rem 1rem;
    border-bottom: 1px solid #e2e8f0;
}
.cal-court-tabs { display: flex; gap: .4rem; flex-wrap: wrap; }
.cal-court-tab {
    background: #fff;
    border: 1.5px solid #e2e8f0;
    color: #64748b; border-radius: 999px;
    padding: .3rem .9rem; font-size: .78rem; font-weight: 600;
    cursor: pointer; transition: all .15s;
}
.cal-court-tab:hover  { border-color: #1d4ed8; color: #1d4ed8; background: #eff6ff; }
.cal-court-tab.active { background: #1d4ed8; border-color: #1d4ed8; color: #fff; }

/* ── 바디 ── */
.cal-modal-body { padding: 1rem 1.1rem 1.25rem; }

.cal-legend-row {
    display: flex; flex-wrap: wrap; gap: .4rem 1rem;
    margin-bottom: 1rem;
    padding: .6rem .9rem;
    background: #f8fafc;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
}
.cal-legend-item {
    display: flex; align-items: center; gap: .4rem;
    font-size: .75rem; color: #64748b; font-weight: 500;
}
.cal-legend-dot {
    width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0;
}

/* ── 요일 헤더 ── */
.cal-weekday-row {
    display: grid; grid-template-columns: repeat(7, 1fr);
    margin-bottom: .3rem;
}
.cal-weekday {
    text-align: center; font-size: .72rem; font-weight: 700;
    color: #94a3b8; padding: .3rem 0;
}
.cal-weekday.sun { color: #ef4444; }
.cal-weekday.sat { color: #3b82f6; }

/* ── 날짜 그리드 ── */
.cal-modal-body .cal-grid {
    display: grid; grid-template-columns: repeat(7, 1fr);
    gap: 4px;
    border: none;
}
.cal-modal-body .cal-cell {
    min-height: unset;
    background: #f8fafc;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    padding: 6px 4px;
    cursor: pointer;
    transition: all .15s;
    text-align: center;
    position: relative;
}
.cal-modal-body .cal-cell:hover     { background: #eff6ff; border-color: #93c5fd; }
.cal-modal-body .cal-cell-empty     { background: transparent !important; border-color: transparent !important; cursor: default; pointer-events: none; }
.cal-modal-body .cal-cell-past      { opacity: .45; cursor: default; }
.cal-modal-body .cal-cell-today     { border-color: #1d4ed8 !important; background: #eff6ff; }
.cal-modal-body .cal-cell-selected  { background: #dbeafe !important; border-color: #1d4ed8 !important; box-shadow: 0 0 0 2px #93c5fd; }

/* ── 날짜 숫자 ── */
.cal-date-num {
    font-size: .78rem; font-weight: 700; color: #374151;
    line-height: 1; margin-bottom: 4px;
}
.cal-date-num.sun-num { color: #ef4444; }
.cal-date-num.sat-num { color: #3b82f6; }

/* ── 상태 점 ── */
.cal-dot {
    width: 22px; height: 22px; border-radius: 50%;
    margin: 0 auto 3px;
    display: flex; align-items: center; justify-content: center;
    font-size: .68rem; font-weight: 800; color: #fff; line-height: 1;
}
.cal-dot-green  { background: #10b981; }
.cal-dot-yellow { background: #f59e0b; }
.cal-dot-red    { background: #f43f5e; }
.cal-dot-grey   { background: #e2e8f0; }

/* ── 가능 수 레이블 ── */
.cal-open-label {
    font-size: .62rem; color: #94a3b8; font-weight: 500;
    line-height: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* ── 로딩 ── */
.cal-modal-body .cal-loading {
    position: static;
    background: transparent;
    flex-direction: column;
    color: #94a3b8;
    padding: 2.5rem 0;
    font-size: .88rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ── 안내 문구 ── */
.cal-hint {
    text-align: center;
    font-size: .75rem; color: #94a3b8;
    margin-top: .85rem; margin-bottom: 0;
}

