/* ===========================
   [수정] 공통 스타일 및 초기화 (scroll-behavior: smooth 추가)
=========================== */
html {
    scroll-behavior: smooth;
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Noto Sans KR', 'Roboto', sans-serif;
}
body, html {
    font-family: 'Noto Sans KR', 'Roboto', sans-serif;
    height: 100%;
    overflow: auto;
    position: relative;
    background-image: url('futsal_main_background_clean.jpg');
    background-size: cover;
    background-position: center;
    background-color: #f7f7f7;
}

/* ⭐⭐ 퀵 메뉴 헤더 ⭐⭐ */
.quick-menu {
    background: rgba(30, 45, 60, 0.9);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 9999;
    backdrop-filter: blur(5px);
    height: 70px;
}
.quick-menu .logo {
    font-size: 28px;
    font-weight: 900;
}
.quick-menu .logo a {
    color: #ffffff;
    text-decoration: none;
    font-size: 24px;
    font-weight: 900;
}
.quick-menu .header-icons {
    display: flex;
    align-items: center;
    gap: 15px;
    padding-right: 20px;
}
.quick-menu .header-icons button {
    background: none;
    border: none;
    color: #ecf0f1;
    font-size: 24px;
    cursor: pointer;
    margin-left: 0;
    padding: 0;
    position: relative;
}
.profile-image {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    object-fit: cover;
    object-position: center;
    border: 2px solid #ddd;
}
.profile-icon {
    font-size: 28px;
    color: #ecf0f1;
    padding: 0;
    display: block;
    transition: color 0.3s;
    background: none;
    border: none;
    cursor: pointer;
}
.profile-icon:hover {
    color: #8e44ad;
}
/* ⭐⭐ 알림 배지 (빨간점) 위치 조정 ⭐⭐ */
.notification-badge {
    position: absolute;
    top: -2px;
    right: 0px;
    background-color: #e74c3c;
    color: white;
    border-radius: 50%;
    width: 8px;
    height: 8px;
    padding: 0;
    font-size: 0;
    line-height: 1;
    display: none;
    border: 1px solid rgba(255,255,255,0.8);
    z-index: 10000;
}
/* 메뉴 버튼 (삼선 아이콘) */
.menu-toggle-btn {
    font-size: 24px;
    padding: 0;
    background: none;
    border: none;
    color: #2c3e50;
    cursor: pointer;
    display: block;
    z-index: 1001;
}
/* ⭐⭐ 메인 네비게이션 (토글) ⭐⭐ */
.main-nav {
    display: none;
    position: absolute;
    top: 70px;
    right: 20px;
    width: 180px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.3);
    border-bottom-left-radius: 8px;
    overflow: hidden;
    z-index: 99;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid #ddd;
    min-width: 180px;
    padding: 10px 0;
}
.main-nav.show {
    display: block;
}
.main-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
}
.main-nav ul li a {
    display: block;
    padding: 15px 12px;
    color: #000000;
    text-decoration: none;
    font-size: 16px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    transition: background-color 0.3s, color 0.3s;
    font-weight: 600;
    align-items: center;
}
.main-nav ul li a i {
    margin-right: 10px;
    color: #2c3e50;
    font-size: 18px;
    width: 20px;
    transition: color 0.3s;
}
/* ⭐ 마우스 호버, 포커스, 활성 스타일 (하이라이트) ⭐ */
.main-nav ul li a:hover,
.main-nav ul li a:focus,
.main-nav ul li a.active {
    color: #6c5ce7;
    background-color: rgba(108, 92, 231, 0.1);
    border-left: 4px solid #6c5ce7;
    padding-left: 16px;
    outline: none;
}
.main-nav ul li a:hover i,
.main-nav ul li a:focus i,
.main-nav ul li a.active i {
    color: #6c5ce7;
}
.main-nav ul li:last-child a {
    border-bottom: none;
}
/* 햄버거 메뉴용 로그아웃 버튼 */
.main-nav ul li a#nav-logout-link {
    color: #e74c3c;
    display: none;
}
.main-nav ul li a#nav-logout-link i {
    color: #e74c3c;
}
.main-nav ul li a#nav-logout-link:hover {
    color: #ffffff;
    background-color: #e74c3c;
    border-left-color: #c0392b;
}
.main-nav ul li a#nav-logout-link:hover i {
    color: #ffffff;
}
/* 사용자 프로필 메뉴 */
.user-menu {
    display: none;
    position: absolute;
    top: 55px;
    right: 20px;
    background-color: #34495e;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    width: 200px;
    z-index: 101;
    overflow: hidden;
}
.user-menu.show {
    display: block;
}
.user-menu .user-info {
    border-bottom: 1px solid #eee;
    padding: 15px;
    background-color: #2c3e50;
    color: #ecf0f1;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}
.user-menu .user-info strong {
    font-size: 1.1em;
    display: block;
    margin-bottom: 5px;
    color: #fff;
}
.user-menu .user-info p {
    font-size: 0.9em;
    color: #bdc3c7;
    margin: 0;
}
.user-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.user-menu ul li a {
    display: block;
    padding: 12px 15px;
    color: #ecf0f1;
    text-decoration: none;
    font-size: 15px;
    transition: background-color 0.3s, color 0.3s;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    align-items: center;
    font-weight: 500;
}
.user-menu ul li a i {
    margin-right: 8px;
    color: #6c5ce7;
    width: 16px;
    font-size: 16px;
}
.user-menu ul li a:hover {
    background-color: rgba(52, 152, 219, 0.2);
    color: #3498db;
}
.user-menu ul li:last-child a {
    border-bottom: none;
}
#logout-button { color: #e74c3c; }
#logout-button i { color: #e74c3c; }
/* ⭐⭐ 로그인/회원가입 페이지용 레이아웃 ⭐⭐ */
.login-page-main {
    flex-grow: 1;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    width: 100%;
    margin-top: 70px;
    height: calc(100vh - 70px);
    overflow-y: auto;
    padding: 20px 0;
    background-image: url('futsal_main_background_clean.jpg');
    background-size: cover;
    background-position: center;
}
.main-wrapper {
    display: flex;
    width: 700px;
    height: auto;
    min-height: 650px;
    max-width: 90%;
    border-radius: 20px;
    margin: auto auto;
}
.login-section {
    flex: 1;
    padding: 50px 50px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    position: relative;
    overflow-y: auto;
}
.main-section {
    flex: 1;
    padding: 50px 50px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    background: rgba(255, 255, 255);
    position: relative;
    overflow-y: auto;
}
.title-login {
    font-size: 38px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 25px;
}
.input-with-icon {
    position: relative;
    display: flex;
    align-items: center;
}
.input-icon {
    position: absolute;
    left: 15px;
    color: #9b59b6;
    font-size: 16px;
    z-index: 5;
    pointer-events: none;
}
.input-with-icon input {
    padding-left: 40px !important;
    position: relative;
    z-index: 1;
}
.input-group {
    margin-bottom: 18px;
}
.input-group label {
    display: block;
    font-weight: 700;
    margin-bottom: 6px;
    color: #2c3e50;
}
.input-group input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 10px;
    font-size: 15px;
    outline: none;
    background: #f7f7f7;
    transition: 0.3s;
}
.input-group input:focus {
    border-color: #6c5ce7;
    box-shadow: 0 0 8px rgba(108, 92, 231, 0.4);
}
.input-group input[type="file"] {
    background: rgba(255,255,255,0.8);
    font-size: 14px;
}
.input-group input[type="file"]::file-selector-button {
    padding: 8px 12px;
    border: none;
    border-radius: 5px;
    background: #6c5ce7;
    color: white;
    cursor: pointer;
    margin-right: 10px;
    transition: 0.3s;
}
.input-group input[type="file"]::file-selector-button:hover {
    background: #8e44ad;
}
.password-wrapper {
    position: relative;
}
.password-wrapper .toggle-password {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #999;
    z-index: 6;
}
.forgot-remember {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    margin-top: 10px;
    margin-bottom: 20px;
}
.forgot-password {
    color: #a50f00;
    text-decoration: none;
}
.remember-me {
    display: flex;
    align-items: center;
    gap: 5px;
}
.remember-me input {
    accent-color: #e74c3c;
}
.login-button {
    display: inline-block;
    padding: 18px 45px;
    background: #6c5ce7;
    color: white;
    font-size: 22px;
    font-weight: 700;
    border-radius: 35px;
    text-decoration: none;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    transition: background 0.3s ease, transform 0.3s ease;
    white-space: nowrap;
    width: 100%;
    border: none;
    cursor: pointer;
    overflow: hidden;
}
.schedule-button {
    width: 100%;
    margin-top: 10px;
    padding: 16px;
    font-size: 18px;
    color: #fff;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    box-shadow: 0 10px 20px rgba(108, 92, 231, 0.4), inset 0 -3px 0 rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    overflow: hidden;
}
.login-button:hover {
    background: #8e44ad;
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
}
.signup-link {
    margin-top: 25px;
    text-align: center;
    font-size: 14px;
}
.signup-link a {
    color: #e74c3c;
    font-weight: bold;
    text-decoration: none;
}
.social-login {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 35px;
}
.social-btn {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: 1px solid #ddd;
    font-size: 20px;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}
