/* 탭 네비게이션 */
.tab-navigation {
    background-color: #ffffff;
    padding: 15px 30px;
    display: flex;
    gap: 10px;
    overflow-x: auto;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.tab-navigation::-webkit-scrollbar {
    display: none;
}

/* 탭 버튼 래퍼 */
.tab-btn-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.tab-btn {
    padding: 10px 24px;
    background-color: #ebebeb;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    color: #333333;
    white-space: nowrap;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.tab-btn:hover {
    background-color: #656565;
    color: #ffffff;
}

.tab-btn.active {
    background-color: #656565;
    color: #ffffff;
}

.tab-btn-text {
    display: inline-block;
}

/* 아이콘이 있는 탭 버튼 */
.tab-btn-icon {
    padding: 6px 20px;
    min-width: auto;
}

.tab-icon {
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tab-icon img {
    height: 100%;
    width: auto;
    object-fit: contain;
    transition: all 0.3s ease;
}

.tab-icon-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: linear-gradient(135deg, #ff6c0f, #ff8c3a);
    border-radius: 6px;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
}

/* TOTAL 텍스트 탭 */
.tab-btn-total {
    min-width: auto;
    padding: 10px 24px;
    height: 40px;
}

/* 메인 콘텐츠 */
.main-content {
    max-width: 1920px;
    margin: 0 auto;
    padding: 30px;
}

/* 그리드 레이아웃 */
.content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}

/* 카드 스타일 */
.content-card {
    border-radius: 5px;
    overflow: visible;
    transition: all 0.25s ease;
    cursor: pointer;
    border: 1px solid transparent;
}

.content-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    border-color: #dfe1e4;
}

.card-thumbnail {
    width: 100%;
    position: relative;
    overflow: hidden;
    background-color: #f0f0f0;
    border-radius: 5px 5px 0 0;
    aspect-ratio: 16 / 9;
    height: auto;
}

@supports not (aspect-ratio: 16 / 9) {
    .card-thumbnail {
        height: 0;
        padding-top: 56.25%;
    }
}

.card-thumbnail img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-badge {
    position: absolute;
    bottom: 12px;
    left: 12px;
    background-color: #ff6c0f;
    color: #ffffff;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.card-badge.new {
    background-color: #ff1744;
}

.card-badge.special {
    background-color: #9c27b0;
}

/* 카드 썸네일 상단 액션 버튼 */
.card-actions-top {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    gap: 8px;
    z-index: 10;
}

.card-action-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background-color: rgba(255, 255, 255, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.card-action-btn:hover {
    background-color: #ffffff;
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.card-action-btn svg {
    color: #656565;
    transition: all 0.3s ease;
}

.playlist-btn:hover svg {
    color: #ff6c0f;
    transform: rotate(90deg);
}

.like-btn:hover svg {
    color: #ff1744;
    fill: #ff1744;
}

.like-btn.active svg {
    fill: #ff1744;
    color: #ff1744;
}

/* 카드 정보 */
.card-info {
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
}

.card-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

.card-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-details {
    flex: 1;
    min-width: 0;
}

.card-title {
    font-size: 15px;
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.card-subtitle {
    font-size: 13px;
    color: #888;
}

/* 더보기 버튼 */
.card-more-wrapper {
    position: relative;
    margin-left: auto;
}

.card-more-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background-color: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #656565;
}

.card-more-btn:hover {
    background-color: #f5f5f5;
    color: #ff6c0f;
}

/* 카드 드롭다운 */
.card-dropdown {
    position: absolute;
    bottom: calc(100% + 5px);
    right: 0;
    width: 160px;
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    z-index: 200;
}

.card-dropdown::after {
    content: '';
    position: absolute;
    bottom: -8px;
    right: 12px;
    width: 16px;
    height: 16px;
    background-color: #ffffff;
    transform: rotate(45deg);
    box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
    z-index: -1;
}

.card-dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    text-decoration: none;
    color: #333;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
    border-bottom: 1px solid #f0f0f0;
    background-color: #ffffff;
}

.card-dropdown-item:last-child {
    border-bottom: none;
}

.card-dropdown-item:hover {
    background-color: #fff5ed;
    padding-left: 20px;
}

.card-dropdown-item svg {
    flex-shrink: 0;
    color: #656565;
    transition: color 0.2s ease;
}

.card-dropdown-item:hover svg {
    color: #ff6c0f;
}

.card-dropdown-item.delete {
    color: #ff4444;
}

.card-dropdown-item.delete svg {
    color: #ff4444;
}

.card-dropdown-item.delete:hover {
    background-color: #fff0f0;
}

.card-dropdown-item.delete:hover svg {
    color: #ff0000;
}

/* 카테고리 생성 모달 */
.category-modal-content {
    max-width: 600px;
}

.category-modal-body {
    padding: 30px 40px 40px;
}

.category-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.category-form .form-group {
    margin-bottom: 0;
}

.category-form .form-label {
    display: block;
    font-size: 15px;
    font-weight: 700;
    color: #333;
    margin-bottom: 12px;
}

.category-form .form-label.required::after {
    content: ' *';
    color: #ff6c0f;
    font-weight: 700;
}

/* 스타일 라디오 그룹 */
.style-radio-group {
    display: flex;
    gap: 12px;
}

.style-radio-label {
    flex: 1;
    cursor: pointer;
}

.style-radio-input {
    display: none;
}

.style-radio-custom {
    display: block;
    padding: 12px 20px;
    background-color: #f5f5f5;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    color: #656565;
    text-align: center;
    transition: all 0.3s ease;
}

.style-radio-input:checked+.style-radio-custom {
    background-color: #ff6c0f;
    border-color: #ff6c0f;
    color: #ffffff;
}

.style-radio-label:hover .style-radio-custom {
    border-color: #ff6c0f;
}

/* 기본 입력 필드 */
.category-form .form-input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 14px;
    color: #333;
    transition: all 0.3s ease;
    background-color: #ffffff;
}

.category-form .form-input:focus {
    outline: none;
    border-color: #ff6c0f;
    box-shadow: 0 0 0 3px rgba(255, 108, 15, 0.1);
}

.category-form .form-input::placeholder {
    color: #aaa;
}

/* 가격 입력 그룹 */
.price-input-group {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 10px;
}

/* 이미지 업로드 영역 */
.image-upload-area {
    width: 100px;
    height: 100px;
    border: 2px dashed #e0e0e0;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #fafafa;
    transition: all 0.3s ease;
    cursor: pointer;
}

.image-upload-area:hover {
    border-color: #ff6c0f;
    background-color: #fff5ed;
}

.image-upload-input {
    display: none;
}

.image-upload-label {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.image-upload-label svg {
    color: #d0d0d0;
    transition: all 0.3s ease;
}

.image-upload-area:hover .image-upload-label svg {
    color: #ff6c0f;
    transform: rotate(90deg) scale(1.1);
}

.image-upload-notice {
    font-size: 12px;
    color: #888;
    margin-top: 8px;
}

/* 버튼 그룹 */
.category-form .form-submit {
    margin-top: 10px;
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

.btn-cancel {
    padding: 14px 32px;
    background-color: #f5f5f5;
    color: #656565;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    flex: 1;
}

.btn-cancel:hover {
    background-color: #e0e0e0;
    border-color: #d0d0d0;
    transform: translateY(-1px);
}

.btn-submit-category {
    padding: 14px 32px;
    background: linear-gradient(135deg, #ff6c0f, #ff8c3a);
    color: #ffffff;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    box-shadow: 0 4px 12px rgba(255, 108, 15, 0.3);
    flex: 1;
}

.btn-submit-category:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(255, 108, 15, 0.4);
}

.btn-submit-category:active {
    transform: translateY(0);
}

/* ============ 업로드 모달 스타일 ============ */
.upload-modal-content {
    max-width: 1000px;
    display: flex;
    flex-direction: column;
    max-height: 85vh;
}

.upload-modal-body {
    flex: 1;
    overflow-y: auto;
    padding: 30px 40px 20px;
    padding-right: 35px;
    margin-right: 10px;
}

/* 모달 스크롤바 스타일 */
.upload-modal-body::-webkit-scrollbar {
    width: 10px;
}

.upload-modal-body::-webkit-scrollbar-track {
    background: #f5f5f5;
    border-radius: 10px;
    margin: 8px 0;
}

.upload-modal-body::-webkit-scrollbar-thumb {
    background: #d0d0d0;
    border-radius: 10px;
    border: 2px solid #f5f5f5;
    transition: background 0.3s ease;
}

.upload-modal-body::-webkit-scrollbar-thumb:hover {
    background: #b0b0b0;
}

.upload-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.upload-form-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.upload-form-label {
    font-size: 15px;
    font-weight: 700;
    color: #333;
}

/* 라디오 버튼 그룹 */
.upload-radio-group {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.upload-radio-group-multi {
    gap: 12px;
}

.upload-radio-item {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    padding: 10px 18px;
    background-color: #f5f5f5;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.upload-radio-item:hover {
    background-color: #fff5ed;
    border-color: #ff6c0f;
}

.upload-radio-item input[type="radio"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #ff6c0f;
}

.upload-radio-item input[type="radio"]:checked+.upload-radio-label {
    color: #ff6c0f;
    font-weight: 600;
}

.upload-radio-label {
    font-size: 14px;
    font-weight: 500;
    color: #333;
    cursor: pointer;
    transition: all 0.3s ease;
}

/* 셀렉트 박스 */
.upload-select {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    font-size: 14px;
    color: #333;
    background-color: #fafafa;
    cursor: pointer;
    transition: all 0.3s ease;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L6 6L11 1' stroke='%23656565' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 18px center;
    padding-right: 45px;
}

.upload-select:focus {
    outline: none;
    border-color: #ff6c0f;
    background-color: #ffffff;
    box-shadow: 0 0 0 4px rgba(255, 108, 15, 0.1);
}

/* 입력 필드 */
.upload-input {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    font-size: 14px;
    color: #333;
    background-color: #fafafa;
    transition: all 0.3s ease;
}

.upload-input:focus {
    outline: none;
    border-color: #ff6c0f;
    background-color: #ffffff;
    box-shadow: 0 0 0 4px rgba(255, 108, 15, 0.1);
}

.upload-input::placeholder {
    color: #aaa;
}

/* 텍스트에리어 */
.upload-textarea {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    font-size: 14px;
    color: #333;
    background-color: #fafafa;
    resize: vertical;
    font-family: inherit;
    transition: all 0.3s ease;
    min-height: 120px;
}

.upload-textarea:focus {
    outline: none;
    border-color: #ff6c0f;
    background-color: #ffffff;
    box-shadow: 0 0 0 4px rgba(255, 108, 15, 0.1);
}

.upload-textarea::placeholder {
    color: #aaa;
}

/* 파일 업로드 영역 */
.upload-file-area {
    display: flex;
    gap: 16px;
    align-items: center;
}

.upload-file-box {
    width: 70px;
    height: 70px;
    border: 2px dashed #e0e0e0;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #fafafa;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.upload-file-box:hover {
    border-color: #ff6c0f;
    background-color: #fff5ed;
    transform: scale(1.05);
}

.upload-file-box svg {
    color: #656565;
    transition: all 0.3s ease;
}

.upload-file-box:hover svg {
    color: #ff6c0f;
    transform: rotate(90deg);
}

.upload-file-info {
    font-size: 12px;
    color: #656565;
    margin: 4px 0 0 0;
}

.upload-file-info:first-of-type {
    margin-top: 12px;
}

/* 버튼 영역 - 하단 고정 */
.upload-modal-footer {
    flex-shrink: 0;
    padding: 20px 40px;
    background-color: #ffffff;
    border-top: 2px solid #f0f0f0;
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.05);
}

.upload-form-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.btn-upload-submit {
    flex: 1;
    max-width: 250px;
    padding: 14px 32px;
    background: linear-gradient(135deg, #ff6c0f, #ff8c3a);
    color: #ffffff;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 12px rgba(255, 108, 15, 0.3);
}

.btn-upload-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(255, 108, 15, 0.4);
}

.btn-upload-submit:active {
    transform: translateY(0);
}

.btn-upload-cancel {
    flex: 1;
    max-width: 250px;
    padding: 14px 32px;
    background-color: #f5f5f5;
    color: #656565;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-upload-cancel:hover {
    background-color: #e0e0e0;
    border-color: #d0d0d0;
    transform: translateY(-1px);
}

.btn-upload-cancel:active {
    transform: translateY(0);
}

/* ============ 채팅 플로팅 패널 스타일 ============ */
.chat-floating-panel {
    position: fixed;
    right: 30px;
    bottom: 30px;
    width: 340px;
    max-height: 600px;
    background-color: #ffffff;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    display: none;
    flex-direction: column;
    overflow: hidden;
    z-index: 9999;
    animation: slideUpFade 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.chat-floating-panel.active {
    display: flex;
}

@keyframes slideUpFade {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 패널 헤더 */
.chat-panel-header {
    padding: 18px 20px;
    border-bottom: 2px solid #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: #ffffff;
    flex-shrink: 0;
}

.chat-panel-title {
    font-size: 18px;
    font-weight: 700;
    color: #333;
    margin: 0;
}

.chat-panel-close {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background-color: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.chat-panel-close:hover {
    background-color: #ff6c0f;
    transform: rotate(90deg);
}

.chat-panel-close:hover svg {
    color: #ffffff;
}

.chat-panel-close svg {
    color: #656565;
    transition: color 0.3s ease;
}

/* 검색 */
.chat-panel-search {
    padding: 14px 20px;
    position: relative;
    flex-shrink: 0;
}

.chat-panel-search-input {
    width: 100%;
    padding: 10px 36px 10px 14px;
    border: 2px solid #e0e0e0;
    border-radius: 20px;
    font-size: 13px;
    color: #333;
    background-color: #f8f9fa;
    transition: all 0.3s ease;
}

.chat-panel-search-input:focus {
    outline: none;
    border-color: #ff6c0f;
    background-color: #ffffff;
    box-shadow: 0 0 0 4px rgba(255, 108, 15, 0.1);
}

.chat-panel-search-input::placeholder {
    color: #aaa;
}

.chat-panel-search-icon {
    position: absolute;
    right: 34px;
    top: 50%;
    transform: translateY(-50%);
    color: #888;
    pointer-events: none;
}

/* 친구 카운트 */
.chat-panel-friends-count {
    padding: 10px 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #656565;
    background-color: #f8f9fa;
    border-top: 1px solid #f0f0f0;
    border-bottom: 1px solid #f0f0f0;
    flex-shrink: 0;
}

.chat-panel-friends-count svg {
    color: #888;
}

.chat-panel-friends-count strong {
    color: #ff6c0f;
    font-weight: 700;
}

/* 채팅 섹션 */
.chat-panel-section {
    flex: 1;
    overflow-y: auto;
    padding: 0;
}

.chat-panel-section::-webkit-scrollbar {
    width: 6px;
}

.chat-panel-section::-webkit-scrollbar-track {
    background: #f5f5f5;
}

.chat-panel-section::-webkit-scrollbar-thumb {
    background: #d0d0d0;
    border-radius: 10px;
}

.chat-panel-section::-webkit-scrollbar-thumb:hover {
    background: #b0b0b0;
}

/* 섹션 헤더 */
.chat-panel-section-header {
    padding: 14px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: #ffffff;
    position: sticky;
    top: 0;
    z-index: 10;
    border-bottom: 1px solid #f0f0f0;
}

.chat-panel-section-title {
    font-size: 14px;
    font-weight: 700;
    color: #333;
    margin: 0;
}

.chat-panel-section-toggle {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: none;
    background-color: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.chat-panel-section-toggle:hover {
    background-color: #f5f5f5;
}

.chat-panel-section-toggle svg {
    color: #656565;
    transition: transform 0.3s ease;
}

/* 채팅 리스트 */
.chat-panel-list {
    padding: 0;
}

/* 채팅 아이템 */
.chat-panel-item {
    padding: 12px 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.chat-panel-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 3px;
    height: 100%;
    background-color: #ff6c0f;
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.chat-panel-item:hover {
    background-color: #fff5ed;
    padding-left: 24px;
}

.chat-panel-item:hover::before {
    transform: scaleY(1);
}

/* 아바타 */
.chat-panel-item-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    position: relative;
    border: 2px solid #f0f0f0;
}

.chat-panel-item-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 온라인 상태 */
.chat-panel-status {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid #ffffff;
    background-color: #d0d0d0;
}

.chat-panel-status.online {
    background-color: #10b981;
    box-shadow: 0 0 8px rgba(16, 185, 129, 0.4);
}

/* 채팅 정보 */
.chat-panel-item-info {
    flex: 1;
    min-width: 0;
}

.chat-panel-item-name {
    font-size: 13px;
    font-weight: 600;
    color: #333;
    margin-bottom: 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.chat-panel-item-message {
    font-size: 12px;
    color: #888;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 메뉴 모달 */
.menu-modal-content {
    max-width: 1100px;
    max-height: 90vh;
}

.menu-section {
    margin-bottom: 30px;
}

.menu-section:last-child {
    margin-bottom: 0;
}

.menu-section-title {
    font-size: 20px;
    font-weight: 700;
    color: #333;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 3px solid #ff6c0f;
}

.menu-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 25px;
}

.menu-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    padding: 15px 10px;
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    background-color: #f8f9fa;
}

.menu-item:hover {
    background-color: #fff5ed;
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 8px 20px rgba(255, 108, 15, 0.25);
}

.menu-item:active {
    transform: translateY(-4px) scale(0.98);
}

.menu-icon {
    width: 85px;
    height: 55px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.menu-item:hover .menu-icon {
    transform: scale(1.1) rotate(5deg);
}

.menu-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.menu-icon-box {
    width: 80px;
    height: 55px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #ffffff;
    border-radius: 10px;
    border: 2px solid #e0e0e0;
    color: #656565;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.menu-item:hover .menu-icon-box {
    border-color: #ff6c0f;
    color: #ff6c0f;
    transform: scale(1.1) rotate(-5deg);
    box-shadow: 0 4px 12px rgba(255, 108, 15, 0.2);
}

.menu-icon-box svg {
    width: 30px;
    height: 30px;
    transition: transform 0.3s ease;
}

.menu-item:hover .menu-icon-box svg {
    transform: scale(1.15);
}

.menu-label {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    text-align: center;
    margin-bottom: 3px;
    transition: color 0.3s ease;
}

.menu-item:hover .menu-label {
    color: #ff6c0f;
}

.menu-age {
    font-size: 12px;
    color: #888;
    text-align: center;
}

.menu-divider {
    height: 2px;
    background: linear-gradient(to right, transparent, #e0e0e0 20%, #e0e0e0 80%, transparent);
    margin: 25px 0;
}

/* 내 정보 드롭다운 */
.profile-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 30px;
    width: 320px;
    max-height: calc(100vh - 80px);
    background-color: #ffffff;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    overflow-y: auto;
    z-index: 9999;
    animation: dropdownSlideDown 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    scrollbar-width: thin;
    scrollbar-color: #d0d0d0 #f5f5f5;
}

@keyframes dropdownSlideDown {
    0% {
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }

    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.profile-dropdown::-webkit-scrollbar {
    width: 6px;
}

.profile-dropdown::-webkit-scrollbar-track {
    background: #f5f5f5;
    border-radius: 0 16px 16px 0;
}

.profile-dropdown::-webkit-scrollbar-thumb {
    background: #d0d0d0;
    border-radius: 10px;
}

.profile-dropdown::-webkit-scrollbar-thumb:hover {
    background: #b0b0b0;
}

.profile-section {
    padding: 20px 20px 18px;
}

.profile-header {
    display: flex;
    align-items: center;
    gap: 12px;
}

.profile-avatar {
    width: 60px;
    height: 60px;
    background-color: #f5f5f5;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: 2px solid #e0e0e0;
}

.profile-avatar svg {
    width: 50px;
    height: 50px;
}

.profile-info {
    flex: 1;
    min-width: 0;
}

.profile-title {
    font-size: 15px;
    font-weight: 700;
    color: #333;
    margin-bottom: 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.profile-id {
    font-size: 12px;
    color: #888;
    margin-bottom: 8px;
}

.profile-channel-btn {
    background-color: #ff6c0f;
    color: #ffffff;
    border: none;
    padding: 6px 16px;
    border-radius: 16px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    text-decoration: none;
    display: inline-block;
}

.profile-channel-btn:hover {
    background-color: #e65d00;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 108, 15, 0.3);
}

.profile-channel-btn:active {
    transform: translateY(0);
}

.profile-divider {
    height: 1px;
    background-color: #f0f0f0;
    margin: 0;
}

.profile-menu-section {
    padding: 6px 0;
}

.profile-menu-title {
    font-size: 13px;
    font-weight: 700;
    color: #333;
    padding: 10px 20px 6px;
}

.profile-menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 20px;
    text-decoration: none;
    color: #333;
    font-size: 14px;
    transition: all 0.3s ease;
    position: relative;
}

.profile-menu-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 3px;
    height: 100%;
    background-color: #ff6c0f;
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.profile-menu-item:hover {
    background-color: #fff5ed;
    padding-left: 25px;
}

.profile-menu-item:hover::before {
    transform: scaleY(1);
}

.profile-menu-item svg {
    flex-shrink: 0;
    color: #656565;
    transition: all 0.3s ease;
}

.profile-menu-item:hover svg {
    color: #ff6c0f;
    transform: scale(1.1);
}

.profile-menu-item span {
    font-weight: 500;
}

.profile-logout {
    color: #ff4444;
}

.profile-logout svg {
    color: #ff4444;
}

.profile-logout:hover {
    background-color: #fff0f0;
}

.profile-logout:hover::before {
    background-color: #ff4444;
}

.profile-logout:hover svg {
    color: #ff0000;
}

/* ============ 모달 토글 체크박스 핵 ============ */
.modal-toggle {
    display: none;
}

/* 프로필 드롭다운 기본 숨김 */
.profile-dropdown {
    display: none;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

/* 프로필 토글 체크 시 드롭다운 표시 */
#profile-toggle:checked~.profile-dropdown {
    display: block;
    opacity: 1;
    pointer-events: auto;
}

/* 메뉴 모달 기본 숨김 */
.menu-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

/* 메뉴 토글 체크 시 모달 표시 */
#menu-toggle:checked~.menu-modal {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    visibility: visible;
}

/* 메뉴 모달 콘텐츠 애니메이션 */
.menu-modal-content {
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

#menu-toggle:checked~.menu-modal .menu-modal-content {
    transform: scale(1);
}

/* 헤더 버튼 레이블 스타일 */
.header-btn {
    cursor: pointer;
    user-select: none;
}

/* 프로필 드롭다운 위치 조정 */
.header-actions {
    position: relative;
}

/* ============ 채팅 플로팅 패널 토글 ============ */
/* 채팅 패널 기본 숨김 */
.chat-floating-panel {
    display: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
}

/* 채팅 토글 체크 시 패널 표시 */
#chat-toggle:checked~.chat-floating-panel {
    display: flex;
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* 채팅이 열리면 메뉴 모달 숨기기 */
#chat-toggle:checked~.menu-modal {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
}

/* 반응형 디자인 */
@media (max-width: 1400px) {
    .content-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 20px;
    }
}

@media (max-width: 1200px) {
    .menu-modal-content {
        max-width: 950px;
        max-height: 88vh;
    }

    .menu-grid {
        gap: 22px;
    }

    .menu-icon {
        width: 78px;
        height: 52px;
    }

    .menu-icon-box {
        width: 74px;
        height: 52px;
    }

    .menu-icon-box svg {
        width: 28px;
        height: 28px;
    }

    .menu-section-title {
        font-size: 19px;
    }

    .menu-label {
        font-size: 13.5px;
    }
}

@media (max-width: 1024px) {
    .content-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 22px;
    }

    .main-content {
        padding: 20px;
    }

    .menu-modal-content {
        max-width: 850px;
        max-height: 90vh;
    }

    .menu-grid {
        grid-template-columns: repeat(5, 1fr);
        gap: 20px;
    }

    .menu-icon {
        width: 72px;
        height: 50px;
    }

    .menu-icon-box {
        width: 68px;
        height: 50px;
    }

    .menu-icon-box svg {
        width: 26px;
        height: 26px;
    }

    .menu-section-title {
        font-size: 18px;
    }

    .menu-label {
        font-size: 13px;
    }

    .profile-dropdown {
        right: 20px;
        width: 300px;
    }

    .upload-modal-content {
        max-width: 850px;
    }

    .upload-modal-body {
        padding: 28px 35px 20px;
        padding-right: 30px;
        margin-right: 8px;
    }

    .upload-modal-footer {
        padding: 18px 35px;
    }

    .upload-form {
        gap: 22px;
    }

    .chat-floating-panel {
        width: 320px;
    }
}

@media (max-width: 768px) {
    .content-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
        gap: 15px;
    }

    .tab-navigation {
        padding: 12px 20px;
    }

    .tab-btn-total {
        height: 34px;
    }

    .tab-btn {
        padding: 8px 20px;
        font-size: 13px;
    }

    .tab-btn-icon {
        padding: 5px 16px;
    }

    .tab-icon {
        height: 24px;
    }

    .card-action-btn {
        width: 32px;
        height: 32px;
    }

    .card-action-btn svg {
        width: 18px;
        height: 18px;
    }

    .card-more-btn {
        width: 28px;
        height: 28px;
    }

    .card-dropdown {
        width: 140px;
    }

    .card-dropdown-item {
        padding: 10px 14px;
        font-size: 13px;
    }

    .card-dropdown-item:hover {
        padding-left: 18px;
    }

    .card-dropdown-item svg {
        width: 16px;
        height: 16px;
    }

    .category-modal-content {
        max-width: 95%;
    }

    .category-modal-body {
        padding: 25px 30px 35px;
    }

    .category-form {
        gap: 20px;
    }

    .price-input-group {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .category-form .form-label {
        font-size: 14px;
    }

    .category-form .form-input {
        padding: 11px 14px;
        font-size: 13px;
    }

    .btn-cancel,
    .btn-submit-category {
        padding: 12px 24px;
        font-size: 14px;
    }

    .menu-modal-content {
        max-width: 98%;
    }

    .menu-section-title {
        font-size: 17px;
        margin-bottom: 18px;
    }

    .menu-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 18px;
    }

    .menu-item {
        padding: 12px 8px;
    }

    .menu-icon {
        width: 68px;
        height: 48px;
        margin-bottom: 10px;
    }

    .menu-icon-box {
        width: 64px;
        height: 48px;
        margin-bottom: 10px;
    }

    .menu-icon-box svg {
        width: 24px;
        height: 24px;
    }

    .menu-label {
        font-size: 12.5px;
    }

    .menu-age {
        font-size: 11px;
    }

    .menu-divider {
        margin: 22px 0;
    }

    .profile-dropdown {
        position: fixed;
        top: 60px;
        right: 10px;
        left: 10px;
        width: auto;
        max-height: calc(100vh - 80px);
    }

    .profile-section {
        padding: 18px 18px 16px;
    }

    .profile-avatar {
        width: 55px;
        height: 55px;
    }

    .profile-avatar svg {
        width: 45px;
        height: 45px;
    }

    .profile-title {
        font-size: 14px;
    }

    .profile-id {
        font-size: 11px;
    }

    .profile-channel-btn {
        padding: 5px 14px;
        font-size: 11px;
    }

    .profile-menu-item {
        padding: 10px 18px;
        font-size: 13px;
    }

    .profile-menu-item:hover {
        padding-left: 23px;
    }

    .profile-menu-title {
        padding: 9px 18px 5px;
        font-size: 12px;
    }

    .upload-modal-content {
        max-width: 98%;
    }

    .upload-modal-body {
        padding: 25px 30px 18px;
        padding-right: 28px;
        margin-right: 5px;
    }

    .upload-modal-footer {
        padding: 16px 30px;
    }

    .upload-form {
        gap: 20px;
    }

    .upload-form-label {
        font-size: 14px;
    }

    .upload-radio-group {
        gap: 12px;
    }

    .upload-radio-group-multi {
        gap: 10px;
    }

    .upload-radio-item {
        padding: 9px 16px;
    }

    .upload-radio-label {
        font-size: 13px;
    }

    .upload-select,
    .upload-input {
        padding: 12px 16px;
        font-size: 13px;
    }

    .upload-select {
        padding-right: 42px;
        background-position: right 16px center;
    }

    .upload-textarea {
        padding: 12px 16px;
        font-size: 13px;
        min-height: 100px;
    }

    .upload-file-box {
        width: 65px;
        height: 65px;
    }

    .upload-file-box svg {
        width: 36px;
        height: 36px;
    }

    .upload-file-info {
        font-size: 11px;
    }

    .btn-upload-submit,
    .btn-upload-cancel {
        padding: 13px 28px;
        font-size: 15px;
    }

    .chat-floating-panel {
        right: 20px;
        bottom: 20px;
    }
}

@media (max-width: 480px) {
    .content-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 12px;
    }

    .card-thumbnail {
        height: 150px;
    }

    .main-content {
        padding: 15px;
    }

    .tab-btn {
        padding: 8px 16px;
        font-size: 13px;
    }

    .tab-btn-icon {
        padding: 5px 14px;
    }

    .tab-icon {
        height: 22px;
    }

    .card-actions-top {
        top: 8px;
        right: 8px;
        gap: 6px;
    }

    .card-action-btn {
        width: 30px;
        height: 30px;
    }

    .card-action-btn svg {
        width: 16px;
        height: 16px;
    }

    .card-more-btn {
        width: 26px;
        height: 26px;
    }

    .card-more-btn svg {
        width: 18px;
        height: 18px;
    }

    .card-dropdown {
        width: 130px;
        bottom: calc(100% + 3px);
    }

    .card-dropdown::after {
        width: 14px;
        height: 14px;
        bottom: -7px;
    }

    .card-dropdown-item {
        padding: 9px 12px;
        font-size: 12px;
        gap: 8px;
    }

    .card-dropdown-item:hover {
        padding-left: 16px;
    }

    .category-modal-body {
        padding: 20px 25px 30px;
    }

    .category-form {
        gap: 18px;
    }

    .category-form .form-label {
        font-size: 13px;
        margin-bottom: 10px;
    }

    .category-form .form-input {
        padding: 10px 14px;
        font-size: 13px;
    }

    .category-form .form-submit {
        margin-top: 5px;
        flex-direction: column;
    }

    .btn-cancel,
    .btn-submit-category {
        width: 100%;
        padding: 12px 20px;
        font-size: 14px;
    }

    .image-upload-area {
        width: 90px;
        height: 90px;
    }

    .image-upload-notice {
        font-size: 11px;
    }

    .menu-modal-content {
        max-height: 92vh;
    }

    .menu-section-title {
        font-size: 16px;
        margin-bottom: 16px;
    }

    .menu-grid {
        gap: 15px;
    }

    .menu-item {
        padding: 10px 6px;
    }

    .menu-icon {
        width: 64px;
        height: 45px;
        margin-bottom: 8px;
    }

    .menu-icon-box {
        width: 60px;
        height: 45px;
        margin-bottom: 8px;
    }

    .menu-icon-box svg {
        width: 22px;
        height: 22px;
    }

    .menu-label {
        font-size: 12px;
    }

    .menu-age {
        font-size: 10.5px;
    }

    .menu-divider {
        margin: 20px 0;
    }

    .profile-dropdown {
        top: 65px;
        border-radius: 12px;
    }

    .profile-section {
        padding: 16px 16px 14px;
    }

    .profile-avatar {
        width: 50px;
        height: 50px;
    }

    .profile-avatar svg {
        width: 40px;
        height: 40px;
    }

    .profile-header {
        gap: 10px;
    }

    .profile-title {
        font-size: 13px;
    }

    .profile-id {
        font-size: 10px;
        margin-bottom: 7px;
    }

    .profile-channel-btn {
        padding: 5px 12px;
        font-size: 10px;
    }

    .profile-menu-item {
        padding: 9px 16px;
        font-size: 12px;
        gap: 10px;
    }

    .profile-menu-item:hover {
        padding-left: 21px;
    }

    .profile-menu-item svg {
        width: 20px;
        height: 20px;
    }

    .profile-menu-title {
        padding: 8px 16px 4px;
        font-size: 11px;
    }

    .upload-modal-body {
        padding: 20px 25px 16px;
        padding-right: 23px;
        margin-right: 4px;
    }

    .upload-modal-footer {
        padding: 14px 25px;
    }

    .upload-form {
        gap: 18px;
    }

    .upload-form-label {
        font-size: 13px;
    }

    .upload-radio-group {
        gap: 10px;
    }

    .upload-radio-item {
        padding: 8px 14px;
        flex: 1;
        min-width: calc(50% - 5px);
        justify-content: center;
    }

    .upload-radio-item input[type="radio"] {
        width: 16px;
        height: 16px;
    }

    .upload-radio-label {
        font-size: 12px;
    }

    .upload-select,
    .upload-input {
        padding: 11px 15px;
        font-size: 13px;
    }

    .upload-select {
        padding-right: 40px;
        background-position: right 15px center;
    }

    .upload-textarea {
        padding: 11px 15px;
        font-size: 13px;
        min-height: 90px;
    }

    .upload-file-box {
        width: 60px;
        height: 60px;
    }

    .upload-file-box svg {
        width: 32px;
        height: 32px;
    }

    .upload-file-info {
        font-size: 10px;
    }

    .upload-form-actions {
        flex-direction: column;
        gap: 10px;
    }

    .btn-upload-submit,
    .btn-upload-cancel {
        max-width: 100%;
        padding: 12px 24px;
        font-size: 14px;
    }

    .chat-floating-panel {
        right: 15px;
        left: 15px;
        width: auto;
        bottom: 15px;
        max-height: 450px;
    }
}

@media (max-width: 360px) {

    .menu-modal-content {
        max-height: 95vh;
    }

    .menu-icon {
        width: 56px;
        height: 42px;
    }

    .menu-icon-box {
        width: 54px;
        height: 42px;
    }

    .menu-icon-box svg {
        width: 20px;
        height: 20px;
    }

    .menu-label {
        font-size: 11px;
    }

    .menu-age {
        font-size: 10px;
    }

    .category-modal-body {
        padding: 18px 20px 25px;
    }

    .image-upload-area {
        width: 80px;
        height: 80px;
    }

    .image-upload-label svg {
        width: 32px;
        height: 32px;
    }

    .profile-section {
        padding: 14px 14px 12px;
    }

    .profile-avatar {
        width: 48px;
        height: 48px;
    }

    .profile-avatar svg {
        width: 38px;
        height: 38px;
    }

    .profile-menu-item {
        padding: 8px 14px;
        font-size: 11px;
    }

    .profile-menu-item:hover {
        padding-left: 19px;
    }

    .upload-modal-body {
        padding: 18px 20px 14px;
        padding-right: 18px;
        margin-right: 3px;
    }

    .upload-modal-footer {
        padding: 12px 20px;
    }

    .upload-form {
        gap: 16px;
    }

    .upload-radio-item {
        padding: 7px 12px;
    }

    .upload-file-box {
        width: 55px;
        height: 55px;
    }

    .upload-file-box svg {
        width: 28px;
        height: 28px;
    }
}

/* ============ 업로드 모달 토글 ============ */
/* 업로드 모달 기본 숨김 */
.upload-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

/* 업로드 토글 체크 시 모달 표시 */
#upload-toggle:checked~.upload-modal {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    visibility: visible;
}

/* 업로드 모달 콘텐츠 애니메이션 */
.upload-modal-content {
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

#upload-toggle:checked~.upload-modal .upload-modal-content {
    transform: scale(1);
}

/* 업로드 모달이 열리면 다른 모달 숨기기 */
#upload-toggle:checked~.menu-modal {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
}

#upload-toggle:checked~.chat-floating-panel {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
}

/* ============ 로딩 상태 스타일 ============ */
.content-loading,
.content-loading-more {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px 20px;
    grid-column: 1 / -1;
}

.content-loading-more {
    padding: 30px 20px;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f0f0f0;
    border-top-color: #ff6c0f;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.content-loading-more .spinner {
    width: 32px;
    height: 32px;
    border-width: 3px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* 빈 상태 / 에러 상태 */
.empty-state,
.error-state {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 60px 20px;
    grid-column: 1 / -1;
    text-align: center;
}

.empty-state p,
.error-state p {
    font-size: 16px;
    color: #888;
    margin: 0;
}