/* ========================================
   마이페이지 스타일
   ----------------------------------------
   - 프로필 카드, 메뉴 그리드, 모달
======================================== */

/* 기본 설정 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-family-base, 'Pretendard', -apple-system, BlinkMacSystemFont, sans-serif);
    background: var(--bg-secondary, #f5f7fa);
    color: var(--text-primary, #1a1a2e);
    min-height: 100vh;
}

/* 마이페이지 컨테이너 */
.mypage-container {
    max-width: var(--container-lg, 1160px);
    margin: 0 auto;
    padding: var(--space-8, 32px) var(--space-6, 24px) var(--space-24, 120px);
}

/* 프로필 섹션 */
.profile-section {
    margin-bottom: var(--space-6, 24px);
}

.profile-card {
    background: var(--gradient-primary, linear-gradient(135deg, #667eea 0%, #764ba2 100%));
    border-radius: var(--radius-2xl, 20px);
    padding: var(--space-7, 28px) var(--space-6, 24px);
    display: flex;
    align-items: center;
    gap: var(--space-4, 16px);
    color: var(--text-inverse, #ffffff);
    box-shadow: var(--shadow-primary-lg, 0 10px 40px rgba(102, 126, 234, 0.3));
    position: relative;
    overflow: hidden;
}

.profile-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    pointer-events: none;
}

.profile-avatar {
    width: 72px;
    height: 72px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    flex-shrink: 0;
    backdrop-filter: blur(10px);
}

.profile-info {
    flex: 1;
    min-width: 0;
}

.profile-name {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 4px;
}

.profile-id {
    font-size: 14px;
    opacity: 0.85;
    margin-bottom: 4px;
}

.profile-type {
    display: inline-block;
    font-size: 12px;
    background: rgba(255, 255, 255, 0.2);
    padding: 4px 10px;
    border-radius: 12px;
    backdrop-filter: blur(10px);
}

.btn-edit-profile {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    color: #ffffff;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    backdrop-filter: blur(10px);
}

.btn-edit-profile:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* 메뉴 섹션 */
.menu-section {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.menu-group {
    background: #ffffff;
    border-radius: 18px;
    padding: 24px;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.05);
}

.menu-group-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f0f0f5;
}

.menu-group-title i {
    color: #667eea;
    font-size: 18px;
}

/* 메뉴 그리드 (카드형) */
.menu-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.menu-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 20px;
    background: #f8f9fc;
    border-radius: 16px;
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
    position: relative;
    /* button 태그용 리셋 */
    border: none;
    cursor: pointer;
    font-family: inherit;
    font-size: inherit;
    text-align: left;
    width: 100%;
}

.menu-card:hover {
    background: #f0f2f8;
    transform: translateY(-2px);
}

.menu-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
}