.social-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.15);
}
.social-btn.google { color: #DB4437; }
.social-btn.kakao { background: #FEE500; color: #191919; }
.social-btn.whatsapp { color: #25D366; }
.social-btn.facebook { color: #4267B2; }
.social-btn.youtube { color: #FF0000; }
.background-image-section {
    height: 250px;
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
    position: relative;
    display: none;
}
.background-image-section::before {
    clip-path: none;
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, rgba(45, 52, 54, 0.7), rgba(108, 92, 231, 0.3));
    background: rgba(0,0,0,0.3);
}
.background-image-section .overlay-content {
    display: none;
}
.overlay-content {
    position: relative;
    z-index: 2;
    color: white;
    padding: 20px;
    max-width: 80%;
}
.section-logo {
    width: 1px;
    height: 1px;
    margin-bottom: 20px;
}
.section-slogan {
    font-size: 32px;
    font-weight: 900;
    margin-bottom: 10px;
    text-shadow: 0 3px 6px rgba(0,0,0,0.4);
    line-height: 1.3;
}
.section-sub-slogan {
    font-size: 18px;
    font-weight: 400;
    opacity: 0.9;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}
.tab-buttons {
    display: flex;
    margin-bottom: 25px;
    border-bottom: 2px solid #ddd;
}
.tab-btn {
    flex: 1;
    padding: 12px 10px;
    font-size: 16px;
    font-weight: 700;
    text-align: center;
    background: none;
    border: none;
    cursor: pointer;
    color: #999;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
}
.tab-btn.active {
    color: #6c5ce7;
    border-bottom-color: #6c5ce7;
    margin-bottom: -2px;
}
.tab-btn:hover:not(.active) {
    color: #555;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}
.back-to-login {
    margin-top: 30px;
    text-align: center;
}
.back-to-login a {
    color: #6c5ce7;
    font-weight: bold;
    text-decoration: none;
    font-size: 14px;
    transition: 0.3s;
}
.back-to-login a:hover {
    color: #8e44ad;
}
.info-message {
    color: green;
    border-radius: 5px;
    font-size: 14px;
    margin-bottom: 15px;
}
.error-message {
    color: #D8000C;
    background-color: #FFD2D2;
    border: 1px solid #D8000C;
    padding: 10px;
    border-radius: 5px;
    font-size: 14px;
    margin-bottom: 15px;
}
.terms-agreement{margin-top:15px;font-size:13px;display:flex;align-items:center;gap:8px}.terms-agreement input[type=checkbox]{width:auto;margin:0}.terms-agreement label{margin-bottom:0;font-weight:400;cursor:pointer}.terms-agreement a{color:#6c5ce7;text-decoration:none}.terms-agreement a:hover{text-decoration:underline}
@media (max-width: 900px) {
    body {
        overflow: auto;
    }
    .login-page-main {
        padding: 20px 0;
        align-items: flex-start;
    }
    .main-wrapper {
        flex-direction: column;
        width: 95%;
        height: auto;
        min-height: 0;
        margin: 20px 0;
    }
    .login-section {
        padding: 40px 30px;
        overflow-y: visible;
    }
    .quick-menu {
        padding: 10px 20px;
    }
    .main-nav {
        right: 10px;
    }

    .slider-arrow.prev { left: 0px; }
    .slider-arrow.next { right: 0px; }
}
/* ===========================
   [수정/추가] 회원가입 중복 확인 버튼 스타일 개선
=========================== */
.input-group.with-button {
    display: flex;
    align-items: flex-end;
    gap: 10px;
    margin-bottom: 20px;
}
.input-group.with-button .input-wrapper {
    flex-grow: 1;
}
.input-group.with-button .input-wrapper label {
    display: block;
    font-weight: 700;
    margin-bottom: 6px;
    color: #2c3e50;
    font-size: 14px;
}
.input-group.with-button .input-wrapper input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 10px;
    font-size: 15px;
    outline: none;
    background: #f7f7f7;
    transition: 0.3s;
    box-sizing: border-box;
}
.input-group.with-button .input-wrapper input:focus {
    border-color: #6c5ce7;
    box-shadow: 0 0 8px rgba(108, 92, 231, 0.4);
}
.check-duplicate-btn {
    padding: 12px 15px;
    font-size: 14px;
    font-weight: 600;
    color: #6c5ce7;
    background: #f7f7f7;
    border: 1px solid #ddd;
    border-radius: 10px;
    cursor: pointer;
    transition: 0.3s;
    white-space: nowrap;
    min-width: 80px;
    box-sizing: border-box;
}
.check-duplicate-btn:hover {
    background: rgba(108, 92, 231, 0.1);
    border-color: #6c5ce7;
}
.check-duplicate-btn:disabled {
    background: #eee;
    color: #999;
    border-color: #eee;
    cursor: not-allowed;
}
.check-duplicate-btn.success {
    background: #e6ffed;
    color: #28a745;
    border-color: #28a745;
}
#username-message.info-message, #nickname-message.info-message {
    color: green;
    background: none;
    border: none;
    padding: 0 5px;
    font-size: 13px;
    margin-top: -15px;
    margin-bottom: 10px;
}
#nickname-message.error-message {
    color: red;
    background: none;
    border: none;
    padding: 0 5px;
    font-size: 13px;
    margin-top: -15px;
    margin-bottom: 10px;
}
/* ===========================
   [추가] 마이페이지 탭 및 캘린더 스타일
=========================== */
.calendar-container {
    width: 100%;
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 20px;
    margin-top: 20px;
}
.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}
.calendar-header h2 {
    font-size: 22px;
    font-weight: 700;
    color: #2c3e50;
}
.calendar-nav button {
    background: none;
    border: 1px solid #ddd;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    font-size: 16px;
    cursor: pointer;
    margin: 0 5px;
    transition: background-color 0.3s;
}
.calendar-nav button:hover {
    background-color: #eee;
}
.calendar-header-cell {
    text-align: center;
    font-weight: 600;
    color: #555;
    font-size: 13px;
    padding-bottom: 10px;
}
.calendar-day-cell {
    height: 80px;
    border: 1px solid #eee;
    border-radius: 5px;
    padding: 8px;
    font-size: 14px;
    font-weight: 600;
    background-color: white;
    transition: background-color 0.3s;
    cursor: pointer;
}
.calendar-day-cell.other-month {
    background-color: #f7f7f7;
    color: #ccc;
}
.calendar-day-cell:not(.other-month):hover {
    background-color: #f0f0f0;
}
.calendar-event {
    background-color: rgba(108, 92, 231, 0.2);
    border-left: 3px solid #6c5ce7;
    padding: 3px 6px;
    font-size: 12px;
    border-radius: 3px;
    margin-top: 5px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    cursor: pointer;
}
.calendar-event:hover {
    background-color: rgba(108, 92, 231, 0.4);
}
/* ★★★ IAMGROUND 스타일 추가 ★★★ */
/* 1. 풀스크린 비디오 컨테이너 */
.video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
    background-image: url('futsal_main_background_clean.jpg');
    background-size: cover;
    background-position: center;
}
.video-background video {
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}
/* 2. 오버레이 (텍스트 명료화) */
.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.4);
    z-index: -1;
}
/* 3. 히어로 섹션 (첫 화면) */
.hero-section {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    color: white;
    padding-top: 70px;
    z-index: 5;
    overflow: hidden;


    /* 배경 이미지를 Hero 섹션에 직접 적용 */
    background-image: url('futsal_main_background_clean.jpg');
    background-size: cover;
    background-position: center;
}
.hero-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0);
    z-index: -1;
}
/* 5. CTA 버튼 스타일 재정의 */
.cta-button {
    display: inline-block;
    margin-top: 40px;
    padding: 15px 35px;
    background: linear-gradient(45deg, #2ecc71, #27ae60);
    color: white;
    font-size: 22px;
    font-weight: 700;
    border-radius: 30px;
    text-decoration: none;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    overflow: hidden;
    letter-spacing: 1px;
}
.cta-button:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.4);
    background: linear-gradient(45deg, #27ae60, #2ecc71);
    filter: brightness(1.1);
}
.cta-button:active {
    transform: translateY(-2px);
    box-shadow: 0 8px 15px rgba(108, 92, 231, 0.3);
}
/* 3. ⭐⭐ 후기 및 일정 관련 텍스트 스타일 개선 ⭐⭐ */
/* 후기 알림 및 작성 링크 스타일 */
#review-notification-section {
    background-color: rgba(44, 62, 80, 0.9);
    color: white;
    padding: 15px 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    margin-bottom: 25px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 15px;
    font-weight: 500;
    position: relative;
    font-family: 'Noto Sans KR', sans-serif;
}
#review-notification-section .review-notification-text strong {
    color: #f1c40f;
}
.review-notification-link {
    text-decoration: none;
    color: white;
    background-color: #e74c3c;
    padding: 8px 15px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    transition: background-color 0.3s;
    font-family: 'Noto Sans KR', sans-serif;
    letter-spacing: -0.5px;
}
.review-notification-link:hover {
    background-color: #c0392b;
}
/* 일정 타이틀 스타일 */
.schedule-title {
    font-size: 28px;
    font-weight: 900;
    color: #222;
    text-align: center;
    text-shadow: 0 2px 6px rgba(255, 255, 255, 0.8);
    border-bottom: 3px solid #000;
    display: inline-block;
    padding-bottom: 6px;
    margin-bottom: 25px;
    animation: fadeUp 0.8s ease-out forwards;
    font-family: 'Noto Sans KR', sans-serif;
    letter-spacing: -0.5px;
}
/* ⭐⭐ 일정 목록 아이템 레이아웃 (하나씩 보이도록) ⭐⭐ */
.schedule-slider-container {
    background: rgba(255, 255, 255, 0.1);
    padding: 0 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(5px);
    max-width: 600px;
    margin: 0 auto;
    position: relative;
    box-sizing: border-box;
}
.schedule-slider-viewport {
    overflow: hidden;
    width: 100%;
    max-width: 520px;
    margin: 0 auto;
}
#schedule-list-items {
    display: flex;
    transition: transform 0.5s ease-in-out;
    justify-content: flex-start;
}
/* ⭐⭐ 일정 아이템 디자인 개선 ⭐⭐ */
.schedule-item {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(240, 240, 240, 0.95)) !important;
    color: #2c3e50 !important;
    border: 1px solid rgba(0,0,0,0.1);
    text-align: left;
    max-width: 600px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    margin: 0 10px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    padding: 25px 20px;
    width: 500px;
    flex-shrink: 0;
    transition: all 0.3s ease;
    font-family: 'Noto Sans KR', sans-serif;
}
.schedule-item strong {
    font-size: 17px;
    color: #111;
    display: block;
    margin-bottom: 5px;
}
.schedule-item .item-type {
    font-size: 13px;
    font-weight: 700;
    color: #e74c3c;
    margin-bottom: 5px;
}
.schedule-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(0, 0, 0, 0.3);
}
.schedule-item .item-location {
    font-size: 14px;
    color: #555;
    display: flex;
    align-items: center;
}
.schedule-item .item-location i {
    margin-right: 5px;
    color: #8e44ad;
}
.schedule-item-info {
    color: #2c3e50;
    font-size: 16px;
    margin-bottom: 15px;
    font-family: 'Noto Sans KR', sans-serif;
    line-height: 1.5;
}
.schedule-item-info strong {
    font-weight: 800;
    color: #6c5ce7;
    display: block;
    margin-bottom: 5px;
    font-size: 19px;
    letter-spacing: -0.3px;
    text-shadow: 0 1px 2px rgba(0,0,0,0.05);
}
/* 상세보기 링크를 버튼처럼 보이도록 재구성 */
.schedule-item-link {
    background: linear-gradient(145deg, #000, #333);
    color: white !important;
    border-radius: 8px;
    padding: 8px 18px;
    font-weight: 600;
    display: inline-block;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    text-decoration: none;
    font-size: 14px;
    font-family: 'Noto Sans KR', sans-serif;
    letter-spacing: 0.5px;
}
.schedule-item-link:hover {
    background: linear-gradient(145deg, #111, #000);
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.4);
    filter: brightness(1.1);
}
/* [PC/기본 정렬] 상세보기 버튼 컨테이너: 우측 정렬 */
.schedule-item-actions {
    width: 100%;
    text-align: right; /* PC 기본: 우측 정렬 */
    margin-top: 15px;
}

.slider-arrow {
    /* ⭐⭐⭐ 수정: 기본 화살표 배경색을 검정 그라데이션으로 유지 ⭐⭐⭐ */
    background: linear-gradient(145deg, #000, #222) !important;
    color: white !important;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: none;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
    transition: all 0.25s ease;
    position: absolute;
    /* ⭐⭐ 40%로 조정하여 카드 높이 중앙에 가깝게 위치 ⭐⭐ */
    top: 40%;
    transform: translateY(-50%);
    font-size: 22px;
    cursor: pointer;
    z-index: 60;
    line-height: 1;
    text-shadow: none;
    justify-content: center;
    align-items: center;
}
.slider-arrow:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.4);
    background: #6c5ce7;
}
.slider-arrow.prev { left: 0px; }
.slider-arrow.next { right: 0px; }
/* 페이지네이션 (점들) 스타일 */
.slider-pagination {
    text-align: center;
    margin-top: 20px;
    position: relative;
    z-index: 55;
}
.slider-pagination .dot {
    background-color: rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    display: inline-block;
    width: 10px;
    height: 10px;
    margin: 0 6px;
    border-radius: 50%;
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.2);
}
.slider-pagination .dot.active {
    background: #000;
    transform: scale(1.4);
    box-shadow: 0 0 6px rgba(0, 0, 0, 0.3);
    width: 12px;
    height: 12px;
    border: 1px solid #6c5ce7;
}
/* ⭐⭐ 끝: 일정 슬라이더 레이아웃 및 아이템 ⭐⭐ */
/* 추가 섹션 스타일 */
#features-section {
    background-color: #1a2a3a; /* Value Section과 동일한 어두운 배경 */
    color: white;
    padding: 80px 20px;
    text-align: center;
    position: relative;
    z-index: 10;
    width: 100%;
    min-height: 80vh;
    box-shadow: 0 0 20px rgba(0,0,0,0.1);
}
#features-section h2 {
    color: white;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.7);
    font-size: 40px;
    margin-bottom: 60px;
    font-weight:900;
}
/* ===========================
   [추가] 메인 페이지 피처 카드 스타일 (IAMGROUND Section)
=========================== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}
/* ⭐⭐ 피처 카드 디자인 개선 ⭐⭐ */
.feature-card {
    background: rgba(255, 255, 255, 0.1); /* 투명한 흰색 배경 */
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    padding: 28px 22px;  /* ✅ 기존 40px 내외면 이 정도로 */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-bottom: 4px solid #6c5ce7; /* 보라색 강조 */
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex: 1 1 300px;
    min-width: 280px;
    background: #ffffff;
    text-align: center;
    border-bottom: 5px solid #6c5ce7;
    border-top: none;
}
.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
}
.feature-card .icon-wrapper {
    background: #6c5ce7; /* 보라색 아이콘 배경 */
    color: white;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 25px;
    font-size: 32px;
    box-shadow: 0 5px 15px rgba(108, 92, 231, 0.4);
    transition: background 0.3s;
}
.feature-card:hover .icon-wrapper {
    background: rgba(108, 92, 231, 0.2);
}
.feature-card h3 {
    color: #020202; /* 흰색 제목 */
    font-size: 26px;
    margin-bottom: 15px;
    text-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
    font-weight: 800;
}
.feature-card p {
    color: #000000; /* 밝은 회색 내용 */
    line-height: 1.6;
    margin-bottom: 25px;
    font-size: 16px;
}
.card-link {
    display: inline-block;
    padding: 10px 20px;
    background: #f1c40f; /* 노란색 링크 버튼 */
    color: #333; /* 검은색 텍스트 */
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.3s ease;
    margin-top: 10px; /* ⭐⭐⭐ [추가] 버튼 상단 여백 추가 ⭐⭐⭐ */
}
.feature-card .card-link:hover {
    background: #f39c12;
    transform: translateY(-2px);
}
/* ⭐⭐ 끝: 피처 카드 디자인 개선 ⭐⭐ */
/* ===========================
   [추가] 메인페이지 대시보드 요소 스타일
=========================== */
.value-section {
    background-color: #34495E; /* 훨씬 더 어두운 배경색 */
    color: white;
    padding: 80px 20px;
    text-align: center;
    position: relative;
    z-index: 10;
    width: 100%;
}
.value-section h2 {
    color: white;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.7);
    font-size: 40px;
    font-weight: 900;
    margin-bottom: 60px;
}
.value-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* ✅ 4 → 3으로 변경 */
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    justify-content: center;
    flex-wrap: wrap;
}
.value-card {
    background: #ffffff; /* 투명한 흰색 배경 */
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3); /* 그림자 강화 */
    padding: 30px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-bottom: 4px solid #6c5ce7; /* 보라색 강조 */
    backdrop-filter: blur(5px); /* 유리 효과 */
    border: 1px solid rgba(255, 255, 255, 0.15);
    flex: 1 1 200px;
    border-bottom: 3px solid #6c5ce7;
}
.value-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
}
.value-card i {
    color: #6c5ce7; /* 보라색 아이콘 */
    font-size: 48px;
    margin-bottom: 20px;
    text-shadow: 0 0 10px rgba(108, 92, 231, 0.5);

}
.value-card h3 {
    color: #000000; /* 흰색 제목 */
    font-size: 24px;
    margin-bottom: 15px;
    text-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
    font-weight: 700;
}
.value-card p {
    font-size: 0.9rem;
    opacity: 0.8;
    color: #000000;
    line-height: 1.6;
}
@media (max-width: 1200px) {
    .value-grid {
        grid-template-columns: repeat(2, 1fr); /* 2개씩으로 전환 */
    }
}
@media (max-width: 768px) {
    .value-grid {
        grid-template-columns: 1fr; /* 1개씩 */
    }
    .features-grid {
        grid-template-columns: 1fr;
    }
}
.global-cta-section {
    width: 100%;
    background: linear-gradient(135deg, #2c3e50, #34495e); /* 검정/남색 계열로 변경 */
    color: white;
    padding: 80px 20px;
    text-align: center;
    position: relative;
    z-index: 10;

}
.global-cta-section h2 {
    font-size: 40px;
    margin-bottom: 40px;
    font-weight: 900;
    text-shadow: 0 3px 8px rgba(0, 0, 0, 0.3);
    color: white; /* 어두운 배경에 흰색 제목 */
    line-height: 1.2;
}
.chat-promo-section {
    background: linear-gradient(135deg, #34495e, #2c3e50); /* 어두운 파란색 계열 그라데이션 */
    color: white;
    padding: 80px 20px;
    text-align: center;
    position: relative;
    z-index: 10;
    width: 100%;
    border-bottom: 1px solid #eee;
}
.chat-promo-section h2 {
    font-size: 36px;
    margin-bottom: 30px;
    font-weight: 800;
    color: white;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.7);

}
.chat-promo-section h2 i {
    color: #f1c40f; /* 노란색 아이콘 강조 */
    margin-right: 10px;
}
.chat-promo-box {
    background: rgba(255, 255, 255, 0.15); /* 투명한 흰색 배경 */
    border-radius: 15px;
    padding: 40px;
    max-width: 800px;
    margin: 0 auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4); /* 그림자 강화 */
    backdrop-filter: blur(8px); /* 유리 효과 강화 */
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-left: 5px solid #f1c40f; /* 노란색 강조 */
    background: #fff;
    border-left: 5px solid #2ecc71;
}
.chat-promo-box p {
    font-size: 18px;
    line-height: 1.7;
    margin-bottom: 30px;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    color: #000000;
}
.chat-action-link {
    display: inline-block;
    padding: 15px 30px;
    background: #f1c40f; /* 노란색 버튼 */
    color: #333; /* 검은색 텍스트 */
    font-size: 18px;
    font-weight: 700;
    border-radius: 30px;
    transition: background 0.3s ease, transform 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    text-decoration: none;
}
.chat-action-link:hover {
    background: #f39c12;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}
/* ---------------------------------
   [추가] 프로젝트 정보 푸터 스타일
--------------------------------- */
.project-footer {
    background-color: #34495e; /* 어두운 남색 계열 */
    color: #ecf0f1;
    padding: 30px 20px;
    text-align: center;
    font-size: 14px;
    line-height: 1.8;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    width: 100%;
    z-index: 10;
    position: relative;
    border-top: 3px solid #6c5ce7;
}
.project-footer .footer-content {
    max-width: 1200px;
    margin: 0 auto;
    opacity: 0.85;
}
.project-footer p strong {
    font-weight: 700;
    color: #f7f7f7;
}
/* ---------------------------------
   [추가] 프로젝트 정보 푸터 링크 스타일
--------------------------------- */
.project-footer a {
    color: #3498db;
    text-decoration: none;
    transition: opacity 0.2s;
    font-weight: 600;
}
.project-footer a:hover {
    text-decoration: underline;
    opacity: 0.7;
}
/* ---------------------------------
   [추가] 채팅 페이지 사용자 프로필 정보 창 스타일 (가정)
--------------------------------- */
.user-profile-modal-content, .profile-info-container, .profile-detail-view {
    max-width: 350px;
    width: 90%;
    height: auto;

    background: #fff;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.3);

    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);

    z-index: 10000;
    border: 1px solid #eee;
}
.profile-close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 1.5rem;
    cursor: pointer;
    color: #2c3e50;
    transition: color 0.2s;
}
.profile-close-btn:hover {
    color: #e74c3c;
}
.profile-action-button {
    width: 100%;
    padding: 12px;
    margin-top: 12px;
    border: none;
    border-radius: 25px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 15px;
}
.chat-button {
    background: #6c5ce7;
    color: white;
    box-shadow: 0 4px 10px rgba(108, 92, 231, 0.4);
}
.chat-button:hover {
    filter: brightness(1.1);
    transform: translateY(-1px);
}
.friend-request-button {
    background: #f0f0f0;
    color: #2c3e50;
    border: 1px solid #ddd;
}
.friend-request-button:hover {
    background: #e0e0e0;
}
.search-content {
    display: flex;
    gap: 20px;
}
/* ⭐ 폼 중앙 정렬 및 배경 제거/단순화 ⭐ */
.review-page-main {
    padding: 100px 20px 40px 20px; /* 상단 패딩 유지, 좌우 패딩 줄임 */
    min-height: 100vh;
    display: flex;
    justify-content: center; /* 폼을 중앙으로 */
    align-items: flex-start; /* 상단 시작점 정렬 */
    background-color: #f7f7f7;
    position: relative;
    z-index: 1;
}
.review-page-main::before {
    content: none; /* 오버레이 제거 */
}
.review-main-wrapper {
    display: block; /* Flex 속성 제거 */
    width: 100%;
    max-width: 650px; /* 폼 컨테이너 최대 너비 설정 */
    margin: auto;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border-radius: 15px;
    overflow: hidden;
    background: white; /* 메인 컨테이너 배경 흰색 */
}
.review-form-container {
    background: white;
    padding: 40px;
    width: 100%;
}
.title-review {
    font-size: 28px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 20px;
    border-bottom: 2px solid #ddd;
    padding-bottom: 10px;
    text-align: left;
}
.review-input-group {
    margin-bottom: 25px;
    text-align: left;
}
.review-input-group label {
    display: block;
    font-size: 16px;
    font-weight: 700;
    color: #34495e;
    margin-bottom: 8px;
}
/* 경기 정보 필드 스타일 (이미지처럼 회색 배경) */
#match-info {
    width: 100%;
    padding: 12px 15px;
    font-size: 16px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background-color: #f0f0f0 !important; /* 이미지처럼 회색 배경 */
    cursor: default;
}
.review-input-group textarea {
    width: 100%;
    padding: 12px 15px;
    font-size: 16px;
    border: 1px solid #ddd;
    border-radius: 8px;
    min-height: 120px;
    resize: vertical;
    box-sizing: border-box;
    background-color: #f9f9f9;
}

/* ⭐⭐ 별점 시스템 스타일 (Font Awesome 대체) ⭐⭐ */
.star-rating {
    display: flex;
    align-items: center;
    direction: rtl; /* 별점 순서 반대로 */
    font-size: 50px; /* ⭐ 50px로 최종 확대 ⭐ */
}
.star-rating input[type="radio"] {
    display: none;
}
.star-rating label {
    color: #ddd; /* 기본 별 색상 */
    cursor: pointer;
    transition: color 0.2s;
    padding: 0 5px; /* 별 사이 간격 */
}
.star-rating label:before {
    content: '★'; /* 별표 유니코드 문자 */
}
.star-rating label:hover,
.star-rating label:hover ~ label,
.star-rating input[type="radio"]:checked ~ label {
    color: #f39c12; /* 선택/호버 시 별 색상 (주황) */
}

/* ⭐⭐ 후기 등록 버튼 스타일 (이미지처럼 회색/검정 계열) ⭐⭐ */
.submit-button { /* 기존 login-button 오버라이드 */
    padding: 12px 25px;
    background-color: #555; /* 회색 버튼 */
    color: white;
    font-size: 18px;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    float: right; /* 오른쪽 정렬 */
    margin-top: 20px;
    transition: background-color 0.2s;
}
.submit-button:hover {
    background-color: #333;
}
.form-actions::after {
    content: "";
    display: table;
    clear: both;
}
.stadium-map-area {
    width: 100%;
    height: 350px;
    background-color: #eee;
    border-radius: 10px;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #888;
}
.amenities-list {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #eee;
    font-size: 14px;
}
.amenity-tag {
    display: inline-block;
    background: #e6e6ff;
    color: #6c5ce7;
    padding: 5px 10px;
    border-radius: 20px;
    margin-right: 8px;
    margin-bottom: 8px;
    font-weight: 600;
}
.time-select-group {
    display: flex;
    gap: 10px;
    align-items: center;
}
.time-select-group select {
    flex-grow: 1;
    min-width: 120px;
}
.time-select-group span {
    font-size: 18px;
    color: #555;
    font-weight: 600;
}
.stadium-modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 20px;
}
.stadium-btn-cancel,
.stadium-btn-create {
    padding: 8px 16px;
    border-radius: 8px;
    border: none;
    font-weight: 700;
    cursor: pointer;
    font-size: 14px;
}
.stadium-btn-cancel {
    background-color: #e0e0e0;
    color: #555;
}
.stadium-btn-cancel:hover {
    background-color: #bdbdbd;
}
.stadium-btn-create {
    background-color: #333;
    color: #fff;
}
.stadium-btn-create:hover {
    background-color: #111;
}
.search-main {
    padding: 100px 40px 40px 40px;
    background-color: #f7f7f7;
    min-height: 100vh;
}
.search-title {
    font-size: 28px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 25px;
    border-bottom: 2px solid #6c5ce7;
    padding-bottom: 10px;
}
.search-title-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}
/* 날짜 범위를 한 덩어리로 보이게 */
.date-range {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #fff;
    border: 1px solid #e6e8ff;
    padding: 8px 10px;
    border-radius: 10px;
    box-shadow: 0 2px 6px rgba(108, 92, 231, 0.06);
}
/* 날짜 필드 한 칸 */
.date-field {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 180px;
}
.date-label {
    font-size: 12px;
    font-weight: 700;
    color: #6c5ce7;
    display: flex;
    gap: 6px;
    align-items: center;
}
.date-field input[type="date"] {
    padding: 8px 10px;
    border: 1px solid #dfe3ff;
    border-radius: 8px;
    font-size: 14px;
    outline: none;
    background: #fafbff;
    transition: 0.2s;
}
.date-field input[type="date"]:focus {
    border-color: #6c5ce7;
    box-shadow: 0 0 8px rgba(108, 92, 231, 0.4);
}
/* ~ 구분자 */
.range-separator {
    font-size: 18px;
    font-weight: 900;
    color: #6c5ce7;
    padding: 0 2px;
}
/* 검색 버튼 강조 */
.search-btn {
    padding: 9px 14px;
    border: none;
    border-radius: 9px;
    background: #6c5ce7;
    color: white;
    font-weight: 800;
    cursor: pointer;
    transition: 0.2s;
    display: flex;
    align-items: center;
    gap: 6px;
}
.search-btn:hover {
    transform: translateY(-1px);
    background: #5648d6;
    box-shadow: 0 6px 14px rgba(108, 92, 231, 0.25);
}
.detail-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}
@media (min-width: 768px) {
    .detail-grid {
        grid-template-columns: 1fr 350px;
    }
}
.map-area {
    width: 100%;
    height: 300px;
    background-color: #eee;
    border-radius: 10px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #888;
}
.detail-info-item {
    display: flex;
    font-size: 16px;
    color: #333;
    margin-bottom: 15px;
    align-items: center;
}
.detail-info-item i {
    width: 30px;
    color: #6c5ce7;
    font-size: 18px;
}
.status-card {
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 20px;
}
.status-card h3 {
    font-size: 20px;
    color: #2c3e50;
    border-bottom: 1px solid #ddd;
    padding-bottom: 10px;
    margin-bottom: 15px;
}
.join-button {
    width: 100%;
    padding: 14px;
}
.join-btn-cancel {
    background-color: #e74c3c;
}
#host-select-hint {
    font-size: 12px;
    color: #999;
    margin-top: 8px;
}
#close-match-btn {
    background-color: #ccc !important;
    cursor: not-allowed;
}
#close-match-btn.enabled:not(:disabled) {
    background-color: #6c5ce7 !important;
    cursor: pointer;
}
.notifications-page-main {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: url("static/css/futsal_main_background_clean.jpg") center/cover no-repeat;
    position: relative;
}
/* ✅ 중앙 알림 박스 */
.notifications-container {
    background: rgba(255, 255, 255, 0.85);
    border-radius: 25px;
    padding: 50px 60px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    max-width: 700px;
    width: 90%;
    text-align: left;
    backdrop-filter: blur(10px);
    z-index: 10;
}
.title-notifications {
    font-size: 28px;
    font-weight: 800;
    color: #2c3e50;
    margin-bottom: 35px;
    border-left: 6px solid #6c5ce7;
    padding-left: 14px;
}
/* =========================
   NOTIFICATIONS PAGE START
   ========================= */
.notification-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.notification-item {
    display: flex;
    align-items: center;
    gap: 15px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 14px;
    padding: 16px;
    margin-bottom: 12px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
    transition: all 0.2s ease-in-out;
    cursor: pointer;
}
.notification-item:hover {
    transform: translateY(-3px);
    background: #f9f9ff;
    box-shadow: 0 5px 12px rgba(108, 92, 231, 0.15);
}
.notification-item.unread {
    background-color: #fff8e1;
    border-left: 5px solid #ffc107;
    padding-left: 10px;
}
.notification-item.clickable {
    cursor: pointer;
}
.notification-item.clickable:hover {
    background-color: #f0f0f0;
}
.notification-item i {
    font-size: 20px;
    text-align: center;
}
.notification-content {
    flex: 1;
    padding-right: 10px;
}
.notification-content .main-text {
    font-size: 16px;
    font-weight: 600;
    color: #2c3e50;
    margin: 0;
}
.notification-content p {
    font-size: 16px;
    font-weight: 600;
    margin: 0;
    color: #2c3e50;
}
.notification-content .time {
    font-size: 13px;
    color: #777;
    margin-top: 4px;
}
.notification-actions {
    display: flex;
    gap: 5px;
    flex-shrink: 0;
}
.notification-actions button {
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    white-space: nowrap;
}
.btn-accept {
    background-color: #2ecc71;
    color: white;
}
/* 아이콘 컬러 */
.notification-item .icon-review { color: #faad14; }
.notification-item .icon-schedule { color: #6c5ce7; }
.notification-item .icon-friend { color: #2ecc71; }
.notification-item .icon-chat { color: #3498db; }
/* =========================
   NOTIFICATIONS PAGE END
   ========================= */
/* =========================
   REGISTER PAGE START
  ========================= */
.input-group.address-group {
    display: flex;
    gap: 10px;
    align-items: flex-end;
}
.input-group.address-group .input-wrapper {
    flex-grow: 1;
}
.address-group button {
    padding: 12px 15px;
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    background: #95a5a6;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: background 0.3s;
    white-space: nowrap;
    min-width: 80px;
}
.address-group button:hover {
    background: #7f8c8d;
}
/* 이용약관 모달 */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}
.modal-overlay.show {
    display: flex;
}
.modal {
    background: #fff;
    max-width: 900px;
    width: 90%;
    max-height: 80vh;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.modal-header {
    padding: 16px 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.modal-header h1 {
    margin: 0;
    font-size: 20px;
}
.modal-close-btn {
    background: none;
    border: none;
    font-size: 22px;
    cursor: pointer;
}
.modal-body {
    padding: 16px 20px;
    overflow-y: auto;
}
.modal-body h2 {
    margin-top: 24px;
}
.modal-body .clause {
    background: #f4f4f4;
    border: 1px solid #ddd;
    padding: 15px;
    margin-top: 10px;
}
.modal-footer {
    padding: 16px 20px;
    border-top: 1px solid #eee;
    text-align: center;
}
.agree-btn {
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    background: #6c5ce7;
    color: #fff;
    cursor: pointer;
}
.agree-btn:hover {
    background: #574bdb;
}
.terms-link {
    color: #3498db;
    text-decoration: underline;
    cursor: pointer;
}
/* 유효성 메시지 */
.info-message {
    font-size: 13px !important;
    font-weight: 500 !important;
    margin-top: 5px !important;
    display: none !important;
    min-height: 0 !important;
}
.info-message.success {
    color: #2ecc71 !important;
    display: block !important;
}
.info-message.error {
    color: #e74c3c !important;
    display: block !important;
}
/* 프로필 업로드 */
.profile-upload-container {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-top: 10px;
}
.preview-wrapper {
    position: relative;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 2px solid #ddd;
    background-color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}
.preview-text {
    font-size: 14px;
    color: #aaa;
    font-weight: bold;
    z-index: 1;
}
.profile-preview {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: none;
    z-index: 2;
}
.profile-preview.active {
    display: block;
}
.profile-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.reset-img-btn {
    background-color: #e74c3c;
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 5px;
    font-size: 12px;
    cursor: pointer;
    transition: background 0.3s;
}
.reset-img-btn:hover {
    background-color: #c0392b;
}
/* readonly input */
input[type="text"]:read-only,
input[type="email"]:read-only {
    background-color: #eee !important;
    color: #777;
    cursor: not-allowed;
}
/* =========================
   REGISTER PAGE END
   ========================= */
/* =========================
   SCHEDULE PAGE START
   ========================= */
.search-container {
    max-width: 1200px;
    margin: 0 auto;
    background: white;
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 20px;
    margin-top: 20px;
}
.filter-section {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    background: #f7f8ff;
    border: 1px solid #e6e8ff;
    padding: 14px 16px;
    border-radius: 12px;
    margin-bottom: 18px;
}
.filter-section select {
    padding: 9px 10px;
    border: 1px solid #dfe3ff;
    border-radius: 8px;
    background: #fff;
    font-size: 14px;
    cursor: pointer;
    transition: 0.2s;
}
.filter-section select:focus {
    border-color: #6c5ce7;
    box-shadow: 0 0 0 3px rgba(108, 92, 231, 0.12);
}
@media (min-width: 900px) {
    .filter-section {
        flex-wrap: nowrap;     /* 줄바꿈 금지 */
        align-items: center;
    }

    .filter-section .date-range {
        flex: 1 1 auto;        /* 날짜영역이 남는 공간 먹음 */
        min-width: 520px;
    }

    .filter-section .date-field {
        flex: 1 1 0;
        min-width: 0;          /* min-width 때문에 내려가는 현상 방지 */
    }

    #filter-status {           /* 상태 select부터 오른쪽으로 밀기 */
        margin-left: auto;
    }

    #filter-status,
    #filter-sort,
    .search-btn {
        flex-shrink: 0;        /* 셀렉트/버튼 줄지 않게 */
    }
}
@media (max-width: 899px) {
    .filter-section { flex-wrap: wrap; }
    .filter-section .date-range { width: 100%; }
}
.filter-section input[type="text"] {
    flex-grow: 1;
    min-width: 200px;
}
.filter-section button {
    background-color: #6c5ce7;
    color: white;
    font-weight: 600;
    cursor: pointer;
    border: none;
}
.filter-section {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
    flex-wrap: wrap;
    align-items: center;
}
.filter-section input,
.filter-section select,
.filter-section button {
    padding: 12px 15px;
    font-size: 15px;
    border: 1px solid #ddd;
    border-radius: 10px;
    background: #f9f9f9;
    font-family: inherit;
}
.filter-section input[type="text"] {
    min-width: 220px;
}
.filter-section > button#search-btn {
    background-color: #6c5ce7;
    color: white;
    font-weight: 600;
    cursor: pointer;
    border: none;
}
/* 카드 그리드 (한 페이지 안에서 최대 6개) */
.match-list-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}
.match-item-card {
    background: white;
    border: 1px solid #eee;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    border-left: 5px solid #6c5ce7;
}
.match-item-card.closed {
    border-left-color: #aaa;
}
.match-item-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.1);
}
.match-item-header {
    padding: 15px 20px;
    background: #fdfdfd;
    border-bottom: 1px solid #eee;
}
.match-item-header .date {
    font-size: 18px;
    font-weight: 700;
    color: #6c5ce7;
}
.match-item-card.closed .match-item-header .date {
    color: #555;
}
.match-item-body {
    padding: 20px;
}
.match-item-body .location,
.match-item-body .status {
    display: flex;
    align-items: center;
    font-size: 15px;
    color: #555;
    margin-bottom: 12px;
}
.match-item-body .location i,
.match-item-body .status i {
    margin-right: 10px;
    color: #6c5ce7;
    width: 16px;
}
.match-item-body p i.fa-crown {
    color: #f39c12;
}
.match-item-card.closed .match-item-body .location i,
.match-item-card.closed .match-item-body .status i {
    color: #aaa;
}
.match-item-body .status {
    margin-bottom: 20px;
}
.status-badge {
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 5px;
    color: white;
    margin-right: 8px;
}
.status-badge.open {
    background-color: #28a745;
}
.status-badge.closed {
    background-color: #888;
}
.details-button {
    display: block;
    width: 100%;
    text-align: center;
    padding: 10px;
    text-decoration: none;
    background-color: #6c5ce7;
    color: white;
    font-weight: 600;
    border-radius: 8px;
    transition: background-color 0.3s;
}
.details-button:hover {
    background-color: #8e44ad;
}
.details-button.disabled {
    background: #aaa;
    cursor: not-allowed;
}
.details-button.disabled:hover {
    background: #aaa;
}
.details-button.disabled {
    background: #aaa;
    cursor: pointer;
}

/* 🔧 flatpickr: 연도 → 월 순서로 보이게 */
.flatpickr-current-month {
    display: flex;
    align-items: center;
    justify-content: center;
}
.flatpickr-current-month .numInputWrapper { /* 연도 */
    order: 1;
    margin-right: 4px;
}
.flatpickr-current-month .flatpickr-monthDropdown-months { /* 월 */
    order: 2;
}
/* 🔥 슬라이더 레이아웃 */
.match-slider-wrapper {
    position: relative;
    margin-top: 10px;
}
.match-slider-viewport {
    overflow: hidden;
    width: 100%;
}
.match-slider-track {
    display: flex;
    width: 100%;
    transition: transform 0.4s ease;
}
.match-slider-page {
    flex: 0 0 100%;
    box-sizing: border-box;
    padding: 5px 0;
}
/* 좌우 화살표 */
.schedule-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: none;
    background: rgba(0,0,0,0.25);
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 5;
}
.schedule-arrow.left {
    left: -10px;
}
.schedule-arrow.right {
    right: -10px;
}
.schedule-arrow:disabled {
    opacity: 0.3;
    cursor: default;
}
/* 모바일에서 화살표 조금 안쪽으로 */
@media (max-width: 768px) {
    .schedule-arrow.left { left: 0; }
    .schedule-arrow.right { right: 0; }
}
/* =========================
   SCHEDULE PAGE END
   ========================= */