.icon-blue {
    background: linear-gradient(135deg, #e8f0fe 0%, #d4e4fc 100%);
    color: #4285f4;
}

.icon-orange {
    background: linear-gradient(135deg, #fff3e0 0%, #ffe0b2 100%);
    color: #ff9800;
}

.icon-green {
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
    color: #4caf50;
}

.icon-purple {
    background: linear-gradient(135deg, #f3e5f5 0%, #e1bee7 100%);
    color: #9c27b0;
}

.icon-teal {
    background: linear-gradient(135deg, #e0f7fa 0%, #b2ebf2 100%);
    color: #00bcd4;
}

.icon-red {
    background: linear-gradient(135deg, #ffebee 0%, #ffcdd2 100%);
    color: #f44336;
}

.icon-gray {
    background: linear-gradient(135deg, #f5f5f5 0%, #eeeeee 100%);
    color: #757575;
}

.menu-content {
    flex: 1;
    min-width: 0;
}

.menu-title {
    font-size: 15px;
    font-weight: 600;
    color: #1a1a2e;
    margin-bottom: 4px;
}

.menu-desc {
    font-size: 13px;
    color: #8c8c9a;
}

.menu-arrow {
    color: #c5c5d0;
    font-size: 12px;
    position: absolute;
    right: 20px;
    bottom: 20px;
}

/* 메뉴 리스트 (목록형) */
.menu-list {
    display: flex;
    flex-direction: column;
}

.menu-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 4px;
    text-decoration: none;
    color: inherit;
    border-bottom: 1px solid #f5f5f8;
    transition: background 0.15s ease;
}

.menu-item:last-child {
    border-bottom: none;
}

.menu-item:hover {
    background: #fafbfc;
}

.menu-icon-sm {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    flex-shrink: 0;
}

.menu-item-title {
    flex: 1;
    font-size: 15px;
    font-weight: 500;
    color: #1a1a2e;
}

.menu-item i.fa-chevron-right {
    color: #c5c5d0;
    font-size: 12px;
}

.menu-item-danger .menu-item-title {
    color: #f44336;
}

/* 푸터 */
.mypage-footer {
    margin-top: 40px;
    text-align: center;
    padding: 24px 0;
}

.app-version {
    font-size: 12px;
    color: #8c8c9a;
    margin-bottom: 12px;
}

.terms-section {
    margin-bottom: 16px;
}

.terms-title {
    font-size: 14px;
    font-weight: 600;
    color: #1a1a2e;
    margin-bottom: 12px;
}

.terms-chip-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.terms-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 999px;
    background: #f4f6fb;
    border: 1px solid #e0e6f5;
    font-size: 12px;
    color: #4a4a68;
}

.terms-name {
    font-weight: 600;
}

.terms-version {
    color: #667eea;
    font-weight: 600;
}

.terms-required {
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 999px;
    font-weight: 600;
}

.terms-required.required {
    background: #fee2e2;
    color: #c62828;
}

.terms-required.optional {
    background: #e1f5fe;
    color: #0277bd;
}

.terms-divider {
    color: #c0c6d8;
}

.terms-empty {
    font-size: 13px;
    color: #888;
}

.footer-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

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

.footer-links a:hover {
    text-decoration: underline;
}

.footer-links .divider {
    color: #ddd;
    font-size: 12px;
}

.copyright {
    font-size: 12px;
    color: #aaa;
}

/* ============================================================
   모달 스타일 - CSS 변수 적용
   ============================================================ */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg-overlay, rgba(0, 0, 0, 0.5));
    backdrop-filter: blur(4px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: var(--z-modal-backdrop, 1000);
    padding: var(--space-5, 20px);
}

.modal-overlay.active {
    display: flex;
}

.modal {
    background: var(--bg-primary, #ffffff);
    border-radius: var(--radius-2xl, 20px);
    width: 100%;
    max-width: 400px;
    overflow: hidden;
    box-shadow: var(--shadow-2xl, 0 20px 60px rgba(0, 0, 0, 0.2));
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-5, 20px) var(--space-6, 24px);
    border-bottom: 1px solid var(--border-light, #f0f0f5);
}

.modal-header h3 {
    font-size: var(--font-size-lg, 18px);
    font-weight: var(--font-weight-bold, 700);
    color: var(--text-primary, #1a1a2e);
    margin: 0;
}

.modal-close {
    width: 36px;
    height: 36px;
    border: none;
    background: var(--color-gray-100, #f5f5f8);
    border-radius: var(--radius-md, 8px);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-tertiary, #666);
    transition: all var(--transition-fast, 0.15s ease);
}

.modal-close:hover {
    background: var(--color-gray-200, #eee);
    color: var(--text-primary, #333);
}

.modal-body {
    padding: var(--space-6, 24px);
    text-align: center;
}

.warning-icon {
    width: 64px;
    height: 64px;
    background: #fff3e0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 28px;
    color: #ff9800;
}

.warning-text {
    font-size: 15px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 24px;
}

.form-group {
    text-align: left;
}

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #666;
    margin-bottom: 8px;
}

.form-select {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #e0e0e5;
    border-radius: 10px;
    font-size: 14px;
    background: #f8f9fc;
    cursor: pointer;
    transition: all 0.2s ease;
}

.form-select:focus {
    outline: none;
    border-color: #667eea;
    background: #ffffff;
}

.modal-footer {
    display: flex;
    gap: 12px;
    padding: 16px 24px 24px;
}

.btn {
    flex: 1;
    padding: 14px 20px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.2s ease;
}

.btn-secondary {
    background: #f5f5f8;
    color: #666;
}

.btn-secondary:hover {
    background: #eee;
}

.btn-danger {
    background: linear-gradient(135deg, #f44336 0%, #d32f2f 100%);
    color: #ffffff;
}

.btn-danger:hover {
    background: linear-gradient(135deg, #e53935 0%, #c62828 100%);
    box-shadow: 0 4px 12px rgba(244, 67, 54, 0.3);
}

/* 반응형 */
@media (max-width: 1024px) {
    .mypage-container {
        padding: 24px 20px 100px;
    }

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

    .menu-card {
        padding: 18px;
    }

    .menu-icon {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
}

@media (max-width: 600px) {
    .mypage-container {
        padding: 16px 12px 80px;
    }

    .profile-card {
        flex-direction: column;
        text-align: center;
        padding: 24px 20px;
    }

    .profile-info {
        width: 100%;
    }

    .btn-edit-profile {
        width: 100%;
        justify-content: center;
    }

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

    .menu-card {
        padding: 14px;
    }

    .menu-icon {
        width: 44px;
        height: 44px;
        font-size: 18px;
    }
}

/* 로딩 상태 */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* 스켈레톤 로딩 */
.skeleton {
    background: linear-gradient(90deg, #f0f0f5 25%, #e8e8ed 50%, #f0f0f5 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
    border-radius: 4px;
}

@keyframes skeleton-loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* ========================================
   내 정보 수정 모달 스타일
======================================== */

/* 모달 lg 크기 */
.modal.modal-lg {
    max-width: 560px;
}

.modal.modal-lg .modal-body {
    max-height: 70vh;
    overflow-y: auto;
}

/* ============================================================
   전체화면 모달 스타일 (modal-fullscreen)
   ============================================================ */
.modal-overlay.modal-fullscreen {
    padding: 0;
    background: var(--bg-primary, #ffffff);
}

.modal-overlay.modal-fullscreen .modal {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    border-radius: 0;
    display: flex;
    flex-direction: column;
}

.modal-overlay.modal-fullscreen .modal-header {
    flex-shrink: 0;
    padding: var(--space-4, 16px) var(--space-5, 20px);
    background: var(--bg-primary, #ffffff);
    border-bottom: 1px solid var(--border-default, #e0e0e5);
    position: sticky;
    top: 0;
    z-index: 10;
}

.modal-overlay.modal-fullscreen .modal-header h3 {
    font-size: var(--font-size-lg, 18px);
    font-weight: var(--font-weight-bold, 700);
    color: var(--text-primary, #1a1a2e);
}

.modal-overlay.modal-fullscreen .modal-body {
    flex: 1;
    overflow-y: auto;
    padding: var(--space-5, 20px);
    text-align: left;
    background: var(--bg-secondary, #f8f9fa);
}

.modal-overlay.modal-fullscreen .modal-footer {
    flex-shrink: 0;
    padding: var(--space-4, 16px) var(--space-5, 20px);
    background: var(--bg-primary, #ffffff);
    border-top: 1px solid var(--border-default, #e0e0e5);
    position: sticky;
    bottom: 0;
}

/* 프로필 사진 섹션 */
.profile-photo-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 24px 0;
    margin-bottom: 24px;
    border-bottom: 1px solid #f0f0f5;
}

.profile-photo-wrapper {
    position: relative;
    margin-bottom: 12px;
}

.profile-photo {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    color: #ffffff;
    overflow: hidden;
}

.profile-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.btn-photo-edit {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 32px;
    height: 32px;
    background: #ffffff;
    border: 2px solid #f0f0f5;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #667eea;
    font-size: 14px;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.btn-photo-edit:hover {
    background: #667eea;
    color: #ffffff;
    border-color: #667eea;
}

.photo-hint {
    font-size: 13px;
    color: #8c8c9a;
}

/* 수정 폼 섹션 */
.edit-form-section {
    margin-bottom: 28px;
}

.edit-form-section:last-child {
    margin-bottom: 0;
}

.edit-section-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 1px solid #f0f0f5;
}

.edit-section-title i {
    color: #667eea;
}

.optional-badge {
    font-size: 11px;
    font-weight: 500;
    background: #e8f0fe;
    color: #4285f4;
    padding: 2px 8px;
    border-radius: 10px;
    margin-left: auto;
}

.section-desc {
    font-size: 13px;
    color: #8c8c9a;
    margin-bottom: 16px;
}

/* 폼 그룹 */
.form-group {
    margin-bottom: 18px;
}

.form-group:last-child {
    margin-bottom: 0;
}

.form-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.form-label .required {
    color: #f44336;
    margin-left: 2px;
}

.form-input,
.form-select {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #e0e0e5;
    border-radius: 10px;
    font-size: 14px;
    background: #f8f9fc;
    transition: all 0.2s ease;
}

.form-input:focus,
.form-select:focus {
    outline: none;
    border-color: #667eea;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-input:disabled,
.form-input[readonly] {
    background: #e9ecef;
    color: #6c757d;
    cursor: not-allowed;
}

.input-hint {
    font-size: 12px;
    color: #8c8c9a;
    margin-top: 6px;
}

/* 입력 + 버튼 조합 */
.input-with-button {
    display: flex;
    gap: 8px;
}

.input-with-button .form-input {
    flex: 1;
}

.btn-check {
    flex-shrink: 0;
    padding: 12px 16px;
    background: #667eea;
    color: #ffffff;
    border: none;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.btn-check:hover {
    background: #5a6fd6;
}

.btn-check:disabled {
    background: #c0c0c0;
    cursor: not-allowed;
}

/* 검증 상태 메시지 */
.verify-status {
    font-size: 12px;
    margin-top: 6px;
    min-height: 16px;
}

.verify-status.success {
    color: #4caf50;
}

.verify-status.error {
    color: #f44336;
}

/* 주소 행 */
.address-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

/* 비밀번호 입력 래퍼 */
.password-input-wrapper {
    position: relative;
}

.password-input-wrapper .form-input {
    padding-right: 44px;
}

.password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: #8c8c9a;
    padding: 4px;
    font-size: 16px;
    transition: color 0.2s ease;
}

.password-toggle:hover {
    color: #667eea;
}

/* 버튼 primary */
.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #5a6fd6 0%, #6a4190 100%);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* ============================================================
   사업자 정보 섹션 스타일
   ============================================================ */

/* 사업자 정보 섹션 */
.business-section,
.service-region-section {
    border-top: 1px solid #e9ecef;
    padding-top: 16px;
    margin-top: 8px;
}

/* 인증 상태 배지 */
.verify-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
}

.verify-badge.pending {
    background: #fff3e0;
    color: #ff9800;
}

.verify-badge.verified {
    background: #e8f5e9;
    color: #4caf50;
}

.verify-badge i {
    font-size: 14px;
}

/* 서비스 지역 목록 */
.service-region-list {
    margin-top: 12px;
}

.region-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.region-tag {
    display: inline-block;
    padding: 6px 12px;
    background: #e8f0fe;
    color: #4285f4;
    border-radius: 16px;
    font-size: 13px;
    font-weight: 500;
}

.no-region-text {
    font-size: 13px;
    color: #8c8c9a;
    text-align: center;
    padding: 16px;
}

/* mt-8 유틸리티 */
.mt-8 {
    margin-top: 8px;
}

/* 모달 반응형 */
@media (max-width: 600px) {
    .modal.modal-lg {
        max-width: 100%;
        margin: 0;
        border-radius: 16px 16px 0 0;
        max-height: 90vh;
    }

    .modal.modal-lg .modal-body {
        max-height: calc(90vh - 140px);
    }

    .profile-photo {
        width: 80px;
        height: 80px;
        font-size: 32px;
    }

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

/* ========================================
   고객센터 모달 스타일 (공지사항, FAQ, 1:1 문의)
   CSS 변수 적용
======================================== */

/* 모달 바디 */
.cs-modal-body {
    padding: 0 !important;
    text-align: left;
}

/* 리스트 컨테이너 */
.cs-list-container {
    max-height: 60vh;
    overflow-y: auto;
}

/* 로딩 표시 */
.cs-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: var(--space-16, 60px) var(--space-5, 20px);
    color: var(--text-tertiary, #8c8c9a);
    gap: var(--space-3, 12px);
}

.cs-loading i {
    font-size: var(--font-size-2xl, 24px);
    color: var(--color-primary, #667eea);
}

/* 빈 상태 */
.cs-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: var(--space-16, 60px) var(--space-5, 20px);
    color: var(--text-tertiary, #8c8c9a);
    gap: var(--space-3, 12px);
}

.cs-empty i {
    font-size: var(--font-size-4xl, 40px);
    opacity: 0.5;
}

.cs-empty span {
    font-size: var(--font-size-sm, 14px);
}

/* 리스트 아이템 */
.cs-list-item {
    padding: var(--space-4, 16px) var(--space-6, 24px);
    border-bottom: 1px solid var(--border-light, #f0f0f5);
    cursor: pointer;
    transition: background var(--transition-fast, 0.15s ease);
}

.cs-list-item:last-child {
    border-bottom: none;
}

.cs-list-item:hover {
    background: var(--bg-tertiary, #f8f9fc);
}

.cs-list-item-header {
    display: flex;
    align-items: center;
    gap: var(--space-3, 10px);
    margin-bottom: var(--space-2, 6px);
}

.cs-list-item-title {
    font-size: var(--font-size-md, 15px);
    font-weight: var(--font-weight-semibold, 600);
    color: var(--text-primary, #1a1a2e);
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cs-list-item-date {
    font-size: var(--font-size-xs, 12px);
    color: var(--text-tertiary, #8c8c9a);
    flex-shrink: 0;
}

.cs-list-item-preview {
    font-size: var(--font-size-sm, 13px);
    color: var(--text-secondary, #666);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* 상단 고정 배지 */
.cs-pinned-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-1, 4px);
    font-size: var(--font-size-2xs, 11px);
    font-weight: var(--font-weight-semibold, 600);
    background: var(--color-warning, #ff9800);
    color: var(--text-inverse, #fff);
    padding: 2px var(--space-2, 8px);
    border-radius: var(--radius-md, 10px);
    flex-shrink: 0;
}

/* 상태 배지 */
.cs-status-badge {
    display: inline-flex;
    align-items: center;
    font-size: var(--font-size-2xs, 11px);
    font-weight: var(--font-weight-semibold, 600);
    padding: 3px var(--space-3, 10px);
    border-radius: var(--radius-md, 10px);
    flex-shrink: 0;
}

.cs-status-badge.pending {
    background: var(--color-warning-50, #fff3e0);
    color: var(--color-warning, #ff9800);
}

.cs-status-badge.answered {
    background: var(--color-success-50, #e8f5e9);
    color: var(--color-success, #4caf50);
}

.cs-status-badge.closed {
    background: var(--color-gray-100, #f5f5f5);
    color: var(--text-tertiary, #757575);
}

/* 카테고리 배지 */
.cs-category-badge {
    display: inline-flex;
    align-items: center;
    font-size: var(--font-size-2xs, 11px);
    font-weight: var(--font-weight-medium, 500);
    padding: 2px var(--space-2, 8px);
    border-radius: var(--radius-sm, 8px);
    background: var(--color-primary-50, #e8f0fe);
    color: var(--color-primary, #667eea);
    flex-shrink: 0;
}

/* FAQ 아코디언 스타일 */
.faq-item {
    border-bottom: 1px solid var(--border-light, #f0f0f5);
}

.faq-item:last-child {
    border-bottom: none;
}

.faq-question {
    display: flex;
    align-items: center;
    gap: var(--space-3, 12px);
    padding: var(--space-5, 18px) var(--space-6, 24px);
    cursor: pointer;
    transition: background var(--transition-fast, 0.15s ease);
}

.faq-question:hover {
    background: var(--bg-tertiary, #f8f9fc);
}

.faq-question-icon {
    width: 28px;
    height: 28px;
    background: var(--gradient-primary, linear-gradient(135deg, #667eea 0%, #764ba2 100%));
    border-radius: var(--radius-sm, 8px);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-inverse, #fff);
    font-size: var(--font-size-xs, 12px);
    font-weight: var(--font-weight-bold, 700);
    flex-shrink: 0;
}

.faq-question-text {
    flex: 1;
    font-size: var(--font-size-md, 15px);
    font-weight: var(--font-weight-semibold, 600);
    color: var(--text-primary, #1a1a2e);
}

.faq-toggle-icon {
    color: var(--text-tertiary, #8c8c9a);
    font-size: var(--font-size-sm, 14px);
    transition: transform var(--transition-fast, 0.2s ease);
}

.faq-item.active .faq-toggle-icon {
    transform: rotate(180deg);
}

.faq-answer {
    display: none;
    padding: 0 var(--space-6, 24px) var(--space-5, 20px) 64px;
}

.faq-item.active .faq-answer {
    display: block;
}

.faq-answer-content {
    font-size: var(--font-size-sm, 14px);
    color: var(--text-secondary, #666);
    line-height: var(--line-height-relaxed, 1.7);
    background: var(--bg-tertiary, #f8f9fc);
    padding: var(--space-4, 16px);
    border-radius: var(--radius-lg, 12px);
}

/* 상세 뷰 */
.cs-detail-view {
    padding: 0;
}

.cs-detail-header {
    padding: 16px 24px;
    border-bottom: 1px solid #f0f0f5;
}

.cs-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: #f5f5f8;
    border: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    color: #666;
    cursor: pointer;
    transition: all 0.2s ease;
}

.cs-back-btn:hover {
    background: #eee;
    color: #333;
}

.cs-detail-content {
    padding: var(--space-6, 24px);
    max-height: 55vh;
    overflow-y: auto;
}

.cs-detail-title {
    font-size: var(--font-size-lg, 18px);
    font-weight: var(--font-weight-bold, 700);
    color: var(--text-primary, #1a1a2e);
    margin-bottom: var(--space-3, 12px);
}

.cs-detail-meta {
    display: flex;
    align-items: center;
    gap: var(--space-3, 12px);
    font-size: var(--font-size-sm, 13px);
    color: var(--text-tertiary, #8c8c9a);
    margin-bottom: var(--space-5, 20px);
    padding-bottom: var(--space-4, 16px);
    border-bottom: 1px solid var(--border-light, #f0f0f5);
    flex-wrap: wrap;
}

.cs-detail-body {
    font-size: var(--font-size-md, 15px);
    color: var(--text-primary, #333);
    line-height: var(--line-height-loose, 1.8);
}

.cs-detail-body img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-sm, 8px);
}

/* 답변 영역 */
.cs-answer-section {
    margin-top: var(--space-6, 24px);
    padding-top: var(--space-5, 20px);
    border-top: 2px solid var(--color-primary, #667eea);
}

.cs-answer-header {
    display: flex;
    align-items: center;
    gap: var(--space-2, 8px);
    font-size: var(--font-size-sm, 14px);
    font-weight: var(--font-weight-semibold, 600);
    color: var(--color-primary, #667eea);
    margin-bottom: var(--space-3, 12px);
}

.cs-answer-body {
    font-size: var(--font-size-sm, 14px);
    color: var(--text-primary, #333);
    line-height: var(--line-height-relaxed, 1.7);
    background: var(--bg-tertiary, #f8f9fc);
    padding: var(--space-4, 16px);
    border-radius: var(--radius-lg, 12px);
}

.cs-answer-meta {
    font-size: var(--font-size-xs, 12px);
    color: var(--text-tertiary, #8c8c9a);
    margin-top: var(--space-3, 12px);
    text-align: right;
}

/* 액션 바 */
.cs-action-bar {
    padding: 16px 24px;
    border-bottom: 1px solid #f0f0f5;
    display: flex;
    justify-content: flex-end;
}

.btn-sm {
    padding: 10px 16px;
    font-size: 13px;
}

/* 폼 스타일 */
#inquiryFormView .form-group {
    padding: 0 24px;
    margin-bottom: 20px;
}

#inquiryFormView .form-group:first-of-type {
    padding-top: 20px;
}

.form-textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #e0e0e5;
    border-radius: 10px;
    font-size: 14px;
    font-family: inherit;
    background: #f8f9fc;
    resize: vertical;
    min-height: 120px;
    transition: all 0.2s ease;
}

.form-textarea:focus {
    outline: none;
    border-color: #667eea;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* 문의 삭제 버튼 */
.cs-delete-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 12px;
    background: #ffebee;
    border: none;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    color: #f44336;
    cursor: pointer;
    transition: all 0.2s ease;
}

.cs-delete-btn:hover {
    background: #ffcdd2;
}

/* 반응형 */
@media (max-width: 600px) {
    .cs-list-item {
        padding: 14px 16px;
    }

    .cs-detail-content {
        padding: 16px;
    }

    .faq-question {
        padding: 14px 16px;
    }

    .faq-answer {
        padding: 0 16px 16px 50px;
    }

    .cs-action-bar {
        padding: 12px 16px;
    }

    #inquiryFormView .form-group {
        padding: 0 16px;
    }
}

/* ============================================================
   쿠폰/수신권 구매 모달 스타일 - CSS 변수 적용
   ============================================================ */

/* 쿠폰 구매 모달 컨테이너 */
#couponPurchaseModal .modal-container {
    background: var(--bg-primary, #ffffff);
    border-radius: var(--radius-2xl, 20px);
    width: 100%;
    max-width: 420px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-2xl, 0 20px 60px rgba(0, 0, 0, 0.2));
    overflow: hidden;
}

#couponPurchaseModal .modal-container.modal-md {
    max-width: 420px;
}

#couponPurchaseModal .modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-5, 18px) var(--space-5, 20px);
    border-bottom: 1px solid var(--border-light, #f0f0f5);
    background: var(--bg-primary, #ffffff);
    flex-shrink: 0;
}

#couponPurchaseModal .modal-title {
    font-size: var(--font-size-lg, 17px);
    font-weight: var(--font-weight-bold, 700);
    color: var(--text-primary, #1a1a2e);
    margin: 0;
}

#couponPurchaseModal .btn-close-modal {
    width: 36px;
    height: 36px;
    border: none;
    background: var(--color-gray-100, #f5f5f8);
    border-radius: var(--radius-md, 10px);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-tertiary, #666);
    transition: all var(--transition-fast, 0.2s ease);
}

#couponPurchaseModal .btn-close-modal:hover {
    background: var(--color-gray-200, #e0e0e5);
    color: var(--text-primary, #333);
}

#couponPurchaseModal .modal-body {
    padding: var(--space-5, 20px);
    overflow-y: auto;
    flex: 1;
    background: var(--bg-primary, #ffffff);
}

#couponPurchaseModal .modal-footer {
    display: flex;
    gap: var(--space-3, 10px);
    padding: var(--space-4, 16px) var(--space-5, 20px);
    border-top: 1px solid var(--border-light, #f0f0f5);
    background: var(--bg-primary, #ffffff);
    flex-shrink: 0;
}

#couponPurchaseModal .modal-footer .btn {
    flex: 1;
    padding: var(--space-4, 14px) var(--space-4, 16px);
    border-radius: var(--radius-lg, 12px);
    font-size: var(--font-size-md, 15px);
    font-weight: var(--font-weight-semibold, 600);
    cursor: pointer;
    transition: all var(--transition-fast, 0.2s ease);
}

#couponPurchaseModal .modal-footer .btn-secondary {
    background: var(--color-gray-100, #f5f5f8);
    border: none;
    color: var(--text-secondary, #666);
}

#couponPurchaseModal .modal-footer .btn-secondary:hover {
    background: var(--color-gray-200, #e8e8ec);
}

#couponPurchaseModal .modal-footer .btn-primary {
    background: var(--gradient-primary, linear-gradient(135deg, #667eea 0%, #764ba2 100%));
    border: none;
    color: var(--text-inverse, #ffffff);
}

#couponPurchaseModal .modal-footer .btn-primary:hover {
    box-shadow: var(--shadow-primary, 0 4px 15px rgba(102, 126, 234, 0.4));
}

#couponPurchaseModal .modal-footer .btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* 쿠폰 정보 카드 */
.purchase-coupon-card {
    display: flex;
    align-items: flex-start;
    gap: var(--space-4, 16px);
    background: var(--gradient-primary, linear-gradient(135deg, #667eea 0%, #764ba2 100%));
    border-radius: var(--radius-xl, 16px);
    padding: var(--space-5, 20px);
    color: var(--text-inverse, #ffffff);
    margin-bottom: var(--space-4, 16px);
}

.coupon-card-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-lg, 12px);
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
}

.coupon-card-icon.icon-orange {
    background: rgba(255, 152, 0, 0.3);
}

.coupon-card-icon.icon-purple {
    background: rgba(156, 39, 176, 0.3);
}

.coupon-card-info {
    flex: 1;
}

.coupon-card-name {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 4px;
}

.coupon-card-desc {
    font-size: 12px;
    opacity: 0.85;
    margin-bottom: 8px;
}

.coupon-card-price {
    font-size: 20px;
    font-weight: 700;
}

/* 보유 현황 카드 */
.purchase-status-card {
    background: #f8f9fc;
    border-radius: 12px;
    padding: 14px 16px;
    margin-bottom: 16px;
}

.status-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.status-row .status-label {
    font-size: 14px;
    color: #666;
}

.status-row .status-value {
    font-size: 15px;
    font-weight: 600;
    color: #333;
}

.status-row .status-value.active {
    color: #4caf50;
}

/* 수량 선택 */
.quantity-selector {
    display: flex;
    align-items: center;
    gap: 12px;
}

.qty-btn {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    border: 1px solid #e0e0e5;
    background: #f8f9fc;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: #667eea;
    cursor: pointer;
    transition: all 0.2s ease;
}

.qty-btn:hover {
    background: #667eea;
    border-color: #667eea;
    color: #ffffff;
}

.qty-input {
    width: 70px;
    height: 40px;
    text-align: center;
    font-size: 16px;
    font-weight: 600;
    border: 1px solid #e0e0e5;
    border-radius: 10px;
    background: #ffffff;
}

/* 결제 금액 */
.purchase-total-amount {
    display: flex;
    align-items: baseline;
    gap: 4px;
    padding: 14px 16px;
    background: #fff3e0;
    border-radius: 10px;
    font-size: 22px;
    font-weight: 700;
    color: #e65100;
}

/* 입금 안내 */
.deposit-info-box {
    background: #e3f2fd;
    border-radius: 10px;
    padding: 14px;
    margin-top: 16px;
}

.deposit-info-title {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: #1565c0;
    margin-bottom: 10px;
}

.deposit-account-box {
    background: #ffffff;
    border-radius: 8px;
    padding: 10px;
    text-align: center;
    margin-bottom: 10px;
}

.deposit-account-box .bank-name {
    font-size: 12px;
    color: #666;
    margin-bottom: 2px;
}

.deposit-account-box .account-number {
    font-size: 16px;
    font-weight: 700;
    color: #1565c0;
    margin-bottom: 2px;
}

.deposit-account-box .account-holder {
    font-size: 12px;
    color: #666;
}

.deposit-notice-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.deposit-notice-list li {
    font-size: 11px;
    color: #1565c0;
    padding-left: 12px;
    position: relative;
    margin-bottom: 3px;
}

.deposit-notice-list li::before {
    content: '•';
    position: absolute;
    left: 2px;
}

/* 구매 내역 */
.purchase-history-section {
    margin-top: 20px;
    border-top: 1px solid #e9ecef;
    padding-top: 16px;
}

.purchase-history-title {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 12px;
}

.purchase-history-list {
    max-height: 200px;
    overflow-y: auto;
}

.purchase-history-item {
    background: #f8f9fc;
    border-radius: 10px;
    padding: 12px;
    margin-bottom: 8px;
}

.history-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}

.history-item-date {
    font-size: 12px;
    color: #888;
}

.history-item-status {
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
}

.history-item-status.pending {
    background: #fff3e0;
    color: #e65100;
}

.history-item-status.confirmed {
    background: #e8f5e9;
    color: #2e7d32;
}

.history-item-status.canceled {
    background: #ffebee;
    color: #c62828;
}

.history-item-body {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.history-item-info {
    font-size: 13px;
    color: #333;
}

.history-item-amount {
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

.empty-history {
    text-align: center;
    padding: 24px;
    color: #888;
}

.empty-history i {
    font-size: 32px;
    margin-bottom: 8px;
    opacity: 0.5;
}

.empty-history p {
    font-size: 13px;
}

/* 버튼 스타일이 menu-item에도 적용되도록 */
button.menu-item {
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    cursor: pointer;
}

/* ============================================================
   서비스 지역 추가/삭제 스타일
   ============================================================ */

/* 지역 추가 폼 */
.region-add-form {
    margin-bottom: 16px;
}

.region-input-group {
    display: flex;
    gap: 12px;
    margin-bottom: 12px;
}

.region-field {
    flex: 1;
    min-width: 0;
}

.region-field .form-input,
.region-field .form-select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #e0e0e5;
    border-radius: 10px;
    font-size: 14px;
    background: #f8f9fc;
}

.region-field .form-input:focus,
.region-field .form-select:focus {
    outline: none;
    border-color: #667eea;
    background: #ffffff;
}

.region-field .form-input:disabled,
.region-field .form-select:disabled {
    background: #f0f0f5;
    color: #999;
    cursor: not-allowed;
}

.region-field .mt-8 {
    margin-top: 8px;
}

/* autocomplete 드롭다운 */
.autocomplete-wrapper {
    position: relative;
}

.autocomplete-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #ffffff;
    border: 1px solid #e0e0e5;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    max-height: 200px;
    overflow-y: auto;
    z-index: 100;
    display: none;
}

.autocomplete-dropdown.active {
    display: block;
}

.autocomplete-item {
    display: block;
    width: 100%;
    padding: 10px 12px;
    text-align: left;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 14px;
    color: #333;
    transition: background 0.15s ease;
}

.autocomplete-item:hover {
    background: #f0f4ff;
}

.btn-add-region {
    width: 100%;
    padding: 12px 16px;
    border-radius: 10px;
    background: #667eea;
    color: #ffffff;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-add-region:hover {
    background: #5a6fd6;
}

/* 지역 태그 */
.region-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.region-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    background: #f0f4ff;
    border-radius: 20px;
    font-size: 13px;
    color: #4a5568;
}

.region-tag.editable {
    padding-right: 8px;
}

.btn-remove-region {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.1);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 10px;
    color: #666;
    transition: all 0.2s ease;
}

.btn-remove-region:hover {
    background: #f44336;
    color: #ffffff;
}

.no-region-text {
    font-size: 13px;
    color: #888;
    margin: 0;
}

/* 반응형 */
@media (max-width: 480px) {
    .region-select-row {
        flex-wrap: wrap;
    }

    .region-select {
        flex: 1 1 calc(50% - 24px);
        min-width: 100px;
    }
}

/* ============================================================
   신차 구매문의 내역 모달 스타일
   ============================================================ */
.inquiry-list-container {
    min-height: 200px;
}

/* 신차 문의 카드 리스트 - 반응형 그리드 (1열 → 2열 → 3열 → 4열) */
.inquiry-cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-4, 16px);
}

@media (min-width: 540px) {
    .inquiry-cards {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-4, 16px);
    }
}

@media (min-width: 900px) {
    .inquiry-cards {
        grid-template-columns: repeat(3, 1fr);
        gap: var(--space-4, 16px);
    }
}

@media (min-width: 1280px) {
    .inquiry-cards {
        grid-template-columns: repeat(4, 1fr);
        gap: var(--space-5, 20px);
    }
}

.inquiry-card {
    background: var(--bg-primary, #ffffff);
    border: 1px solid var(--border-light, #e0e0e5);
    border-radius: var(--radius-xl, 16px);
    overflow: hidden;
    box-shadow: var(--shadow-sm, 0 2px 8px rgba(0, 0, 0, 0.04));
    transition: all var(--transition-fast, 0.2s);
}

.inquiry-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg, 0 8px 24px rgba(0, 0, 0, 0.12));
    border-color: var(--color-primary-200, #c7d2fe);
}

.inquiry-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-3, 12px) var(--space-4, 16px);
    background: var(--bg-secondary, #f8f9fa);
    border-bottom: 1px solid var(--border-light, #e0e0e5);
}

.inquiry-status {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.inquiry-status.status-pending {
    background: #fff3e0;
    color: #e65100;
}

.inquiry-status.status-contacted {
    background: #e3f2fd;
    color: #1565c0;
}

.inquiry-status.status-completed {
    background: #e8f5e9;
    color: #2e7d32;
}

.inquiry-status.status-cancelled {
    background: #fce4ec;
    color: #c62828;
}

.inquiry-date {
    font-size: 12px;
    color: #888;
}

.inquiry-card-body {
    padding: 16px;
}

.inquiry-vehicle-name {
    font-size: 16px;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0 0 8px 0;
}

.inquiry-trim {
    font-size: 14px;
    color: #666;
    margin: 0 0 8px 0;
}

.inquiry-memo {
    font-size: 13px;
    color: #555;
    margin: 0;
    line-height: 1.5;
    background: #f8f9fa;
    padding: 10px 12px;
    border-radius: 8px;
}

.inquiry-card-footer {
    padding: 12px 16px;
    background: #f0f4ff;
    border-top: 1px solid #e0e0e5;
}

.admin-response {
    font-size: 13px;
    color: #4a5568;
    margin: 0;
    line-height: 1.5;
}

.admin-response i {
    color: #667eea;
    margin-right: 6px;
}

/* 빈 상태 및 로딩 */
.cs-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    text-align: center;
}

.cs-empty i {
    font-size: 48px;
    color: #ccc;
    margin-bottom: 16px;
}

.cs-empty p {
    font-size: 14px;
    color: #888;
    margin: 0;
}

/* ============================================================
   경매 등록내역 모달 스타일
   ============================================================ */
.auction-list-container {
    min-height: 200px;
}

/* 경매 카드 리스트 - 반응형 그리드 (1열 → 2열 → 3열 → 4열) */
.auction-cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-4, 16px);
}

@media (min-width: 540px) {
    .auction-cards {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-4, 16px);
    }
}

@media (min-width: 900px) {
    .auction-cards {
        grid-template-columns: repeat(3, 1fr);
        gap: var(--space-4, 16px);
    }
}

@media (min-width: 1280px) {
    .auction-cards {
        grid-template-columns: repeat(4, 1fr);
        gap: var(--space-5, 20px);
    }
}

.auction-card {
    background: var(--bg-primary, #ffffff);
    border: 1px solid var(--border-light, #e0e0e5);
    border-radius: var(--radius-xl, 16px);
    overflow: hidden;
    box-shadow: var(--shadow-sm, 0 2px 8px rgba(0, 0, 0, 0.04));
    transition: all var(--transition-fast, 0.2s);
}

.auction-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg, 0 8px 24px rgba(0, 0, 0, 0.12));
    border-color: var(--color-primary-200, #c7d2fe);
}

.auction-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: #f8f9fa;
    border-bottom: 1px solid #e0e0e5;
}

.auction-status {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.auction-status.status-draft {
    background: #f5f5f5;
    color: #666;
}

.auction-status.status-active {
    background: #e8f5e9;
    color: #2e7d32;
}

.auction-status.status-expired {
    background: #fce4ec;
    color: #c62828;
}

.auction-status.status-sold {
    background: #e3f2fd;
    color: #1565c0;
}

.auction-date {
    font-size: 12px;
    color: #888;
}

.auction-card-body {
    padding: 16px;
}

.auction-vehicle-name {
    font-size: 16px;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0 0 10px 0;
}

.auction-info-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 8px;
}

.auction-info-item {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    color: #666;
}

.auction-info-item i {
    color: #888;
    font-size: 12px;
}

.auction-car-number {
    font-size: 13px;
    color: #555;
    margin: 8px 0 0 0;
}

.auction-car-number i {
    color: #667eea;
    margin-right: 4px;
}

.auction-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: #f8f9fa;
    border-top: 1px solid #e0e0e5;
    font-size: 12px;
    color: #666;
}

.auction-exposure {
    color: #667eea;
    font-weight: 500;
}

.auction-end-date {
    color: #888;
}

/* ============================================================
   일반 등록내역 모달 스타일
   ============================================================ */
.normal-list-container {
    min-height: 200px;
}

.normal-cards {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.normal-card {
    background: #ffffff;
    border: 1px solid #e0e0e5;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.normal-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: #f8f9fa;
    border-bottom: 1px solid #e0e0e5;
}

.normal-status {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.normal-status.status-draft {
    background: #f5f5f5;
    color: #666;
}

.normal-status.status-active {
    background: #e8f5e9;
    color: #2e7d32;
}

.normal-status.status-expired {
    background: #fce4ec;
    color: #c62828;
}

.normal-status.status-sold {
    background: #e3f2fd;
    color: #1565c0;
}

.normal-date {
    font-size: 12px;
    color: #888;
}

.normal-card-body {
    padding: 16px;
}

.normal-vehicle-name {
    font-size: 16px;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0 0 10px 0;
}

.normal-info-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 8px;
}

.normal-info-item {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    color: #666;
}

.normal-info-item i {
    color: #888;
    font-size: 12px;
}

.normal-car-number {
    font-size: 13px;
    color: #555;
    margin: 8px 0 0 0;
}

.normal-car-number i {
    color: #667eea;
    margin-right: 4px;
}

.normal-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: #f8f9fa;
    border-top: 1px solid #e0e0e5;
    font-size: 12px;
    color: #666;
}

.normal-price {
    color: #e65100;
    font-weight: 600;
    font-size: 14px;
}

.normal-price i {
    margin-right: 2px;
}

.normal-exposure {
    color: #667eea;
    font-weight: 500;
}

/* ============================================================
   정비 경매 등록내역 모달 스타일
   ============================================================ */
.repair-list-container {
    min-height: 200px;
}

.repair-cards {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.repair-card {
    background: #ffffff;
    border: 1px solid #e0e0e5;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.repair-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: #f8f9fa;
    border-bottom: 1px solid #e0e0e5;
}

.repair-header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.repair-remaining-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 60px;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    border: 1px solid currentColor;
    background: #fff;
}

.repair-status {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.repair-status.status-pending {
    background: #fff3e0;
    color: #e65100;
}

.repair-status.status-in-progress {
    background: #e3f2fd;
    color: #1565c0;
}

.repair-status.status-completed {
    background: #e8f5e9;
    color: #2e7d32;
}

.repair-status.status-cancelled {
    background: #fce4ec;
    color: #c62828;
}

.repair-date {
    font-size: 12px;
    color: #888;
}

.repair-card-body {
    padding: 16px;
}

.repair-vehicle-name {
    font-size: 16px;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0 0 10px 0;
}

.repair-info-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 10px;
}

.repair-info-item {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    color: #666;
}

.repair-info-item i {
    color: #888;
    font-size: 12px;
}

.repair-damage-parts {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 10px;
}

.damage-tag {
    display: inline-block;
    padding: 4px 10px;
    background: #f0f4ff;
    color: #667eea;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.repair-description {
    font-size: 13px;
    color: #555;
    margin: 0;
    line-height: 1.5;
    background: #f8f9fa;
    padding: 10px 12px;
    border-radius: 8px;
}

.repair-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: #f8f9fa;
    border-top: 1px solid #e0e0e5;
    font-size: 12px;
    color: #666;
}

.repair-exposure {
    color: #667eea;
    font-weight: 500;
}

.repair-remaining {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-weight: 600;
}

/* 남은 일수 공통 스타일 */
.remaining-normal {
    color: #2e7d32;
}

.remaining-urgent {
    color: #c62828;
}

/* 경매 등록내역 남은 일수 */
.auction-remaining {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-weight: 600;
}

/* 일반 등록내역 노출 정보 */
.normal-exposure-info {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
}

.normal-remaining {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-weight: 600;
    font-size: 12px;
}

/* ============================================================
   결제 내역 모달 스타일
   ============================================================ */
.payment-cards {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 16px;
}

.payment-card {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    border: 1px solid #e0e0e5;
}

.payment-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-bottom: 1px solid #e0e0e5;
}

.payment-status {
    font-size: 12px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 12px;
}

.payment-date {
    font-size: 12px;
    color: #8c8c9a;
}

.payment-card-body {
    padding: 16px;
}

.payment-type {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.payment-coupon-badge {
    font-size: 12px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 12px;
}

.payment-coupon-badge.coupon-orange {
    background: #fff3e0;
    color: #f57c00;
}

.payment-coupon-badge.coupon-purple {
    background: #f3e5f5;
    color: #9c27b0;
}

.payment-quantity {
    font-size: 14px;
    font-weight: 500;
    color: #1a1a2e;
}

.payment-amount {
    font-size: 18px;
    font-weight: 700;
    color: #667eea;
    margin-bottom: 8px;
}

.payment-depositor {
    font-size: 13px;
    color: #666;
    margin: 0;
}

/* ============================================================
   알림 설정 모달 스타일
   ============================================================ */
.notification-settings-container {
    padding: var(--space-4, 16px);
}

.notification-settings-desc {
    font-size: var(--font-size-sm, 14px);
    color: var(--text-secondary, #666);
    margin: 0 0 var(--space-5, 20px);
    padding: var(--space-3, 12px) var(--space-4, 16px);
    background: var(--bg-secondary, #f8f9fa);
    border-radius: var(--radius-sm, 8px);
    text-align: center;
}

.notification-setting-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-4, 16px);
    background: var(--bg-primary, #fff);
    border: 1px solid var(--border-default, #e0e0e5);
    border-radius: var(--radius-lg, 12px);
    margin-bottom: var(--space-3, 12px);
}

.notification-setting-item:last-child {
    margin-bottom: 0;
}

.notification-setting-info {
    display: flex;
    align-items: center;
    gap: var(--space-3, 12px);
}

.notification-setting-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md, 10px);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--font-size-lg, 18px);
}

.notification-setting-icon.icon-blue {
    background: var(--color-primary-50, #e3f2fd);
    color: var(--color-primary, #1976d2);
}

.notification-setting-icon.icon-orange {
    background: var(--color-warning-50, #fff3e0);
    color: var(--color-warning, #f57c00);
}

.notification-setting-icon.icon-green {
    background: var(--color-success-50, #e8f5e9);
    color: var(--color-success, #388e3c);
}

.notification-setting-icon.icon-purple {
    background: #f3e5f5;
    color: #7b1fa2;
}

.notification-setting-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.notification-setting-title {
    font-size: var(--font-size-md, 15px);
    font-weight: var(--font-weight-semibold, 600);
    color: var(--text-primary, #1a1a2e);
}

.notification-setting-subtitle {
    font-size: var(--font-size-xs, 12px);
    color: var(--text-tertiary, #888);
}

/* 토글 스위치 스타일 */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 28px;
    flex-shrink: 0;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: 0.3s;
    border-radius: 28px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 22px;
    width: 22px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.toggle-switch input:checked + .toggle-slider {
    background-color: #667eea;
}

.toggle-switch input:checked + .toggle-slider:before {
    transform: translateX(22px);
}

/* 모바일 반응형 */
@media (max-width: 480px) {
    .notification-setting-item {
        padding: 12px;
    }

    .notification-setting-icon {
        width: 36px;
        height: 36px;
        font-size: 16px;
    }

    .notification-setting-title {
        font-size: 14px;
    }

    .notification-setting-subtitle {
        font-size: 11px;
    }

    .toggle-switch {
        width: 44px;
        height: 24px;
    }

    .toggle-slider:before {
        height: 18px;
        width: 18px;
    }

    .toggle-switch input:checked + .toggle-slider:before {
        transform: translateX(20px);
    }
}

/* ========================================
   경매현황 모달 스타일
   ======================================== */
.auction-status-modal {
    width: 100%;
    max-width: 100%;
    height: 100%;
    max-height: 100%;
    border-radius: 0;
    display: flex;
    flex-direction: column;
}

.auction-status-modal .modal-header {
    flex-shrink: 0;
    border-bottom: 1px solid #e5e7eb;
}

.auction-status-modal .modal-header h3 i {
    color: #667eea;
    margin-right: 8px;
}

.auction-status-modal .modal-body {
    flex: 1;
    overflow-y: auto;
    padding: 0;
    display: flex;
    flex-direction: column;
}

/* 탭 메뉴 */
.auction-modal-tabs {
    display: flex;
    padding: 0 var(--space-4, 16px);
    background: var(--bg-primary, #fff);
    border-bottom: 2px solid var(--border-default, #e5e7eb);
    position: sticky;
    top: 0;
    z-index: 10;
}

.auction-tabs-individual,
.auction-tabs-business {
    display: flex;
    gap: var(--space-2, 8px);
    width: 100%;
}

.auction-modal-tab {
    flex: 1;
    padding: var(--space-4, 14px) var(--space-4, 16px);
    background: none;
    border: none;
    font-size: var(--font-size-sm, 14px);
    font-weight: var(--font-weight-medium, 500);
    color: var(--text-tertiary, #6b7280);
    cursor: pointer;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    transition: all var(--transition-fast, 0.2s);
}

.auction-modal-tab:hover {
    color: var(--color-primary, #667eea);
}

.auction-modal-tab.active {
    color: var(--color-primary, #667eea);
    font-weight: var(--font-weight-semibold, 600);
    border-bottom-color: var(--color-primary, #667eea);
}

/* 목록 컨테이너 - 반응형 그리드 (1열 → 2열 → 3열 → 4열) */
.auction-modal-list {
    flex: 1;
    padding: var(--space-4, 16px);
    overflow-y: auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-3, 12px);
    align-content: start;
}

/* 작은 태블릿: 2열 */
@media (min-width: 540px) {
    .auction-modal-list {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-4, 16px);
    }
}

/* 태블릿: 3열 */
@media (min-width: 900px) {
    .auction-modal-list {
        grid-template-columns: repeat(3, 1fr);
        gap: var(--space-4, 16px);
    }
}

/* 대형 화면: 4열 */
@media (min-width: 1280px) {
    .auction-modal-list {
        grid-template-columns: repeat(4, 1fr);
        gap: var(--space-5, 20px);
    }
}

/* 경매 아이템 - 카드 스타일 */
.auction-item {
    display: flex;
    flex-direction: column;
    gap: var(--space-3, 12px);
    padding: var(--space-4, 16px);
    background: var(--bg-primary, #fff);
    border-radius: var(--radius-xl, 16px);
    box-shadow: var(--shadow-sm, 0 2px 8px rgba(0, 0, 0, 0.06));
    cursor: pointer;
    transition: all var(--transition-fast, 0.2s);
    border: 1px solid var(--border-light, #f0f0f5);
}

.auction-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg, 0 8px 24px rgba(0, 0, 0, 0.12));
    border-color: var(--color-primary-200, #c7d2fe);
}

.auction-item.repair-item {
    border-top: 3px solid var(--color-success, #10b981);
}

/* 아이템 이미지 - 카드 상단에 비율 유지하며 표시 */
.auction-item__image {
    width: calc(100% + var(--space-4, 16px) * 2);
    aspect-ratio: 16 / 10;
    border-radius: var(--radius-xl, 16px) var(--radius-xl, 16px) 0 0;
    overflow: hidden;
    position: relative;
    background: var(--color-gray-100, #f3f4f6);
    margin: calc(var(--space-4, 16px) * -1);
    margin-bottom: 0;
}

.auction-item__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-base, 0.3s);
}

.auction-item:hover .auction-item__image img {
    transform: scale(1.05);
}

.auction-item__image .status-badge {
    position: absolute;
    top: var(--space-3, 12px);
    left: var(--space-3, 12px);
    font-size: var(--font-size-xs, 11px);
    padding: var(--space-1, 4px) var(--space-2, 8px);
    border-radius: var(--radius-full, 20px);
    font-weight: var(--font-weight-semibold, 600);
    backdrop-filter: blur(4px);
}

/* 아이템 정보 영역 */
.auction-item__info {
    flex: 1;
    min-width: 0;
    padding-top: var(--space-3, 12px);
}

.auction-item__title {
    font-size: var(--font-size-md, 15px);
    font-weight: var(--font-weight-bold, 700);
    color: var(--text-primary, #1f2937);
    margin-bottom: var(--space-2, 6px);
    line-height: var(--line-height-snug, 1.4);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.auction-item__specs {
    font-size: var(--font-size-xs, 12px);
    color: var(--text-tertiary, #6b7280);
    margin-bottom: var(--space-2, 6px);
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2, 8px);
}

.auction-item__specs .bid-count {
    color: var(--color-primary, #667eea);
    font-weight: var(--font-weight-semibold, 600);
    background: var(--color-primary-50, #eef2ff);
    padding: 2px 8px;
    border-radius: var(--radius-full, 20px);
}

.auction-item__damage {
    font-size: var(--font-size-xs, 12px);
    color: var(--color-success, #059669);
    margin-bottom: var(--space-2, 6px);
}

/* 가격 및 화살표 영역 */
.auction-item__footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: var(--space-3, 12px);
    border-top: 1px solid var(--border-light, #f0f0f5);
    margin-top: auto;
}

.auction-item__price {
    font-size: var(--font-size-lg, 16px);
    font-weight: var(--font-weight-bold, 700);
    color: var(--color-primary, #667eea);
}

.auction-item__arrow {
    color: var(--text-tertiary, #9ca3af);
    font-size: var(--font-size-sm, 14px);
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-gray-100, #f3f4f6);
    border-radius: var(--radius-full, 50%);
    transition: all var(--transition-fast, 0.2s);
}

.auction-item:hover .auction-item__arrow {
    background: var(--color-primary, #667eea);
    color: var(--text-inverse, #fff);
}

/* 상태 배지 */
.status-badge.active { background: #dbeafe; color: #1d4ed8; }
.status-badge.selected { background: #d1fae5; color: #065f46; }
.status-badge.in_progress { background: #fef3c7; color: #92400e; }
.status-badge.completed { background: #e5e7eb; color: #374151; }
.status-badge.cancelled { background: #fee2e2; color: #991b1b; }
.status-badge.pending { background: #fef3c7; color: #92400e; }
.status-badge.rejected { background: #fee2e2; color: #991b1b; }

/* 더보기 버튼 */
.auction-modal-loadmore {
    padding: 16px;
    text-align: center;
}

.btn-loadmore {
    width: 100%;
    padding: 14px;
    background: #f3f4f6;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    color: #4b5563;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-loadmore:hover {
    background: #e5e7eb;
}

/* 로딩/빈 메시지 */
.loading-spinner,
.empty-message {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    color: #9ca3af;
}

.loading-spinner i,
.empty-message i {
    font-size: 48px;
    margin-bottom: 16px;
}

.loading-spinner i {
    color: #667eea;
}

/* 상세 모달 - 2열 레이아웃 */
.auction-detail,
.repair-detail {
    padding: var(--space-4, 16px);
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-5, 20px);
}

/* 데스크톱에서 2열 레이아웃 */
@media (min-width: 768px) {
    .auction-detail,
    .repair-detail {
        grid-template-columns: 1fr 400px;
        gap: var(--space-6, 24px);
        padding: var(--space-6, 24px);
    }
}

@media (min-width: 1024px) {
    .auction-detail,
    .repair-detail {
        grid-template-columns: 1fr 450px;
    }
}

/* 왼쪽 영역 - 차량 정보 */
.detail-left-section {
    display: flex;
    flex-direction: column;
    gap: var(--space-4, 16px);
}

/* 오른쪽 영역 - 입찰 목록 */
.detail-right-section,
.bid-list-section {
    display: flex;
    flex-direction: column;
    gap: var(--space-4, 16px);
    background: var(--bg-tertiary, #f8fafc);
    border-radius: var(--radius-xl, 16px);
    padding: var(--space-5, 20px);
    height: fit-content;
    position: sticky;
    top: 80px;
}

@media (min-width: 768px) {
    .bid-list-section {
        margin-top: 0;
        max-height: calc(100vh - 160px);
        overflow-y: auto;
    }
}

.detail-image {
    width: 100%;
    height: 200px;
    border-radius: var(--radius-lg, 12px);
    overflow: hidden;
    margin-bottom: var(--space-5, 20px);
    background: var(--color-gray-100, #f3f4f6);
}

@media (min-width: 768px) {
    .detail-image {
        height: 280px;
        margin-bottom: 0;
    }
}

.detail-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 정비 사진 그리드 */
.repair-photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 12px;
    margin-bottom: 20px;
}

.repair-photo-item {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    background: #f3f4f6;
    aspect-ratio: 4 / 3;
}

.repair-photo-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.repair-photo-placeholder {
    text-align: center;
    padding: 24px;
    border-radius: 12px;
    background: #f9fafb;
    border: 1px dashed #d1d5db;
    margin-bottom: 20px;
}

.repair-photo-placeholder img {
    width: 120px;
    height: 80px;
    object-fit: contain;
    margin-bottom: 8px;
}

.photo-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 600;
}

/* 아이템 타입 배지 - 카드형 레이아웃 */
.item-type-badge {
    position: absolute;
    top: var(--space-3, 12px);
    right: var(--space-3, 12px);
    font-size: var(--font-size-xs, 10px);
    padding: var(--space-1, 4px) var(--space-2, 8px);
    border-radius: var(--radius-full, 20px);
    font-weight: var(--font-weight-bold, 700);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    backdrop-filter: blur(4px);
}

.item-type-badge.repair {
    background: rgba(16, 185, 129, 0.9);
    color: var(--text-inverse, white);
}

.item-type-badge.auction {
    background: rgba(59, 130, 246, 0.9);
    color: var(--text-inverse, white);
}

/* 정비 요청 카드 - 상단 경계선 */
.repair-request-item {
    border-top: 3px solid var(--color-success, #10b981);
}

.repair-request-item:hover {
    border-color: var(--color-success, #10b981);
}

.detail-section {
    margin-bottom: 20px;
}

.detail-section h4 {
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid #e5e7eb;
}

.detail-section h4 i {
    color: #667eea;
    margin-right: 8px;
}

.detail-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.detail-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.detail-item .label {
    font-size: 12px;
    color: #6b7280;
}

.detail-item .value {
    font-size: 14px;
    font-weight: 500;
    color: #1f2937;
}

.detail-item .value.highlight {
    color: #3b82f6;
    font-weight: 700;
}

/* 손상 부위 태그 */
.damage-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.damage-tags .tag {
    background: #10b981;
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
}

/* 요청 내용 */
.repair-desc {
    padding: 14px;
    background: #f9fafb;
    border-radius: 8px;
    font-size: 14px;
    line-height: 1.6;
    color: #374151;
}

/* 내 입찰 박스 */
.my-bid-box {
    background: linear-gradient(135deg, #eff6ff 0%, #f0fdf4 100%);
    padding: 16px;
    border-radius: 12px;
}

.my-bid-info {
    display: flex;
    gap: 12px;
    margin-bottom: 12px;
}

.my-bid-amount,
.my-bid-status {
    flex: 1;
    background: white;
    padding: 12px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.my-bid-amount .label,
.my-bid-status .label {
    display: block;
    font-size: 11px;
    color: #6b7280;
    margin-bottom: 6px;
}

.my-bid-amount .value {
    font-size: 18px;
    font-weight: 700;
    color: #3b82f6;
}

.my-bid-memo {
    background: white;
    padding: 12px;
    border-radius: 8px;
}

.my-bid-memo .label {
    display: block;
    font-size: 11px;
    color: #6b7280;
    margin-bottom: 6px;
}

.my-bid-memo .value {
    font-size: 13px;
    color: #374151;
    margin: 0;
}

/* 입찰 목록 - 반응형 그리드 (1열 → 2열 → 3열) */
.bid-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-3, 10px);
}

@media (min-width: 480px) {
    .bid-list {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-4, 12px);
    }
}

@media (min-width: 768px) {
    .bid-list {
        grid-template-columns: repeat(3, 1fr);
        gap: var(--space-4, 14px);
    }
}

.bid-item {
    display: flex;
    align-items: center;
    gap: var(--space-3, 12px);
    padding: var(--space-3, 12px);
    background: var(--bg-tertiary, #f9fafb);
    border-radius: var(--radius-md, 8px);
    border: 1px solid var(--border-light, #e5e7eb);
    transition: all var(--transition-fast, 0.2s);
}

.bid-item:hover {
    background: var(--bg-secondary, #f3f4f6);
    border-color: var(--color-primary-200, #c7d2fe);
}

.bid-rank {
    width: 24px;
    height: 24px;
    background: var(--color-primary, #667eea);
    color: var(--text-inverse, white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
}

.bid-price {
    flex: 1;
    font-size: 15px;
    font-weight: 600;
    color: #1f2937;
}

.bid-status {
    font-size: 12px;
    padding: 4px 8px;
    border-radius: 4px;
}

/* 입찰 목록 섹션 - 오른쪽 패널 스타일 */
.bid-list-section h4 {
    display: flex;
    align-items: center;
    gap: var(--space-2, 8px);
    font-size: var(--font-size-lg, 16px);
    font-weight: var(--font-weight-bold, 700);
    color: var(--text-primary, #1a1a2e);
    margin: 0 0 var(--space-3, 12px);
    padding-bottom: var(--space-3, 12px);
    border-bottom: 2px solid var(--color-primary, #667eea);
}

.bid-list-section h4 i {
    color: var(--color-primary, #667eea);
}

.bid-list-container {
    flex: 1;
    overflow-y: auto;
    max-height: none;
}

@media (min-width: 768px) {
    .bid-list-container {
        max-height: calc(100vh - 300px);
    }
}

.bid-list-container .no-bids,
.bid-list-container .error-msg {
    text-align: center;
    padding: var(--space-8, 30px) var(--space-5, 20px);
    color: var(--text-tertiary, #9ca3af);
    font-size: var(--font-size-sm, 14px);
    background: var(--bg-primary, #fff);
    border-radius: var(--radius-lg, 12px);
    border: 1px dashed var(--border-default, #e0e0e5);
}

.bid-list-container .loading-spinner {
    text-align: center;
    padding: var(--space-8, 30px) var(--space-5, 20px);
    color: var(--color-primary, #667eea);
    font-size: var(--font-size-sm, 14px);
}

/* 입찰 현황 요약 */
.bid-summary-section {
    background: #f8fafc;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 16px;
}

.bid-summary-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.summary-title {
    font-size: 14px;
    font-weight: 600;
    color: #374151;
}

.summary-title i {
    color: #667eea;
    margin-right: 6px;
}

.bid-count-badge {
    background: #667eea;
    color: white;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.bid-summary-cards {
    display: flex;
    gap: 12px;
}

.summary-card {
    flex: 1;
    background: white;
    border-radius: 10px;
    padding: 14px;
    text-align: center;
    border: 1px solid #e5e7eb;
}

.summary-card.highlight {
    border: 2px solid #667eea;
    background: linear-gradient(135deg, #f0f4ff 0%, #fff 100%);
}

.summary-label {
    display: block;
    font-size: 12px;
    color: #6b7280;
    margin-bottom: 4px;
}

.summary-value {
    display: block;
    font-size: 18px;
    font-weight: 700;
    color: #1f2937;
}

.summary-card.highlight .summary-value {
    color: #667eea;
}

/* 입찰 내역 헤더 */
.bid-list-header {
    margin-bottom: 12px;
}

.list-title {
    font-size: 14px;
    font-weight: 600;
    color: #374151;
}

.list-title i {
    color: #667eea;
    margin-right: 6px;
}

/* 입찰 아이템 카드 - 개선된 스타일 */
.bid-item-card {
    display: flex;
    align-items: center;
    gap: var(--space-3, 12px);
    padding: var(--space-4, 16px);
    background: var(--bg-primary, #fff);
    border-radius: var(--radius-xl, 16px);
    margin-bottom: 0;
    border: 1px solid var(--border-default, #e5e7eb);
    transition: all var(--transition-fast, 0.2s);
    box-shadow: var(--shadow-xs, 0 1px 3px rgba(0, 0, 0, 0.05));
}

.bid-item-card:hover {
    background: var(--bg-secondary, #f8f9fc);
    border-color: var(--color-primary-200, #c7d2fe);
    box-shadow: var(--shadow-md, 0 4px 12px rgba(0, 0, 0, 0.1));
}

.bid-item-card.top-bid {
    background: linear-gradient(135deg, #fefce8 0%, #fff 100%);
    border: 2px solid var(--color-warning, #fbbf24);
}

.bid-item-card.selected {
    background: linear-gradient(135deg, #f0fdf4 0%, #fff 100%);
    border: 2px solid var(--color-success, #10b981);
}

/* 순위 뱃지 */
.bid-rank-badge {
    min-width: 36px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e5e7eb;
    color: #6b7280;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
}

.bid-rank-badge.top-rank {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    color: white;
}

/* 업체 아이콘 */
.bid-company-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border-radius: 50%;
    color: #d97706;
    font-size: 16px;
}

/* 업체 정보 */
.bid-company-info {
    flex: 1;
    min-width: 0;
}

.company-name {
    font-size: 14px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.company-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 12px;
    color: #6b7280;
}

.company-meta .rating {
    color: #f59e0b;
}

.company-meta .rating i {
    margin-right: 2px;
}

.company-meta .location {
    color: #9ca3af;
}

.company-meta .location i {
    margin-right: 2px;
}

/* 입찰 금액 섹션 */
.bid-price-section {
    text-align: right;
    min-width: 100px;
}

.bid-amount {
    font-size: 16px;
    font-weight: 700;
    color: #667eea;
}

.bid-item-card.top-bid .bid-amount {
    color: #d97706;
}

.bid-time {
    font-size: 11px;
    color: #9ca3af;
    margin-top: 2px;
}

/* 입찰 액션 영역 */
.bid-action-area {
    min-width: 60px;
    text-align: center;
}

.btn-select-bid {
    padding: 8px 14px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-select-bid:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.accepted-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 10px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 600;
}

.accepted-badge i {
    font-size: 10px;
}

.rejected-badge {
    display: inline-flex;
    padding: 6px 10px;
    background: #e5e7eb;
    color: #6b7280;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 500;
}

/* 경매 진행 단계 */
.auction-progress-section {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid #e2e8f0;
}

.progress-title {
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 20px;
}

.progress-title i {
    color: #667eea;
    margin-right: 8px;
}

.progress-steps {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    overflow-x: auto;
    padding-bottom: 8px;
}

.progress-steps .step {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 60px;
    position: relative;
}

.step-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9ca3af;
    font-size: 14px;
    margin-bottom: 8px;
    transition: all 0.3s;
}

.step.completed .step-circle {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
}

.step.current .step-circle {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.step-label {
    font-size: 11px;
    font-weight: 600;
    color: #6b7280;
    text-align: center;
    white-space: nowrap;
}

.step.completed .step-label,
.step.current .step-label {
    color: #374151;
}

.step-sub {
    font-size: 10px;
    color: #9ca3af;
    margin-top: 2px;
}

.step.current .step-sub {
    color: #667eea;
    font-weight: 500;
}

.step-line {
    flex: 1;
    height: 3px;
    background: #e5e7eb;
    margin: 20px 8px 0;
    border-radius: 2px;
    min-width: 20px;
}

.step-line.active {
    background: linear-gradient(90deg, #10b981 0%, #667eea 100%);
}

/* 리뷰 프롬프트 섹션 */
.review-prompt-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border: 2px solid #fbbf24;
    border-radius: 12px;
    padding: 16px 20px;
    margin-bottom: 16px;
}

.review-prompt-content {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #92400e;
    font-size: 14px;
    font-weight: 500;
}

.review-prompt-content i {
    font-size: 18px;
    color: #f59e0b;
}

.btn-write-review {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 18px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-write-review:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

/* 리뷰 완료 섹션 */
.review-complete-section {
    display: flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    border: 2px solid #10b981;
    border-radius: 12px;
    padding: 16px 20px;
    margin-bottom: 16px;
    color: #065f46;
    font-size: 14px;
    font-weight: 500;
}

.review-complete-section i {
    font-size: 18px;
    color: #10b981;
}

/* 리뷰 모달 */
.review-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

.review-modal {
    background: white;
    border-radius: 16px;
    width: 90%;
    max-width: 400px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.review-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.review-modal-header h3 {
    font-size: 18px;
    font-weight: 600;
    margin: 0;
}

.btn-close-review {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    line-height: 1;
}

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

.rating-section {
    margin-bottom: 20px;
    text-align: center;
}

.rating-section label {
    display: block;
    margin-bottom: 12px;
    font-size: 14px;
    color: #374151;
}

.star-rating {
    display: flex;
    justify-content: center;
    gap: 8px;
}

.star-rating .star {
    font-size: 32px;
    color: #fbbf24;
    cursor: pointer;
    transition: transform 0.2s;
}

.star-rating .star:hover {
    transform: scale(1.2);
}

.star-rating .star i.fas {
    color: #f59e0b;
}

.star-rating .star i.far {
    color: #d1d5db;
}

.review-content-section label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    color: #374151;
}

.review-content-section textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 14px;
    resize: none;
    box-sizing: border-box;
}

.review-content-section textarea:focus {
    outline: none;
    border-color: #667eea;
}

.review-modal-footer {
    display: flex;
    gap: 12px;
    padding: 16px 20px;
    background: #f9fafb;
}

.review-modal-footer .btn-cancel {
    flex: 1;
    padding: 12px;
    background: #e5e7eb;
    color: #374151;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
}

.review-modal-footer .btn-submit-review {
    flex: 2;
    padding: 12px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

.review-modal-footer .btn-submit-review:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}