/* [추가] 날짜 범위 선택 필드에 클릭 가능한 커서 적용 */
#filter-date-range {
    cursor: pointer !important;
}
/* [추가] 상세보기 버튼 커서 수정 (비활성화 상태의 커서를 pointer로 복구) */
.delete-match-btn {
    padding: 8px 14px;
    font-size: 14px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    background-color: #6c5ce7;
    color: #fff;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.delete-match-btn:hover {
    background-color: #c0392b;
}
.field-card:hover {
    transform: translateY(-3px);
}
.field-meta p {
    font-size: 14px;
    color: #666;
    margin-bottom: 5px;
    display: flex;
    align-items: center;
}
.field-meta i {
    width: 20px;
    color: #6c5ce7;
    margin-right: 5px;
}
.community-main {
    padding: 100px 40px 40px 40px;
    background-color: #f7f7f7;
    min-height: 100vh;
}
.board-container {
    max-width: 900px;
    margin: 0 auto;
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}
.write-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    border-bottom: 2px solid #6c5ce7;
    padding-bottom: 10px;
}
.write-header h1 {
    font-size: 24px;
    font-weight: 700;
    color: #2c3e50;
}
.write-controls button {
    padding: 8px 15px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s;
}
.write-btn-save {
    background-color: #6c5ce7;
    color: white;
    border: none;
}
.write-btn-cancel {
    background-color: #f0f0f0;
    color: #555;
    border: 1px solid #ddd;
    margin-right: 10px;
}
.write-form input[type="text"],
.write-form select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    margin-bottom: 15px;
    font-size: 16px;
    background: #f7f7f7;
    font-family: inherit;
}
/* 카테고리 SELECT 박스 너비 제한 (이전 요청사항 반영) */
.write-form #category {
    width: auto;
    min-width: 180px;
    max-width: 250px;
}
/* Quill 툴바와 에디터 영역이 하나로 보이도록 조정 */
#editor-container {
    border: 1px solid #ddd;
    border-top: none; /* 툴바와 연결된 것처럼 보이기 위해 상단 테두리 제거 */
    border-radius: 0 0 8px 8px;
    background: #f7f7f7;
    height: 300px;
    margin-bottom: 25px; /* 버튼과의 간격 조정 */
}
/* Quill 툴바 스타일 오버라이드 (UI 일관성 유지) */
.ql-toolbar.ql-snow {
    background: #ecf0f1;
    border: 1px solid #ddd;
    border-bottom: none;
    /* 툴바 상단 마진 및 둥근 테두리 조정 */
    border-radius: 8px 8px 0 0; /* 상단만 둥글게 유지 */
    padding: 8px 10px;
}
.ql-container.ql-snow {
    border: none; /* 바깥 컨테이너 테두리 제거 */
}
/* Quill undo/redo 버튼 스타일 */
.ql-toolbar .ql-undo::before,
.ql-toolbar .ql-redo::before {
    content: none !important;
}
.ql-toolbar .ql-undo,
.ql-toolbar .ql-redo {
    position: relative;
    width: 24px;
    height: 24px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 16px;
}
.ql-toolbar .ql-undo i,
.ql-toolbar .ql-redo i {
    font-size: 16px;
    line-height: 1;
}
.detail-header {
    border-bottom: 1px solid #ddd;
    padding-bottom: 15px;
    margin-bottom: 20px;
}
.detail-header h1 {
    font-size: 26px;
    color: #2c3e50;
    margin-bottom: 10px;
}
.detail-meta {
    font-size: 14px;
    color: #777;
}
.detail-meta span:not(:last-child)::after {
    content: " | ";
    color: #ccc;
}
.detail-content {
    min-height: 200px;
    padding: 20px 0;
    line-height: 1.6;
    font-size: 16px;
    color: #333;
    border-bottom: 1px solid #eee;
}
/* 액션 버튼 그룹 */
.post-actions {
    display: flex;
    justify-content: space-between; /* ⭐⭐ 목록 버튼을 왼쪽 끝, 수정/삭제 버튼을 오른쪽 끝에 배치 ⭐⭐ */
    align-items: center;
    margin-top: 15px;
}
.detail-controls button, .detail-controls a {
    padding: 8px 15px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    text-decoration: none;
    margin-left: 5px;
    border: 1px solid #ddd;
}
/* 수정/삭제 버튼 스타일 */
.btn-edit { background-color: #4a90e2; color: white; border: none; }
.btn-delete { background-color: #e74c3c; color: white; border: none; }
/* ⭐⭐ 댓글 섹션 상단 마진 조정 ⭐⭐ */
.comments-section {
    margin-top: 35px; /* 여백 확보 */
}
.comment-item {
    border-bottom: 1px dotted #ddd;
    padding: 15px 0;
    font-size: 15px;
    position: relative; /* 답글 버튼 위치 지정용 */
}
/* 댓글 헤더 및 액션 버튼 그룹 */
.comment-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 5px;
}
.comment-meta {
    display: flex;
    font-size: 13px;
    color: #999;
    gap: 15px;
}
.comment-writer {
    font-weight: 700;
    color: #6c5ce7;
    margin-right: 10px;
}
.comment-date {
    font-size: 13px;
    color: #999;
}
.comment-content {
    color: #333;
    line-height: 1.5;
    margin-left: 0;
}
/* ⭐⭐ 댓글 액션 버튼 그룹 스타일 ⭐⭐ */
.comment-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}
.comment-actions button {
    background: none;
    border: none;
    color: #999;
    font-size: 12px;
    cursor: pointer;
    padding: 0;
    transition: color 0.2s;
    font-weight: 500;
}
.comment-actions button:hover {
    color: #4a90e2;
}
.comment-actions .delete {
    color: #e74c3c;
}
.comment-actions .reply {
    color: #2ecc71;
    font-weight: 600;
}
/* ⭐⭐ 대댓글 시각적 구분 ⭐⭐ */
.comment-item.reply {
    margin-left: 30px; /* 들여쓰기 */
    border-left: 3px solid #f0f0f0; /* 시각적 구분선 */
    padding-left: 10px;
    margin-bottom: 5px;
}
/* ⭐⭐ 대댓글 폼 스타일 ⭐⭐ */
.reply-form-container {
    margin-top: 10px;
    padding: 15px;
    background: #fcfcfc;
    border: 1px solid #eee;
    border-radius: 8px;
    margin-left: 20px;
}
.reply-form-container textarea {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    resize: vertical;
    margin-bottom: 8px;
    font-size: 14px;
}
.reply-form-container button {
    float: right;
    padding: 8px 15px;
    font-size: 14px;
    margin-left: 10px;
    background-color: #6c5ce7;
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
}
.reply-form-container .btn-reply-cancel {
    background-color: #aaa;
    color: white;
    border: none;
}
.reply-form-container::after {
    content: "";
    display: table;
    clear: both;
}
/* ⭐⭐ 댓글 섹션 스타일 끝 ⭐⭐ */
.comment-form textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 8px;
    resize: vertical;
    margin-bottom: 10px;
}
.comment-form button {
    float: right;
    padding: 10px 18px;
    background-color: #6c5ce7;
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 5px;
}
.comment-form::after {
    content: "";
    display: table;
    clear: both;
}
.community-board-container {
    max-width: 1400px; /* 또는 필요에 따라 90% */
    width: 90%;        /* 반응형으로도 대응 가능 */
    margin: 0 auto;
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}
.board-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
}
.board-tabs {
    display: flex;
    flex-grow: 1;
}
.board-tabs button {
    background: none;
    border: none;
    padding: 10px 15px;
    font-size: 16px;
    font-weight: 600;
    color: #777;
    border-bottom: 2px solid transparent;
    cursor: pointer;
    transition: color 0.2s, border-bottom 0.2s;
    margin-right: 5px;
}
.board-tabs button.active {
    color: #6c5ce7;
    font-weight: 700;
    border-bottom-color: #6c5ce7;
}
/* 필요하면 :hover 때 살짝 색만 변경 */
.board-tabs button:hover {
    color: #6c5ce7;
}
.write-button {
    padding: 8px 15px;
    background-color: #6c5ce7;
    color: white;
    font-weight: 600;
    border-radius: 8px;
    text-decoration: none;
    transition: background-color 0.3s;
    white-space: nowrap;
}
.write-button:hover {
    background-color: #8e44ad;
}
.search-area {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    justify-content: flex-end;
}
.search-area select, .search-area input[type="text"] {
    padding: 8px 10px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
}
.search-area button {
    padding: 8px 15px;
    background-color: #2c3e50;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
}
/* 게시글 목록 테이블 */
.post-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: auto;
}
.post-table th, .post-table td {
    padding: 12px 10px;
    text-align: center;
    border-bottom: 1px solid #eee;
    font-size: 14px;
}
.post-table th {
    background-color: #f8f8f8;
    font-weight: 700;
    color: #555;
}
.post-table td {
    color: #333;
}
.post-table .col-title {
    text-align: left;
    font-weight: 600;
    cursor: pointer;
    transition: color 0.2s;
}
.post-table .col-title:hover {
    color: #6c5ce7;
}
.col-category {
    color: #6c5ce7;
}
/* 페이지네이션 */
.pagination {
    text-align: center;
    margin-top: 30px;
}
.pagination a {
    padding: 5px 10px;
    margin: 0 3px;
    border: 1px solid #ddd;
    border-radius: 5px;
    text-decoration: none;
    color: #555;
    cursor: pointer;
}
.pagination a.active {
    background-color: #6c5ce7;
    color: white;
    border-color: #6c5ce7;
}
.pagination a.disabled {
    cursor: not-allowed;
    opacity: 0.5;
}
.pagination-controls {
    text-align: center;
    margin-top: 20px;
    padding-top: 10px;
    border-top: 1px solid #eee;
}
.pagination-controls button {
    background: none;
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 5px 10px;
    margin: 0 5px;
    color: #555;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s;
}
.pagination-controls button:hover:not(:disabled) {
    background-color: #f0f0f0;
}
.pagination-controls button.active {
    background-color: #6c5ce7;
    color: white;
    border-color: #6c5ce7;
}
.pagination-controls button:disabled {
    cursor: not-allowed;
    opacity: 0.5;
}
.chat-main {
    padding-top: 70px;
    display: flex;
    min-height: 100vh;
    background-color: #f7f7f7;
    position: relative;
    overflow-x: hidden;
    transition: all 0.3s ease-in-out;
}
.chat-sidebar {
    width: 300px;
    background: white;
    border-right: 1px solid #ddd;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
}
.chat-content-area {
    flex-grow: 1;
    background: #fff;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: all 0.3s ease-in-out;
    min-width: 0;
}
.chat-header {
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 18px;
    font-weight: 700;
    color: #2c3e50;
}
.chat-type-tabs {
    display: flex;
    justify-content: space-around;
    padding: 10px 0 0 0;
    margin-bottom: 0;
    border-bottom: 1px solid #eee;
}
.chat-type-tabs button {
    flex-grow: 1;
    padding: 10px 5px;
    margin: 0;
    background: none !important;
    border: none !important;
    border-radius: 0 !important;
    font-size: 14px;
    font-weight: 600;
    color: #999;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: all 0.2s;
    outline: none;
}
.chat-type-tabs button.active {
    color: #6c5ce7;
    border-bottom-color: #6c5ce7;
}
.chat-type-tabs button:hover:not(.active) {
    color: #2c3e50;
    background-color: transparent;
}
.room-list-container {
    flex-grow: 1;
    overflow-y: auto;
}
.room-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 10px 15px 20px;
    border-bottom: 1px solid #f7f7f7;
    cursor: pointer;
    transition: background-color 0.2s;
}
.room-item:hover, .room-item.active {
    background-color: #f0f0f0;
}
.room-info {
    flex-grow: 1;
    min-width: 0;
    padding-right: 10px;
}
.room-name {
    font-weight: 600;
    color: #2c3e50;
}
.last-message {
    font-size: 13px;
    color: #888;
    margin-top: 4px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}
.delete-room-btn {
    background: none;
    border: none;
    color: #e74c3c;
    font-size: 15px;
    cursor: pointer;
    flex-shrink: 0;
    opacity: 0.7;
    padding: 5px;
}
.delete-room-btn:hover {
    opacity: 1;
}
.chat-messages {
    flex-grow: 1;
    overflow-y: auto;
    padding: 20px;
    background-color: #eaf6ff;
}
.chat-input-area {
    border-top: 1px solid #ddd;
    padding: 10px 20px;
    display: flex;
    align-items: center;
    background: white;
}
.chat-input-area input {
    flex-grow: 1;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 20px;
    margin-right: 10px;
    font-size: 15px;
}
.chat-input-area button {
    background-color: #6c5ce7;
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 20px;
    cursor: pointer;
    transition: background-color 0.3s;
}
.chat-input-area button:hover {
    background-color: #8e44ad;
}
.message-bubble {
    margin-bottom: 15px;
    display: flex;
    align-items: flex-start;
    max-width: 250px;
    padding: 9px 12px;
    border-radius: 18px;
    line-height: 1.4;
    font-size: 14px;
    word-break: break-word;
}
.message-bubble.mine {
    background: #d2e4fc;
    color: #111;
    justify-content: flex-end;
}
.message-bubble.mine .message-content {
    background-color: #ffe500;
    color: #191919;
    border-radius: 15px 15px 0 15px;
}
.message-bubble.other {
    justify-content: flex-start;
    background: #ffffff;
    border: 1px solid #ddd;
    color: #222;
}
.message-bubble.other .message-content {
    background-color: white;
    color: #333;
    border-radius: 15px 15px 15px 0;
    border: 1px solid #ddd;
}
.message-text {
    padding: 10px 15px;
    max-width: 70%;
    word-wrap: break-word;
    font-size: 15px;
}
.message-meta {
    font-size: 11px;
    color: #888;
    align-self: flex-end;
    margin: 0 5px;
}
#chat-welcome-message {
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 20px;
    color: #999;
    height: 100%;
    text-align: center;
}
#current-chat-room {
    display: none;
    flex-direction: column;
    position: relative;
    height: 100%;
    overflow: hidden;
}
#connection-status {
    position: absolute;
    top: 70px;
    left: 0;
    width: 100%;
    background-color: #f0f0f0;
    color: #e74c3c;
    padding: 8px;
    text-align: center;
    font-size: 14px;
    font-weight: 600;
    z-index: 990;
    display: none;
}
#participant-sidebar {
    position: fixed;
    top: 70px;
    right: 0;
    width: 280px;
    height: calc(100vh - 70px);
    background: white;
    box-shadow: -4px 0 10px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out;
    display: flex;
    flex-direction: column;
    border-left: 1px solid #ddd;
}
#participant-sidebar.open {
    transform: translateX(0);
}
.sidebar-header {
    padding: 15px 20px;
    font-size: 18px;
    font-weight: 700;
    color: #2c3e50;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.sidebar-close-btn {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: #555;
}
.participant-section {
    margin-top: 10px;
}
.host-participant-list {
    margin: 0;
    padding: 0 0 8px 0;
    border-bottom: 1px dashed #eee;
}
.participant-scroll {
    max-height: 320px;
    overflow-y: auto;
    padding-top: 8px;
}
.participant-list {
    list-style: none;
    padding: 0;
}
.participant-list li {
    padding: 8px 0;
    color: #555;
    font-size: 15px;
    border-bottom: 1px dashed #eee;
}
.participant-list li:last-child {
    border-bottom: none;
}
.participant-list .user-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    gap: 8px;
}
.participant-list .user-main {
    display: flex;
    align-items: center;
    gap: 6px;
}
.participant-list .user-main input[type="checkbox"] {
    cursor: pointer;
}
.participant-list .user-info .role-badge {
    font-size: 12px;
    background: #e74c3c;
    color: white;
    padding: 2px 5px;
    border-radius: 5px;
    font-weight: 400;
}
.participant-list .detail-info {
    font-size: 12px;
    color: #999;
    margin-top: 3px;
}
.participant-list-container {
    flex-grow: 1;
    padding: 10px 0;
}
.participant-item {
    display: flex;
    align-items: center;
    padding: 10px 20px;
    border-bottom: 1px solid #f7f7f7;
    cursor: pointer;
}
.participant-item:hover {
    background-color: #fcfcfc;
}
.participant-icon-wrapper {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background-color: #f0f0f0;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-right: 10px;
    flex-shrink: 0;
}
.participant-icon-wrapper i {
    font-size: 16px;
    color: #6c5ce7;
    margin: 0;
}
.participant-details {
    display: flex;
    flex-direction: column;
    line-height: 1.3;
}
.participant-name {
    font-size: 15px;
    color: #333;
    font-weight: 500;
}
.participant-role-badge {
    font-size: 11px;
    font-weight: 700;
    padding: 2px 5px;
    border-radius: 5px;
    margin-left: 5px;
    color: white;
    white-space: nowrap;
}
.role-admin { background-color: #6c5ce7; }
.role-host { background-color: #e74c3c; }
.role-me { background-color: #3498db; }
@media (max-width: 900px) {
    .chat-main.sidebar-open {
        width: 100%;
        margin-right: 0;
    }
    #participant-sidebar {
        width: 100%;
        height: calc(100vh - 70px);
    }
}
.invite-friend-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #f7f7f7;
    cursor: pointer;
}
.invite-friend-item:hover {
    background-color: #fafafa;
}
.invite-friend-item.selected {
    background-color: #e6e6ff;
}
.invite-friend-item span {
    font-size: 15px;
    color: #333;
}
.friend-status {
    font-size: 12px;
    color: #28a745;
    margin-left: 10px;
}
.friend-status.offline {
    color: #999;
}
.friend-checkbox {
    transform: scale(1.2);
    accent-color: #6c5ce7;
}
#invite-modal .modal-content button {
    padding: 5px 15px;
    border-radius: 5px;
    font-weight: 600;
}
#final-invite-btn:disabled {
    background-color: #aaa;
    cursor: not-allowed;
}
.inline-profile-detail {
    position: fixed;
    top: 100px;
    right: 280px;
    width: 200px;
    height: auto;
    background: white;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    padding: 15px;
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out;
    display: none;
    flex-direction: column;
    z-index: 9999;
    border: 1px solid #ddd;
}
.inline-profile-detail.open {
    transform: translateX(0%);
    display: flex;
}
.inline-profile-detail .close-profile-btn {
    position: absolute;
    top: 5px;
    right: 10px;
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: #555;
}
.profile-detail-img {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 8px;
    border: 2px solid #6c5ce7;
}
.profile-info-content h3 {
    font-size: 16px;
    color: #2c3e50;
    margin-bottom: 8px;
}
.profile-meta-info p {
    font-size: 12px;
    color: #555;
    margin-bottom: 4px;
}
.profile-meta-info strong {
    font-size: 13px;
}
.chat-one-on-one-btn, .send-friend-request-btn {
    padding: 8px 10px;
    margin-top: 8px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    transition: background-color 0.2s;
    font-size: 13px;
}
.chat-content-area.profile-open {
    padding-left: 0;
}
.room-title-wrapper {
    display: flex;
    align-items: center;
}
.room-status-info {
    font-size: 13px;
    font-weight: 500;
    color: #6c5ce7;
    margin-left: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.room-status-info .fa-lock { color: #e74c3c; }
.room-status-info .fa-users { color: #6c5ce7; }
.room-item-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}
.invite-action-btn {
    padding: 15px 25px !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    transition: background-color 0.3s, transform 0.2s;
}
.invite-action-btn:hover {
    background-color: #27ae60 !important;
}
#upcoming-schedule-section,
#review-notification-section {
    position: relative;
    z-index: 10;
    padding-right: 40px;
}
.login-prompt-button {
    z-index: 50;
    display: inline-block;
    margin: 10px 5px 0 5px;
    padding: 10px 20px;
    font-size: 16px;
    font-weight: 600;
    color: white;
    background: #6c5ce7;
    border-radius: 25px;
    text-decoration: none;
    transition: background 0.3s;
}
.login-prompt-button:hover {
    background: #2980b9;
}
.fade-in-up {
    opacity: 0;
    transform: translateY(25px);
    animation: fadeUp 0.8s ease-out forwards;
}
@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.hero-message {
    font-size: 60px;
    font-weight: 900;
    margin-bottom: 10px;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.7);
    color: white;
}
.hero-sub-message {
    font-size: 28px;
    font-weight: 500;
    text-shadow: 0 0 7px rgba(0, 0, 0, 0.6);
    color: white;
}
#no-schedule-view {
    padding: 40px;
    background: rgba(44, 62, 80, 0.7);
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    color: white;
    font-size: 20px;
    text-shadow: 0 0 3px rgba(0, 0, 0, 0.5);
}
@media (max-width: 768px) {
    .value-grid, .features-grid {
        grid-template-columns: 1fr;
    }
}
.chat-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10001;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}
.chat-modal-overlay.open {
    opacity: 1;
    pointer-events: auto;
}
.chat-modal-content {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    max-width: 400px;
    width: 90%;
    transform: translateY(-20px);
    transition: transform 0.3s;
    position: relative;
}
.chat-modal-overlay.open .chat-modal-content {
    transform: translateY(0);
}
.chat-modal-content h2 {
    font-size: 24px;
    color: #2c3e50;
    margin-bottom: 20px;
    border-bottom: 2px solid #6c5ce7;
    padding-bottom: 10px;
}
.chat-modal-content p {
    font-size: 15px;
    color: #555;
    margin-bottom: 10px;
}
.chat-modal-content strong {
    color: #6c5ce7;
    margin-left: 5px;
}
.chat-modal-actions,
.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 20px;
}
.chat-modal-actions button,
.modal-actions button {
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
}
/* 새 채팅 모달 내부 인풋/셀렉트 */
#new-chat-modal .chat-modal-content input,
#new-chat-modal .chat-modal-content select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    margin-bottom: 15px;
    box-sizing: border-box;
    font-size: 15px;
}
.login-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 10000;
}
.login-modal-content {
    background: white;
    padding: 30px 40px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
    max-width: 350px;
}
.login-modal-content h2 {
    font-size: 24px;
    color: #2c3e50;
    margin-bottom: 15px;
}
.login-modal-content p {
    font-size: 16px;
    color: #555;
    margin-bottom: 25px;
    line-height: 1.5;
}
.login-modal-content .login-button {
    width: 100%;
    margin-top: 10px;
}
.address-group button { padding: 12px 15px; font-size: 14px; font-weight: 600; color: #fff; background: #95a5a6; border: none; border-radius: 10px; cursor: pointer; transition: background 0.3s; white-space: nowrap; min-width: 80px; }
.address-group button:hover { background: #7f8c8d; }

.agree-btn { padding: 12px 24px; font-size: 16px; font-weight: 600; border: none; border-radius: 8px; background: #6c5ce7; color: #fff; cursor: pointer; }
.agree-btn:hover { background: #574bdb; }
.terms-link { color: #3498db; text-decoration: underline; cursor: pointer; }
.info-view-group { margin-bottom: 20px; }
.info-view-group label { display: block; font-weight: 700; margin-bottom: 6px; color: #2c3e50; font-size: 14px; }
.info-view-text { width: 100%; padding: 12px 15px; border: 1px solid #ddd; border-radius: 10px; font-size: 16px; background: #f7f7f7; color: #333; min-height: 47px; box-sizing: border-box; display: flex; align-items: center; }
.info-view-profile-pic { width: 120px; height: 120px; border-radius: 50%; object-fit: cover; border: 3px solid #eee; margin-bottom: 15px; }
/* --- 친구 관리 탭 스타일 --- */
.tab-buttons.sub-tabs { display: flex; margin-bottom: 20px; border-bottom: 1px solid #eee; }
.tab-buttons.sub-tabs .sub-tab-btn { flex-grow: 1; padding: 10px 15px; background-color: #f0f0f0; border: 1px solid #ddd; border-bottom: none; border-radius: 8px 8px 0 0; cursor: pointer; font-size: 15px; color: #555; transition: all 0.2s ease; margin-right: 5px; text-align: center; }
.tab-buttons.sub-tabs .sub-tab-btn.active { background-color: #6c5ce7; color: white; border-color: #6c5ce7; position: relative; top: 1px; z-index: 1; }
.sub-tab-content { display: none; padding: 20px 0; border-top: 1px solid #eee; }
.sub-tab-content.active { display: block; }
.friend-list-search-group { display: flex; gap: 10px; margin-bottom: 20px; }
.friend-list-search-group input { flex-grow: 1; padding: 10px; border: 1px solid #ddd; border-radius: 5px; }
.friend-list-search-group button { padding: 10px 15px; background-color: #6c5ce7; color: white; border: none; border-radius: 5px; cursor: pointer; }
.friend-item-list { list-style: none; padding: 0; margin: 0; }
.friend-item-list li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px;
    border: 1px solid #eee;
    border-radius: 8px;
    margin-bottom: 10px;
    background-color: #fdfdfd;
    box-shadow: 0 1px 2px rgba(0,0,0,0.03);
    font-size: 16px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: background-color 0.2s ease;
}
.friend-item-list li:hover { background-color: #f0f0f0; }
.friend-item-list li.active {
    background-color: #e6e6ff;
    border-color: #6c5ce7;
}
.friend-item-list li strong {
    flex-grow: 1;
    color: #333;
    margin-right: 150px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.friend-item-list li.active .action-buttons { display: flex; }
.friend-request-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px;
    border: 1px solid #eee;
    border-radius: 8px;
    margin-bottom: 10px;
    background-color: #fdfdfd;
    box-shadow: 0 1px 2px rgba(0,0,0,0.03);
    font-size: 16px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: background-color 0.2s ease;
    list-style: none;
}
.friend-request-item:hover { background-color: #f0f0f0; }
.friend-request-item.active {
    background-color: #e6e6ff;
    border-color: #6c5ce7;
}
.friend-request-item.active .request-actions { display: flex; }
.friend-add-search-group { display: flex; gap: 10px; margin-bottom: 20px; }
.friend-add-search-group input { flex-grow: 1; padding: 10px; border: 1px solid #ddd; border-radius: 5px; }
.friend-add-search-group button { padding: 10px 15px; background-color: #6c5ce7; color: white; border: none; border-radius: 5px; cursor: pointer; }
.action-buttons {
    display: none;
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    gap: 8px;
    background-color: inherit;
    padding-left: 10px;
    z-index: 10;
}
.action-buttons button {
    padding: 8px 12px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    white-space: nowrap;
    transition: background-color 0.2s ease;
}
.action-buttons .btn-chat { background-color: #4a90e2; color: white; }
.action-buttons .btn-delete { background-color: #ff7675; color: white; }
.request-actions {
    display: none;
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    gap: 8px;
    z-index: 10;
}
.request-actions button {
    padding: 8px 12px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    color: white;
    white-space: nowrap;
}
.score-display {
    display: flex;
    justify-content: space-around;
    margin-bottom: 30px;
    padding: 15px;
    background: rgba(230, 230, 255, 0.9);
    border-radius: 10px;
    overflow: hidden;
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
}
.score-item {
    text-align: center;
    font-size: 14px;
    color: #2c3e50;
    width: 50%;
    padding: 10px 10px;
    position: relative;
}
.score-item:first-child {
    background-color: rgba(108, 92, 231, 0.05);
    border-right: 1px solid #c0c0e0;
    border-radius: 8px 0 0 8px;
}
.score-item:last-child {
    background-color: rgba(46, 204, 113, 0.05);
    border-radius: 0 8px 8px 0;
    border-right: none;
}
.score-item .icon-box {
    font-size: 30px;
    color: #6c5ce7;
    margin-bottom: 5px;
    display: block;
}
.score-item strong {
    display: block;
    font-size: 24px;
    font-weight: 800;
    color: #2c3e50;
    margin-top: 5px;
}
/* === 친구 추가 모달 === */
.friend-add-modal-overlay {
    position: fixed;
    inset: 0;
    background-color: rgba(0,0,0,0.45);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}
.friend-add-modal-overlay.show { display: flex; }
.friend-add-modal {
    width: 100%;
    max-width: 600px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.25);
    padding: 24px 24px 20px;
    position: relative;
}
.friend-add-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}
.friend-add-modal-header h2 {
    margin: 0;
    font-size: 22px;
    font-weight: 700;
    color: #2c3e50;
}
.friend-add-modal-close {
    border: none;
    background: none;
    font-size: 24px;
    cursor: pointer;
    color: #999;
}
.friend-add-modal-close:hover { color: #666; }
.friend-add-modal .friend-add-search-group {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}
.friend-add-modal .search-input-wrapper {
    position: relative;
    flex-grow: 1;
}
.friend-add-modal .search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    font-size: 14px;
}
.friend-add-modal input[type="text"] {
    width: 100%;
    padding: 10px 12px 10px 34px;
    border-radius: 8px;
    border: 1px solid #ddd;
    font-size: 15px;
    box-sizing: border-box;
}
.friend-add-modal input[type="text"]:focus {
    border-color: #6c5ce7;
    outline: none;
}
.friend-add-modal button { cursor: pointer; }
.friend-add-modal .friend-add-search-group button {
    padding: 10px 20px;
    border-radius: 8px;
    border: none;
    background-color: #6c5ce7;
    color: #fff;
    font-size: 15px;
}
.friend-add-modal .friend-add-search-group button:hover {
    background-color: #5a4acb;
}
.friend-add-search-results {
    border: 1px solid #eee;
    border-radius: 8px;
    max-height: 320px;
    overflow-y: auto;
    background: #fff;
    padding: 0;
}
.friend-add-result-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    border-bottom: 1px solid #f3f3f3;
    cursor: pointer;
    position: relative;
    transition: background-color 0.2s;
}
.friend-add-result-item:last-child { border-bottom: none; }
.friend-add-result-item:hover { background-color: #f9f9ff; }
.friend-add-result-item.active { background-color: #e6e6ff; }
.friend-add-result-user {
    display: flex;
    align-items: center;
    gap: 10px;
}
.friend-add-result-user i {
    font-size: 20px;
    color: #6c5ce7;
}
.friend-add-result-user span {
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.friend-add-result-actions {
    position: absolute;
    right: 14px;
    display: none;
}
.friend-add-result-item.active .friend-add-result-actions {
    display: block;
}
.friend-add-result-actions button {
    padding: 7px 14px;
    border-radius: 6px;
    border: none;
    background-color: #2ecc71;
    color: #fff;
    font-size: 13px;
    cursor: pointer;
}
.friend-add-result-actions button[disabled] {
    background-color: #ccc;
    cursor: default;
}
.friend-add-no-results {
    padding: 20px;
    text-align: center;
    color: #777;
    font-size: 14px;
}
.friend-add-actions .btn-add-selected {
    padding: 10px 20px;
    background-color: #2ecc71;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
}
.fixed-schedule-list li {
    padding: 8px 10px;
    margin-bottom: 8px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: opacity 0.2s;
}
.fixed-schedule-list li:hover { opacity: 0.9; }
.fixed-schedule-list li.active {
    box-shadow: 0 0 5px rgba(0,0,0,0.2);
    border: 1px solid #fff;
}
.fixed-schedule-list li.match-schedule { background-color: rgba(148, 97, 231, 0.85); color: white; }
.fixed-schedule-list li.personal-schedule { background-color: rgba(74, 144, 226, 0.85); color: white; }
#fixed-schedule-detail {
    width: 300px;
    flex-shrink: 0;
    position: relative !important;
    top: auto !important;
    left: auto !important;
    transform: none !important;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    background: transparent;
    border: 1px solid rgba(221, 221, 221, 0.5);
    border-radius: 10px;
    padding: 15px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}
.friends-management-title-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
    margin-bottom: 20px;
}
.friends-management-title-wrapper h3 {
    margin: 0;
    font-size: 24px;
    color: #2c3e50;
}
#close-detail-btn {
    position: absolute;
    top: 5px;
    right: 5px;
    background: none;
    border: none;
    font-size: 20px;
    color: #999;
    cursor: pointer;
    line-height: 1;
    z-index: 10;
    padding: 5px;
}
#save-schedule-btn, #delete-schedule-btn {
    background-color: rgba(204, 204, 204, 0.7);
    color: white;
    border: none;
}
#save-schedule-btn[data-mode="add"]:not([disabled]) {
    background-color: rgba(46, 204, 113, 0.85) !important;
}
#save-schedule-btn[data-mode="edit"]:not([disabled]) {
    background-color: rgba(74, 144, 226, 0.85) !important;
}
#delete-schedule-btn:not([disabled]) {
    background-color: rgba(231, 76, 60, 0.85) !important;
}
.main-menu {
    display: none;
    position: absolute;
    top: 60px;
    right: 0;
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    border-radius: 8px;
    overflow: hidden;
    z-index: 1000;
    min-width: 180px;
    padding: 10px 0;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}
.main-menu.show { display: block; }
.main-menu ul { list-style: none; padding: 0; margin: 0; }
.main-menu li a {
    display: block;
    padding: 12px 20px;
    color: #333;
    text-decoration: none;
    font-size: 15px;
    transition: background-color 0.2s ease, color 0.2s ease, border-left 0.2s ease, padding-left 0.2s ease;
    font-weight: 600 !important;
}
.main-menu li a:hover,
.main-menu li a.active {
    background-color: rgba(108, 92, 231, 0.1);
    color: #6c5ce7;
    border-left: 4px solid #6c5ce7;
    padding-left: 16px;
}
.main-menu li a i {
    margin-right: 10px;
    color: #999;
}
.main-menu li a:hover i,
.main-menu li a.active i {
    color: #6c5ce7;
}
#fixed-schedule-detail-edit-area {
    border: 1px solid rgba(221, 221, 221, 0.5);
    padding: 10px;
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.7);
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}
#selected-schedule-time,
#selected-schedule-name,
#selected-schedule-content {
    background-color: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(221, 221, 221, 0.7);
    color: #333;
}
.friends-add-icon-btn {
    background: none;
    border: none;
    color: #6c5ce7;
    font-size: 24px;
    cursor: pointer;
    padding: 5px;
    line-height: 1;
}
.mypage-user-menu {
    display: none;
    position: absolute;
    top: 60px;
    right: 10px;
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    border-radius: 8px;
    overflow: hidden;
    z-index: 1000;
    min-width: 200px;
    padding: 10px 0;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}
.mypage-user-menu.show { display: block; }
.mypage-user-menu .user-info {
    padding: 10px 20px;
    border-bottom: 1px solid #eee;
    margin-bottom: 10px;
    text-align: center;
}
.mypage-user-menu .user-info strong {
    display: block;
    font-size: 16px;
    color: #333;
    margin-bottom: 5px;
}
.mypage-user-menu .user-info p {
    font-size: 13px;
    color: #777;
    margin: 0;
}
.mypage-user-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.mypage-user-menu li a {
    display: block;
    padding: 12px 20px;
    color: #333;
    text-decoration: none;
    font-size: 15px;
    transition: background-color 0.2s ease, color 0.2s ease;
}
.mypage-user-menu li a:hover {
    background-color: #f0f0f0;
    color: #6c5ce7;
}
.mypage-user-menu li a i {
    margin-right: 10px;
    color: #999;
}
.mypage-user-menu li a:hover i {
    color: #6c5ce7;
}
.calendar-layout-wrapper {
    display: flex;
    gap: 20px;
    flex-wrap: nowrap;
}
#calendar-days-header {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 5px;
    margin-bottom: 10px;
}
.login-section#full-width-section {
    flex: 1 1 100%;
    max-width: 100%;
    padding-right: 30px !important;
}
.login-container {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}
#tab-calendar {
    background: transparent;
    box-shadow: none;
}
.mypage-page .calendar-day-cell {
    height: 100px;
    border: 1px solid #eee;
    border-radius: 5px;
    padding: 8px;
    font-size: 14px;
    font-weight: 600;
    background-color: rgba(255, 255, 255, 0.85);
    transition: background-color 0.3s;
    cursor: pointer;
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
}
.mypage-page .calendar-day-cell.today {
    border: 2px solid #ff7675;
    border-radius: 8px;
    background-color: rgba(255, 234, 234, 0.9);
    font-weight: bold;
}
.mypage-page .calendar-day-cell {
    min-height: 95px;
    max-height: 120px;
    overflow: hidden;
    padding: 6px;
    border-radius: 8px;
    border: 1px solid #eee;
    background: rgba(255, 255, 255, 0.85);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    transition: background 0.2s;
}
.mypage-page .calendar-day-cell:hover {
    background-color: rgba(108, 92, 231, 0.05);
}
.mypage-page .calendar-event.match-schedule {
    background-color: rgba(144, 77, 240, 0.9);
    border-left: 3px solid #9461e7;
    color: white;
    padding: 2px 4px;
    margin-top: 2px;
    font-size: 12px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    border-radius: 3px;
    cursor: pointer;
}
.mypage-page .calendar-event.personal-schedule {
    background-color: rgba(74, 144, 226, 0.9);
    border-left: 3px solid #4a90e2;
    color: white;
    padding: 2px 4px;
    margin-top: 2px;
    font-size: 12px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    border-radius: 3px;
    cursor: pointer;
}
.mypage-page .calendar-event {
    width: 100%;
    font-size: 11px;
    font-weight: 600;
    border-radius: 5px;
    margin-top: 3px;
    padding: 3px 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.2;
}
.mypage-page .calendar-event.more-events {
    border: 1px dashed #6c5ce7;
    background-color: rgba(255, 255, 255, 0.85);
    color: #6c5ce7;
    font-size: 10px;
    text-align: center;
    padding: 2px;
    border-radius: 5px;
    margin-top: 3px;
    cursor: pointer;
}
.mypage-page .calendar-event.more-events:hover {
    background-color: rgba(108, 92, 231, 0.08);
}
.mypage-page .calendar-container {
    flex-grow: 1;
    max-width: none;
    box-shadow: 0 0 10px rgba(0,0,0,0.05);
    background: rgba(255, 255, 255, 0.85);
    border-radius: 10px;
    padding: 20px;
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
}
.mypage-page .calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 5px;
}
.mypage-page .calendar-header-cell {
    text-align: center;
    font-weight: bold;
    padding: 10px 0;
    color: #555;
    background-color: rgba(248, 248, 248, 0.9);
    border-radius: 5px;
}
.mypage-page .calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    background-color: rgba(248, 248, 248, 0.8);
    padding: 10px 15px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.03);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
}
.mypage-page .main-wrapper {
    width: 1000px;
    max-width: 95%;
}
.mypage-page .tab-content {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}
.mypage-page .tab-buttons .tab-btn.active {
    color: #6c5ce7;
    border-bottom-color: #6c5ce7;
    margin-bottom: -2px;
}
.field-search-page .filter-section input[type="date"] {
    width: 150px;
    text-align: center;
}
.match-search-page .filter-section input[type="date"] {
    flex-grow: 1;
    min-width: 200px;
}
.main-content {
    min-height: 100vh;
    background: transparent;
    padding: 0;
}
.close-review-btn:hover {
    opacity: 1;
    color: white;
}
/* 알림 배너 닫기 버튼(HTML inline 버전 유지) */
.close-review-btn {
    position: absolute;
    top: 5px;
    right: 5px;
    background: none;
    border: none;
    color: white;
    font-size: 16px;
    cursor: pointer;
    padding: 5px;
    opacity: 0.6;
    transition: opacity 0.2s;
    line-height: 1;
    z-index: 20;
}
.user-row {
    display: flex;
    justify-content: space-between; /* 🔥 왼쪽(닉네임) ↔ 오른쪽(버튼) */
    align-items: center;
    width: 100%;
}
.manage-btns {
    display: flex;
    gap: 6px; /* 버튼 사이 여백 */
}
.btn-sm {
    padding: 5px 8px;
    font-size: 12px;
    border-radius: 4px;
    cursor: pointer;
}
.btn-approve {
    background-color: #2ecc71;
    color: white;
    border: none;
}
.btn-reject {
    background-color: #e74c3c;
    color: white;
    border: none;
}
.btn-cancel,
.btn-join {
    background-color: #6c5ce7 !important;
    color: #ffffff !important;
    border: none;
    border-radius: 8px; /* ← 둥근 테두리 */
    padding: 12px 18px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    text-align: center;
}
/* 선택: 마우스 올릴 때 */
.btn-cancel:hover,
.btn-join:hover{
    background-color: #5847c2;
}
.btn-close,.btn-disabled{
    background-color: #e74c3c !important;
    color: #ffffff !important;
    border: none;
    border-radius: 8px; /* ← 둥근 테두리 */
    padding: 12px 18px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    text-align: center;
}
.btn-close:hover,.btn-disabled:hover{
    background-color: #a10000;
}
/* ===========================
   schedule.html 에서 분리한 CSS
   (디자인 유지용 / schedule 전용)
=========================== */
/* schedule 페이지 메인 레이아웃 */
.schedule-search-main {
    padding: 100px 40px 40px 40px;
    background-color: #f7f7f7;
    min-height: 100vh;
}
/* schedule 페이지에서 날짜 input이 넓게 늘어나도록 유지 */
.schedule-search-main .filter-section input[type="date"] {
    flex-grow: 1;
    min-width: 200px;
}
/* 1) HTML 인라인 스타일 제거용 ------------------- */
#nav-login-btn{
    margin-right: 10px;
    font-weight: 700;
    color: #333;
    display: block;
}
/* 기존 .menu-toggle-btn을 보완 (HTML inline 제거용) */
#menu-toggle.menu-toggle-btn{
    background: none;
    border: none;
    font-size: 20px;
}
/* 탭 섹션 제목 공통 */
.tab-section-title{
    font-size: 24px;
    color: #333;
    margin-bottom: 15px;
}
.modal-overlay,
.stadium-modal-overlay{
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 999;
}
.modal-overlay.show,
.stadium-modal-overlay.show{
    display: flex;
}
.stadium-modal-content input[type="text"]:focus,
.stadium-modal-content input[type="date"]:focus,
.stadium-modal-content select:focus {
    border-color: #6c5ce7;
    outline: none;
    box-shadow: 0 0 0 3px rgba(108, 92, 231, 0.2);
}
.stadium-modal-content input[type="text"][readonly] {
    background-color: #e9ecef;
    color: #495057;
    font-weight: 600;
    border: 1px solid #ced4da;
}
.modal-content,
.stadium-modal-content{
    position: relative;
    background: #fff;
    border-radius: 15px;
    padding: 25px 25px 20px;
    width: 90%;
    max-width: 600px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.25);
}
/* 모달 내부 타이틀/라벨/인풋 톤 */
.modal-content h2,
.stadium-modal-content h2{
    font-size: 24px;
    margin-bottom: 15px;
    font-weight: 800;
    color: #2c3e50;
}
.modal-content label,
.stadium-modal-content label{
    display: block;
    font-size: 15px;
    font-weight: 700;
    color: #34495e;
    margin-top: 10px;
    margin-bottom: 6px;
}
.modal-content input[type="text"],
.modal-content input[type="date"],
.modal-content select,
.modal-content textarea,
.stadium-modal-content input[type="text"],
.stadium-modal-content input[type="date"],
.stadium-modal-content select{
    width: 100%;
    padding: 10px 12px;
    font-size: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-sizing: border-box;
    background-color: #f9f9f9;
    color: #333;
}
.modal-content input[readonly],
.stadium-modal-content input[readonly]{
    background-color: #e9ecef;
    color: #495057;
    font-weight: 600;
    border: 1px solid #ced4da;
}
/* 시간 선택 줄 */
.modal-content .time-select-group,
.stadium-modal-content .time-select-group{
    display: flex;
    gap: 10px;
    align-items: center;
}
.modal-content .time-select-group select,
.stadium-modal-content .time-select-group select{
    flex-grow: 1;
    min-width: 120px;
}
.modal-content .time-select-group span,
.stadium-modal-content .time-select-group span{
    font-size: 18px;
    color: #555;
    font-weight: 600;
}
/* 경기 생성 모달(#match-create-modal) 안 버튼 영역 */
#match-create-modal .modal-actions {
    display: flex;
    gap: 10px;
}
#match-create-modal .modal-actions .btn-create:hover {
    background: #5648d6 !important;
}
#match-create-modal .modal-actions .btn-cancel:hover {
    background: #111 !important;
}
#match-create-modal .modal-actions .btn-cancel,
#match-create-modal .modal-actions .btn-create{
    flex: 1;
    width: auto !important;
    padding: 12px 0;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 700;
    border: none;
    cursor: pointer;
}
#match-create-modal .modal-actions .btn-create{
    background: #6c5ce7 !important;
    color: #fff !important;
}
#match-create-modal .modal-actions .btn-cancel{
    background: #333 !important;
    color: #fff !important;
}
/* 4) stadium 상세 페이지 레이아웃 보정 ------------------- */
/* stadium-main 내부 container 너비/여백 안정화 */
.stadium-main .search-container{
    max-width: 1200px;
    margin: 0 auto;
}
#match-list p{
    font-size: 13px;
    color: #777;
    padding: 10px 0;
}
.stadium-main {
    padding: 100px 40px 40px 40px;
    background-color: #f7f7f7;
    min-height: 100vh;
}
.stadium-container {
    max-width: 1200px;
    margin: 0 auto;
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 30px;
}
.stadium-title {
    grid-column: 1 / -1;
    font-size: 32px;
    font-weight: 800;
    color: #333;
    margin-bottom: 5px;
    border-bottom: 3px solid #6c5ce7;
    padding-bottom: 10px;
}
.detail-left-column {
    grid-column: 1 / 2;
    display: flex;
    flex-direction: column;
}
.stadium-map-area {
    width: 100%;
    height: 350px;
    background-color: #eee;
    border-radius: 10px;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #888;
}
.review-right-column {
    grid-column: 2 / 3;
    grid-row: 2 / span 2;
    background: #fcfcfc;
    border-radius: 10px;
    padding: 15px;
    border: 1px solid #ddd;
    max-height: 685px;
    overflow-y: auto;
}
.info-card {
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 20px;
}
.info-card h2{
    margin-bottom: 20px;
}
.info-item {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    font-size: 16px;
}
.info-item i {
    width: 25px;
    color: #6c5ce7;
    margin-right: 10px;
}
/* 하단 버튼 */
.action-button-group {
    text-align: center;
    grid-column: 1 / 2;
    display: flex;
    justify-content: center;
    gap: 15px;
}
.action-button-group a,
.action-button-group button {
    display: inline-block;
    padding: 14px 28px;
    font-weight: 700;
    border-radius: 30px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    font-size: 16px;
    border: none;
    cursor: pointer;
}
.btn-schedule {
    background-color: #333;
    color: white;
    border: 2px solid #1a1a1a;
}
.btn-schedule:hover {
    background-color: #1a1a1a;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}
.btn-create-match {
    background-color: #e74c3c;
    color: white;
    border: 2px solid #c0392b;
}
.btn-create-match:hover {
    background-color: #c0392b;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(231, 76, 60, 0.3);
}
/* 탭 */
.tab-header {
    display: flex;
    border-bottom: 2px solid #eee;
    margin-bottom: 15px;
}
.tab-button {
    flex: 1;
    text-align: center;
    padding: 10px 0;
    cursor: pointer;
    font-weight: 700;
    font-size: 15px;
    border: none;
    background: none;
    outline: none;
    transition: all 0.2s ease;
}
.tab-button.active {
    color: #6c5ce7;
    border-bottom: 3px solid #6c5ce7;
}
.tab-content {
    display: none;
}
.tab-content.active {
    display: block;
}
/* 경기 필터/리스트 */
.match-filter {
    margin-bottom: 10px;
    font-size: 14px;
}
.match-filter label {
    font-weight: 600;
    margin-right: 8px;
}
.match-filter input[type="date"] {
    padding: 6px 8px;
    font-size: 14px;
    border-radius: 6px;
    border: 1px solid #ddd;
    background-color: #fff;
}
.match-list {
    margin-top: 10px;
    border-top: 1px solid #eee;
}
.match-item {
    padding: 10px 0;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}
.match-item:last-child {
    border-bottom: none;
}
.match-item-time {
    font-weight: 700;
    color: #333;
}
.match-item-meta {
    font-size: 13px;
    color: #777;
}
.match-item:hover .match-item-time {
    text-decoration: underline;
}
/* 모집 상태 */
.match-status { font-weight: 700; margin-left: 4px; }
.match-status.open { color: #27ae60; }
.match-status.closed { color: #e74c3c; }
/* 후기 */
.review-right-column{
    overflow-y: auto;
}
.review-right-column {
    grid-column: 2 / 3;
    grid-row: 2 / span 2;
    background: #fcfcfc;
    border-radius: 10px;
    padding: 15px;
    border: 1px solid #ddd;
    max-height: 685px;
    overflow-y: auto;
}
.review-right-column h2 {
    font-size: 24px;
    color: #333;
    margin-bottom: 15px;
}
#review-list {
    min-height: 300px;
}
.review-item {
    border-bottom: 1px solid #eee;
    padding: 15px 0;
}
.review-item:last-child {
    border-bottom: none;
}
.review-user {
    font-weight: 700;
    color: #6c5ce7;
    display: flex;
    align-items: center;
}
.review-date {
    color: #999;
}
.review-content {
    font-size: 15px;
    line-height: 1.5;
    color: #333;
}
.review-item .star-display {
    color: #f39c12;
    font-size: 18px;
    margin-right: 10px;
    letter-spacing: 2px;
}
.review-header {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    margin-bottom: 5px;
}
.review-author {
    font-weight: 700;
    color: #6c5ce7;
    display: flex;
    align-items: center;
}
.review-rating {
    color: #f39c12;
    font-weight: 700;
}
.review-actions {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-top: 5px;
    justify-content: flex-end;
}
.review-actions button.delete {
    color: #e74c3c;
}
.review-actions .action-btn {
    background: none;
    border: none;
    color: #6c5ce7;
    font-size: 13px;
    cursor: pointer;
    padding: 2px 5px;
    transition: color 0.2s;
}
/* =========================
   fields(구장 검색) 페이지 전용 스타일
   ========================= */
.field-search-main {
    padding: 100px 40px 40px 40px;
    background-color: #f7f7f7;
    min-height: 100vh;
}
.field-search-main .search-container {
    max-width: 1200px;
    margin: 0 auto;
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}
.field-search-main .search-title {
    font-size: 28px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 25px;
    border-bottom: 2px solid #6c5ce7;
    padding-bottom: 10px;
}
.field-search-main .filter-section {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}
.field-search-main .filter-section input {
    padding: 12px 15px;
    font-size: 15px;
    border: 1px solid #ddd;
    border-radius: 10px;
    background: #f9f9f9;
    flex-grow: 1;
    min-width: 200px;
}
.field-search-main .filter-section button {
    padding: 12px 15px;
    background-color: #6c5ce7;
    color: white;
    font-weight: 600;
    cursor: pointer;
    border: none;
    border-radius: 10px;
}
.field-search-main .search-content {
    display: flex;
    gap: 20px;
}
.field-search-main .map-area {
    flex: 7;
    height: 500px;
    background-color: #eee;
    border-radius: 10px;
}
.field-search-main .field-list-area {
    flex: 3;
    max-height: 500px;
    overflow-y: auto;
    background: #fff;
    padding: 15px;
    border-radius: 10px;
}
.field-search-main #field-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 10px;
}
.field-search-main .field-card {
    background: #ffffff;
    border-radius: 10px;
    padding: 10px 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    border-left: 5px solid #2ecc71;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}
.field-search-main .field-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 18px rgba(0,0,0,0.12);
}
.field-search-main .field-card h3 {
    font-size: 16px;
    color: #2c3e50;
}
/* ★채팅 유형 탭 버튼 스타일 (깔끔한 글씨 밑줄 형식)★ */
.message-wrapper {
    margin: 12px 0;
    display: flex;
    flex-direction: column;
}
.message-wrapper.other {
    align-items: flex-start;
}
.message-wrapper.mine {
    align-items: flex-end;
}
.message-nickname {
    font-size: 13px;
    color: #444;
    margin-bottom: 3px;
    margin-left: 4px;
    font-weight: 600;
}
.bubble-row {
    display: flex;
    align-items: flex-end;
    gap: 6px;
}
.bubble-row.other {
    justify-content: flex-start;
}
.bubble-row.mine {
    justify-content: flex-end;
}
.message-time {
    font-size: 11px;
    color: #777;
    margin-bottom: 15px;
}
.btn-create {
    background: #6c5ce7;
    color: white;
    border: none;
}
/* ⭐⭐ 보강: 안 읽은 메시지 뱃지 및 인원 수 표시를 위한 컨테이너 ⭐⭐ */
.unread-badge {
    background-color: #e74c3c;
    color: white;
    font-size: 11px;
    font-weight: 700;
    border-radius: 40px;
    padding: 3px 8px;
    flex-shrink: 0;
    display: inline-block;
    min-width: 24px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.07);
    text-align: center;
}
/* ⭐⭐ 보강 끝 ⭐⭐ */
/* 🔥 친구 초대 모달 X 버튼 스타일 */
.modal-close-x {
    position: absolute;
    top: 12px;
    right: 16px;
    background: none;
    border: none;
    font-size: 24px;
    color: #666;
    cursor: pointer;
    line-height: 1;
    padding: 0;
}
.modal-close-x:hover {
    color: #e74c3c;
}

.hero-section {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

/* 기본 카드 스타일: 반투명 + 블러 */
.hero-center-card {
    position: relative;
    z-index: 50;
    padding: 40px 60px;
    border-radius: 24px;
    background: rgba(80, 114, 114, 0.31);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

/* 로그인 후에는 박스 배경 제거 */
.hero-center-card.logged-in {
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}
.rating-group {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
}

.star-rating {
    display: flex;
    flex-direction: row;
    gap: 6px;
    margin-top: 6px;
    font-size: 26px;
    cursor: pointer;
}

.star-rating .star {
    color: #ccc;
    transition: color 0.2s ease;
}

.star-rating .star.selected {
    color: #FFD700;
}

/* ▶ 리뷰 리스트에서 보여줄 별 (읽기 전용) */
.review-star-rating {
    display: flex;
    flex-direction: row;
    font-size: 15px;
}
.review-star-rating .star {
    color: #ccc;
}
.review-star-rating .star.filled {
    color: #FFD700;
}

/* 📢 채팅 날짜 구분선 스타일 (우선 적용) */
.chat-date-divider {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 12px 0 !important;
    font-size: 12px !important;
    color: #777 !important;
}

.chat-date-divider::before,
.chat-date-divider::after {
    content: '' !important;
    flex: 1 !important;
    height: 1px !important;
    background: #e0e0e0 !important;
    margin: 0 8px !important;
}

.chat-date-divider span {
    white-space: nowrap !important;
}

/* ===================================================
   ✅ 모바일 최종 오버라이드 (768px 이하)
   - 기존 고정폭/2열/큰 UI를 모바일에 맞게 강제 보정
   =================================================== */
@media (max-width: 768px) {

    /* 0) 가로 스크롤/튐 방지 */
    html, body {
        width: 100%;
        overflow-x: hidden;
    }
    * {
        max-width: 100%;
        box-sizing: border-box;
    }
    img, video, iframe, canvas {
        max-width: 100%;
        height: auto;
    }

    /* 1) 헤더/프로필 과대 문제 */
    .quick-menu {
        height: 52px !important;
        padding: 5px 10px !important;
    }
    .quick-menu .logo a {
        font-size: 18px !important;
    }
    .quick-menu .header-icons {
        gap: 6px !important;
        padding-right: 6px !important;
    }
    .quick-menu .header-icons button,
    .profile-icon {
        font-size: 20px !important;
    }
    .quick-menu .profile-image {
        width: 40px !important;
        height: 40px !important;
    }
    .main-nav,
    .user-menu,
    .main-menu,
    .mypage-user-menu {
        top: 52px !important;
        right: 8px !important;
        width: 92vw !important;
        min-width: 0 !important;
    }
    .main-nav {
        width: 160px !important;
        min-width: 160px !important;
        padding: 6px 0 !important;
    }
    .main-nav ul li a {
        padding: 11px 12px !important;
        font-size: 14px !important;
    }
    .user-menu {
        width: 170px !important;
    }


    /* 2) 로그인/회원가입 2열 → 1열 */
    .login-page-main {
        padding: 12px 0;
    }
    .main-wrapper {
        flex-direction: column;
        width: 96% !important;
        margin: 10px auto !important;
        border-radius: 12px !important;
    }
    .login-section,
    .main-section {
        padding: 24px 15px !important;
        overflow-y: visible;
    }
    .title-login {
        font-size: 24px !important;
        margin-bottom: 15px !important;
    }
    .login-button,
    .schedule-button {
        font-size: 18px;
        padding: 14px 16px;
        border-radius: 22px;
    }

    /* 3) Hero 문구/CTA 크기 조정 */
    .hero-center-card {
        width: 92%;
        padding: 20px 14px;
        border-radius: 16px;
    }
    .hero-message {
        font-size: 34px;
        line-height: 1.15;
    }
    .hero-sub-message {
        font-size: 16px;
    }
    .cta-button {
        font-size: 18px;
        padding: 12px 20px;
    }

    /* 4) 일정 슬라이더/그리드 */
    .schedule-item {
        width: 88vw !important;
        max-width: 88vw !important;
    }
    .value-grid,
    .features-grid {
        grid-template-columns: 1fr !important;
        gap: 14px;
    }

    /* 5) 검색/리스트 페이지 공통 패딩 축소 (community-main 포함) */
    .search-main,
    .schedule-search-main,
    .community-main,
    .field-search-main,
    .stadium-main,
    .review-page-main {
        padding: 72px 12px 20px 12px !important;
    }

    /* [메인 페이지 FIX] 모바일에서 상세보기 버튼 오른쪽 정렬 */
    .schedule-item-actions {
        text-align: right !important;
    }

    /* [커뮤니티 FIX] 커뮤니티 컨테이너 패딩 축소 */
    .community-board-container {
        padding: 15px !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    /* [마이페이지 FIX] 탭 버튼 폰트 크기 축소 (친구관리 한 줄 표시) */
    .mypage-page .tab-buttons .tab-btn {
        font-size: 14px !important;
        padding: 10px 8px !important;
    }

    /* [커뮤니티 FIX] 탭 버튼 패딩/마진 축소 */
    .board-tabs button {
        padding: 8px 10px !important;
        font-size: 14px !important;
        margin-right: 2px !important;
    }

    /* [커뮤니티 FIX] 게시판 테이블 모바일 최적화 */
    .post-table {
        min-width: 500px;
        font-size: 13px !important;
    }
    .post-table th, .post-table td {
        padding: 10px 8px !important;
    }

    /* [커뮤니티 FIX] 검색 영역 수직 정렬 및 풀 너비 */
    .search-area {
        flex-direction: column;
        gap: 8px;
        margin-top: 15px;
    }
    .search-area select, .search-area input[type="text"], .search-area button {
        width: 100%;
        box-sizing: border-box;
    }

    /* 7) 경기장 상세 (stadium) 1열 스택 보정 */
    .stadium-container {
        grid-template-columns: 1fr !important;
        padding: 18px !important;
        gap: 18px !important;
    }
    .detail-left-column,
    .review-right-column {
        grid-column: 1 / -1 !important;
        grid-row: auto !important;
        max-height: none !important;
    }
    .action-button-group {
        grid-column: 1 / -1 !important;
        flex-direction: column !important;
    }
    .stadium-map-area {
        height: 300px !important;
    }

    /* 8) 커뮤니티 테이블 - HTML에 .post-table-wrapper가 필요합니다. */
    .post-table-wrapper {
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        margin-bottom: 20px;
    }

    /* 9) 채팅 사이드바 */
    .chat-main {
        flex-direction: column;
    }
    .chat-sidebar {
        width: 100% !important;
        height: auto !important;
    }
    #participant-sidebar {
        width: 80vw !important;
        max-width: 320px !important;
        top: 52px !important;
    }

    /* 10) 마이페이지 캘린더 */
    .calendar-layout-wrapper {
        flex-direction: column;
    }
    #fixed-schedule-detail {
        width: 100% !important;
    }

    /* ----------------------------------
       [B] 🏟️ schedule-detail 페이지 수정
       ---------------------------------- */
    .detail-grid * {
        word-break: break-word !important;
        white-space: normal !important;
    }
    .detail-grid {
        display: flex !important;
        flex-direction: column !important;
        gap: 15px !important;
    }
    .status-card {
        order: 2;
        width: 100% !important;
    }
    .detail-grid > div:first-child {
        order: 1;
        width: 100% !important;
    }

    /* ----------------------------------
       [D] ⚽️ 구장 검색 페이지 (fields.html) 모바일 수정
       ---------------------------------- */
    .field-search-main .search-content {
        /* 지도와 목록을 수직으로 쌓기 (1열) */
        flex-direction: column !important;
    }

    .field-search-main .map-area {
        /* 지도 영역을 상단에 100% 너비로 배치 */
        flex: none;
        width: 100%;
        height: 300px;
    }

    .field-search-main .field-list-area {
        /* 목록 영역을 지도 아래에 배치 */
        flex: none;
        width: 100%;
        max-height: none; /* 높이 제한 해제 */
        padding: 15px !important;
        order: 1; /* 지도 아래에 배치되도록 순서 조정 */
    }
}
/* ===================================================
   ✅ fields.html PC (769px+) 레이아웃 원복 및 팝업 스타일링
   =================================================== */
@media (min-width: 769px) { /* PC 레이아웃 */
    .field-search-main .search-content {
        /* PC: 지도(7)와 목록(3)을 가로로 정렬 */
        display: flex;
        gap: 20px;
        flex-direction: row;
    }
    .field-search-main .map-area {
        /* PC: 지도 영역 크기 원복 (flex: 7) */
        flex: 7;
        width: auto;
        height: 500px;
    }
    .field-search-main .field-list-area {
        /* PC: 목록 영역 크기 원복 (flex: 3) */
        flex: 3;
        max-height: 500px;
        overflow-y: auto;
        order: 0;
    }
}


/* PC 환경 (769px 이상)의 카카오맵 팝업 스타일 보정 */
.kakao-custom-info {
    width: 230px;
    max-width: 230px;
    padding: 10px;
    box-sizing: border-box;
    background-color: #ffffff !important;
    border-radius: 8px !important;
    border: 1px solid #ccc !important;
}
/* PC 팝업 내부 스타일 조정 */
.kakao-custom-info button {
    display: block !important;
    width: 100% !important;
    margin-top: 8px !important;
    padding: 7px 10px !important;
    font-size: 13px !important;
}
/* ---------------------------------------------------------------------
   ⚠️ PC/모바일 공통: 카카오맵 팝업 꼬리(화살표) 배경색 및 꼬리 네모 박스 최종 해결
   --------------------------------------------------------------------- */

.kakao_maps_sdk div[style*="background: rgba(0, 0, 0, 0)"] {
    background: transparent !important;
}

.kakao_maps_sdk .info_tip {
    border-color: transparent !important;
    background: transparent !important;
}

/* ---------------------------------------------------------------------
   ✅ schedule-detail 및 fields.html 모바일 (max-width: 768px) 최종 통합 FIX
   --------------------------------------------------------------------- */

@media (max-width: 768px) {
    /* ----------------------------------
       [A] fields.html UI 개선 (입력창, 버튼)
       ---------------------------------- */
    .field-search-main .filter-section {
        flex-direction: column !important;
        gap: 8px !important;
        padding: 10px 15px !important;
        margin-bottom: 15px !important;
    }

    .field-search-main .filter-section input#search-keyword {
        padding: 10px 12px !important;
        font-size: 14px !important;
        width: 100% !important;
    }

    .field-search-main .filter-section button#search-btn {
        padding: 10px 0 !important;
        font-size: 15px !important;
        width: 100% !important;
    }

    /* ----------------------------------
       [C] 🎉 카카오맵 인포윈도우 최종 스타일 FIX (모바일)
       ---------------------------------- */
    .kakao-custom-info {
        background-color: #ffffff !important;
        border-radius: 8px !important;
        border: 1px solid #ccc !important;

        width: 160px !important;
        max-width: 160px !important;
        min-width: 160px !important;
        padding: 6px !important;
        line-height: 1.3 !important;
        white-space: normal !important;
        word-break: break-word !important;
    }

    .kakao-custom-info button {
        padding: 4px 6px !important;
        font-size: 11px !important;
        width: 100% !important;
    }

    /* 팝업 꼬리(화살표) 배경 투명 처리 재강조 */
    .kakao_maps_sdk div[style*="background: rgba(0, 0, 0, 0)"] {
        background: transparent !important;
    }
    .kakao_maps_sdk .info_tip {
        border-color: transparent !important;
        background: transparent !important;
    }
}
/* =======================================
   ✅ 캘린더/메인페이지 모바일 전용 미세 조정 (480px 깨짐 방지)
   - 360x800 해상도에 직접적으로 대응하는 블록 (max-width: 480px)
   ======================================= */
@media (max-width: 480px) {

    /* [신규/수정] 전체 레이아웃 */
    .login-page-main,
    .schedule-search-main,
    .field-search-main,
    .stadium-main,
    .community-main,
    .review-page-main {
        padding: 60px 8px 15px 8px !important; /* 상단 헤더 공간 및 좌우 패딩 더 축소 */
    }

    /* [신규] 헤더 영역 (이미 768px에서 줄였지만, 더 좁은 화면에서 한번 더 보정) */
    .quick-menu {
        height: 48px !important;
        padding: 4px 8px !important;
    }
    .quick-menu .logo a {
        font-size: 16px !important;
    }
    .quick-menu .header-icons button,
    .profile-icon {
        font-size: 18px !important;
    }
    .main-nav, .user-menu {
        top: 48px !important;
    }
    .quick-menu .profile-image {
        width: 35px !important;
        height: 35px !important;
    }


    /* [신규] 로그인/회원가입 */
    .login-section,
    .main-section {
        padding: 20px 10px !important;
    }
    .title-login {
        font-size: 20px !important;
        margin-bottom: 10px !important;
    }
    .input-group input {
        padding: 10px !important;
        font-size: 14px !important;
        border-radius: 8px !important;
    }
    .input-with-icon input {
        padding-left: 35px !important;
    }
    .input-icon {
        left: 10px !important;
        font-size: 14px !important;
    }
    .login-button {
        font-size: 16px !important;
        padding: 12px 14px !important;
        border-radius: 20px !important;
    }

    /* [신규] Hero 문구/CTA */
    .hero-center-card {
        width: 96%;
        padding: 16px 12px;
        border-radius: 14px;
    }
    .hero-message {
        font-size: 28px !important;
    }
    .hero-sub-message {
        font-size: 14px !important;
    }
    .cta-button {
        font-size: 16px !important;
        padding: 10px 18px !important;
        margin-top: 20px !important;
    }
    #no-schedule-view {
        padding: 20px !important;
        font-size: 16px !important;
    }

    /* -------------------------------------
       [NEW] 메인 페이지 일정 섹션 최적화 (480px)
       ------------------------------------- */
    .schedule-slider-container {
        padding: 0 5px !important; /* 슬라이더 좌우 패딩 대폭 축소 */
        max-width: 100% !important; /* 컨테이너 너비를 100%로 설정 */
        width: 100% !important;
        box-sizing: border-box;
    }

    .schedule-slider-viewport {
        max-width: 90vw !important; /* 뷰포트 최대 너비를 뷰포트 90%로 설정 */
        margin: 0 auto !important;   /* 중앙 정렬 */
    }

    .schedule-item {
        width: 90vw !important; /* 카드 너비를 뷰포트 90%로 강제 설정 (중앙 정렬된 뷰포트 너비와 동일) */
        max-width: 90vw !important;
        margin: 0 5px !important;
        padding: 16px 14px !important; /* 패딩 축소 */
        border-radius: 14px !important;
        box-shadow: 0 6px 16px rgba(0,0,0,0.12) !important;
        box-sizing: border-box;
    }

    /* 슬라이더 화살표 위치를 중앙에 맞게 조정 */
    .slider-arrow {
        top: 40% !important; /* ⭐⭐ 수정: 40%로 유지 ⭐⭐ */
        transform: translateY(-50%) !important;
        width: 32px !important;
        height: 32px !important;
        font-size: 16px !important; /* 아이콘 크기 축소 */
    }
    /* 화살표 위치를 컨테이너 경계에 가깝게 조정 */
    .slider-arrow.prev { left: -5px !important; }
    .slider-arrow.next { right: -5px !important; }

    /* Hero 섹션 높이를 일정 영역이 겹치지 않도록 조정 */
    .hero-section {
        height: 100vh; /* 뷰포트 전체 높이를 유지하여 하단 요소에 영향 방지 */
    }

    /* ⭐⭐ [핵심 수정] 후기 알림창 레이아웃 수직 정렬 및 버튼 중앙 배치 ⭐⭐ */
    #review-notification-section {
        padding: 15px 12px !important;
        font-size: 14px !important;
        /* 세로로 쌓고 가운데 정렬 */
        flex-direction: column !important;
        align-items: center !important;
        gap: 10px;
    }

    .review-notification-text {
        text-align: center;
        width: 100%;
        margin-bottom: 0 !important;
    }

    .review-notification-link {
        /* 버튼 크기 조정 및 중앙 정렬 */
        width: 80%; /* 버튼 너비를 적절히 늘려 터치 용이하게 */
        max-width: 200px;
        padding: 8px 10px !important;
        font-size: 14px !important;
        text-align: center !important;
    }


    /* [수정] 캘린더/마이페이지 */
    /* 1. 달력 일자 셀의 높이를 고정하고 일자 폰트 크기 축소 */
    .mypage-page .calendar-day-cell {
        min-height: 70px !important; /* 높이 약간 감소 */
        max-height: 90px !important;
        padding: 3px !important; /* 내부 패딩 최소화 */
        font-size: 10px !important; /* 일자 숫자 폰트 크기 축소 */
        font-weight: 500 !important;
    }

    /* 2. 요일 헤더 폰트 크기 축소 */
    .mypage-page .calendar-header-cell {
        padding: 5px 0 !important; /* 패딩 축소 */
        font-size: 10px !important;
    }

    /* 3. 이벤트 아이템 높이/폰트 크기 조정 */
    .mypage-page .calendar-event {
        padding: 1px 2px !important; /* 이벤트 내부 패딩 축소 */
        margin-top: 1px !important; /* 이벤트 간격 최소화 */
        font-size: 8px !important; /* 이벤트 폰트 크기 대폭 축소 */
        line-height: 1.1 !important;
    }

    /* 4. '더보기' 이벤트 폰트 크기 조정 */
    .mypage-page .calendar-event.more-events {
        font-size: 8px !important;
        padding: 1px !important;
    }

    /* 5. 달력 헤더 현재 월 표시 폰트 크기 조정 */
    .mypage-page .calendar-header h2 {
        font-size: 16px !important;
    }

    /* 6. 마이페이지 탭 버튼 폰트 크기 */
    .mypage-page .tab-buttons .tab-btn {
        font-size: 12px !important;
        padding: 8px 6px !important;
    }

    /* ----------------------------------
       [NEW] ✅ 인라인 프로필 상세 창 위치 및 스타일 FIX
       ---------------------------------- */
    .inline-profile-detail {
        position: fixed !important;
        top: 50% !important;
        left: 50% !important;
        transform: translate(-50%, -50%) !important;

        width: 90% !important;
        max-width: 320px !important;
        height: auto !important;

        right: auto !important;
        box-shadow: 0 5px 30px rgba(0, 0, 0, 0.4) !important;
        background: #fff !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        z-index: 10002 !important;

        transition: opacity 0.3s ease, transform 0.3s ease !important;
    }

    .inline-profile-detail.open {
        transform: translate(-50%, -50%) !important;
        opacity: 1 !important;
        display: flex !important;
    }

    .profile-detail-img {
        width: 80px !important;
        height: 80px !important;
        margin: 0 auto 10px !important;
    }

    .profile-info-content {
        text-align: center;
    }

    .profile-meta-info {
        text-align: left;
        padding: 0 10px;
    }

    .chat-one-on-one-btn, .send-friend-request-btn {
        font-size: 14px !important;
        padding: 10px !important;
    }
}

/* ===================================================
   ✅ MOBILE SCHEDULE SECTION FIX (768px 이하)
   =================================================== */
@media (max-width: 768px) {

    /* 일정 섹션 전체가 화면 폭을 제대로 먹도록 */
    #upcoming-schedule-section {
        width: 100%;
        padding: 0 12px !important;
        margin-top: 10px !important;
    }

    /* "7일 이내의 일정" 타이틀 */
    .schedule-title {
        font-size: 20px !important;
        margin-bottom: 12px !important;
        border-bottom-width: 2px !important;
    }

    /* 슬라이더 컨테이너: 좌우 여백 과다 제거 */
    .schedule-slider-container {
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 !important;
        border-radius: 14px !important;
        box-shadow: none !important;
        background: transparent !important;
    }

    /* 뷰포트 폭 제한 해제 + 중앙정렬 */
    .schedule-slider-viewport {
        width: 100% !important;
        max-width: 100% !important;
        overflow: hidden;
        margin: 0 auto !important;
    }

    /* 트랙: 카드 간격 최소화 */
    #schedule-list-items {
        gap: 0 !important;
    }

    /* ✅ 카드: 화면폭에 맞게 1장씩 꽉 차게 */
    .schedule-item {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        padding: 16px 14px !important;
        border-radius: 14px !important;
        box-shadow: 0 6px 16px rgba(0,0,0,0.12) !important;
    }

    .schedule-item-info {
        font-size: 14px !important;
        margin-bottom: 10px !important;
    }
    .schedule-item-info strong {
        font-size: 16px !important;
    }

    .schedule-item .item-type {
        font-size: 12px !important;
        margin-bottom: 4px !important;
    }

    .schedule-item .item-location {
        font-size: 13px !important;
    }

    /* 상세보기 버튼: 모바일에선 오른쪽 정렬 */
    .schedule-item-actions {
        text-align: right !important; /* ⭐⭐ 수정: 오른쪽 정렬 ⭐⭐ */
        margin-top: 12px !important;
    }
    .schedule-item-link {
        display: inline-block;
        width: auto !important;
        padding: 7px 14px !important;
        font-size: 12px !important;
        border-radius: 8px !important;
    }

    /* ✅ 화살표: 검정색, 위치 조정 */
    .slider-arrow {
        top: 40% !important; /* 이미지와 유사하게 중앙보다 약간 위에 위치 */
        width: 34px !important;
        height: 34px !important;
        font-size: 18px !important;
        background: linear-gradient(145deg, #000, #222) !important; /* ⭐⭐ 수정: 검정색 계열 ⭐⭐ */
        box-shadow: 0 4px 10px rgba(0,0,0,0.4) !important;
        z-index: 60 !important;
    }
    .slider-arrow.prev { left: -6px !important; }
    .slider-arrow.next { right: -6px !important; }

    /* 페이지네이션 간격 */
    .slider-pagination {
        margin-top: 12px !important;
    }

    /* ⭐⭐ [수정] 768px에서도 후기 섹션 수직 정렬 및 버튼 중앙 배치 적용 ⭐⭐ */
    #review-notification-section {
        flex-direction: column !important;
        align-items: center !important;
        gap: 10px;
        padding: 15px 20px !important;
    }

    .review-notification-link {
        width: auto;
        max-width: 200px;
        font-size: 14px;
    }

    .review-notification-text {
        text-align: center;
    }

    /* ----------------------------------
       [D] ⚽️ 구장 검색 페이지 (fields.html) 모바일 수정
       ---------------------------------- */
    .field-search-main .search-content {
        /* 지도와 목록을 수직으로 쌓기 (1열) */
        flex-direction: column !important;
    }

    .field-search-main .map-area {
        /* 지도 영역을 상단에 100% 너비로 배치 */
        flex: none;
        width: 100%;
        height: 300px;
    }

    .field-search-main .field-list-area {
        /* 목록 영역을 지도 아래에 배치 */
        flex: none;
        width: 100%;
        max-height: none; /* 높이 제한 해제 */
        padding: 15px !important;
        order: 1; /* 지도 아래에 배치되도록 순서 조정 */
    }
}
/* ===================================================
   ✅ PC 채팅: 채팅방만 스크롤되게 고정 (769px 이상)
   =================================================== */
@media (min-width: 769px) {

    /* 채팅 페이지에서 body 스크롤 금지 */
    body.chat-page,
    html.chat-page {
        height: 100%;
        overflow: hidden !important;
    }

    /* 헤더(quick-menu) 제외한 영역을 화면에 고정 */
    .chat-main {
        height: calc(100vh - 70px); /* 헤더 높이만큼 빼기 */
        overflow: hidden;            /* chat-main 자체도 스크롤 금지 */
    }

    /* 채팅 우측 컨텐츠도 화면 높이 고정 */
    .chat-content-area {
        height: 100%;
        overflow: hidden;
        min-height: 0;              /* flex overflow 정상 동작 핵심 */
    }

    /* ✅ 여기만 스크롤 되게 */
    .chat-messages {
        flex: 1 1 auto;
        overflow-y: auto !important;
        min-height: 0;              /* flex overflow 정상 동작 핵심 */
    }
}
/* ===================================================
   ✅ 마이페이지 '친구관리 탭' 모바일 전용 FIX (360~430px)
   - PC는 절대 영향 없음
   =================================================== */
@media (max-width: 430px) {

    /* 1) 친구관리 전체 컨텐츠 패딩/폭 정리 */
    .mypage-page .tab-content {
        padding: 14px !important;
    }

    /* 2) 친구관리 내부 서브탭(친구목록/요청/추가) 버튼 한 줄 고정 + 높이 축소 */
    .tab-buttons.sub-tabs {
        gap: 6px !important;
        margin-bottom: 12px !important;
    }
    .tab-buttons.sub-tabs .sub-tab-btn {
        font-size: 13px !important;
        padding: 8px 6px !important;
        margin-right: 0 !important;
        border-radius: 7px 7px 0 0 !important;
        white-space: nowrap !important;  /* 줄바꿈 방지 */
    }

    /* 3) 검색 영역(닉네임 검색 + 버튼) → 세로 스택 */
    .friend-list-search-group,
    .friend-add-search-group {
        flex-direction: column !important;
        gap: 8px !important;
        margin-bottom: 12px !important;
    }
    .friend-list-search-group input,
    .friend-add-search-group input {
        width: 100% !important;
        font-size: 14px !important;
        padding: 9px 10px !important;
    }
    .friend-list-search-group button,
    .friend-add-search-group button {
        width: 100% !important;
        font-size: 14px !important;
        padding: 9px 0 !important;
    }

    /* 4) ✅ 친구 목록 아이템 깨짐 원인 제거
          - strong의 margin-right 150px 제거
          - 한 줄 폭에 맞게 ellipsis */
    .friend-item-list li strong,
    .friend-request-item strong {
        margin-right: 0 !important;      /* ⭐ 핵심 */
        max-width: 100% !important;
        flex: 1 1 auto !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        font-size: 14px !important;
    }

    /* 5) li 자체를 "닉네임 위 / 버튼 아래" 구조로 */
    .friend-item-list li,
    .friend-request-item {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 8px !important;
        padding: 10px !important;
    }

    /* 6) 절대 위치 버튼 → 아래로 내려서 자연 배치 */
    .action-buttons,
    .request-actions {
        position: static !important;     /* ⭐ 핵심 */
        transform: none !important;
        display: flex !important;
        width: 100% !important;
        justify-content: flex-end !important;
        gap: 6px !important;
        margin-top: 4px !important;
        padding-left: 0 !important;
    }

    /* 7) 버튼크기 모바일 터치용으로 살짝 키우고 정렬 */
    .action-buttons button,
    .request-actions button {
        font-size: 12px !important;
        padding: 7px 10px !important;
        border-radius: 6px !important;
    }

    /* 8) active일 때만 버튼 보이게 하던 로직 유지 */
    .friend-item-list li:not(.active) .action-buttons {
        display: none !important;
    }
    .friend-request-item:not(.active) .request-actions {
        display: none !important;
    }

    /* 9) 친구추가 모달도 모바일 폭에 딱 맞게 */
    .friend-add-modal {
        width: 94vw !important;
        padding: 18px !important;
    }
    .friend-add-result-item {
        padding: 8px 10px !important;
    }
    .friend-add-result-user span {
        font-size: 14px !important;
    }
}
