/**
 * KAITRUST Dashboard Styles
 * 회원 등급별 대시보드 전용 스타일
 * @version 2.0.0
 */

/* ========================================
   CSS 변수
   ======================================== */
/* CSS 변수는 index.html에서 정의됨 - 중복 제거 */

/* ========================================
   잠금 상태 스타일
   ======================================== */

/* 사이드바 잠긴 메뉴 */
.nav-item.locked {
    opacity: 0.65;
    position: relative;
}

.nav-item.locked::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.15);
    border-radius: inherit;
}

.nav-item.locked:hover {
    opacity: 0.8;
    cursor: not-allowed;
}

.nav-item .lock-icon {
    margin-left: auto;
    font-size: 0.9rem;
    opacity: 0.8;
}

.nav-item .required-badge {
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    font-size: 0.6rem;
    padding: 2px 6px;
    border-radius: 4px;
    color: white;
    font-weight: 600;
}

/* 잠긴 기능 오버레이 */
.feature-locked {
    position: relative;
    pointer-events: none;
}

.feature-locked::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(4px);
    z-index: 10;
    border-radius: inherit;
}

.locked-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 20;
    color: var(--admin-text);
}

.lock-icon-large {
    font-size: 3rem;
    display: block;
    margin-bottom: 1rem;
}

.btn-unlock {
    margin-top: 1rem;
    padding: 0.5rem 1.5rem;
    background: var(--admin-primary);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s;
}

.btn-unlock:hover {
    background: #5558e6;
    transform: translateY(-2px);
}

/* ========================================
   업그레이드 모달
   ======================================== */
.upgrade-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}

.upgrade-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.upgrade-modal {
    background: var(--admin-card);
    border: 1px solid var(--admin-border);
    border-radius: 20px;
    max-width: 480px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    transform: scale(0.9);
    transition: transform 0.3s;
}

.upgrade-modal-overlay.active .upgrade-modal {
    transform: scale(1);
}

.upgrade-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 32px;
    height: 32px;
    border: none;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--admin-text-dim);
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.upgrade-modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
    color: var(--admin-text);
}

.upgrade-modal-header {
    text-align: center;
    padding: 2rem 2rem 1.5rem;
    border-bottom: 1px solid var(--admin-border);
}

.upgrade-icon {
    font-size: 3.5rem;
    margin-bottom: 1rem;
}

.upgrade-modal-header h2 {
    font-size: 1.4rem;
    color: var(--admin-text);
    margin-bottom: 0.75rem;
}

.upgrade-modal-header p {
    color: var(--admin-text-dim);
    font-size: 0.95rem;
}

.upgrade-modal-body {
    padding: 1.5rem 2rem;
}

.upgrade-comparison {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: var(--admin-bg);
    border-radius: 12px;
}

.upgrade-current,
.upgrade-target {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.upgrade-badge {
    padding: 0.35rem 0.75rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    color: white;
}

.upgrade-arrow {
    font-size: 1.5rem;
    color: var(--admin-primary);
}

.upgrade-benefits h3 {
    font-size: 1rem;
    color: var(--admin-text);
    margin-bottom: 1rem;
}

.upgrade-benefits ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.upgrade-benefits li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.6rem 0;
    color: var(--admin-text-dim);
    font-size: 0.9rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.upgrade-benefits li:last-child {
    border-bottom: none;
}

.benefit-icon {
    color: var(--admin-success);
    font-weight: bold;
}

.upgrade-modal-footer {
    padding: 1.5rem 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    border-top: 1px solid var(--admin-border);
}

.btn-upgrade {
    width: 100%;
    padding: 0.9rem;
    background: linear-gradient(135deg, var(--admin-primary), var(--admin-secondary));
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-upgrade:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(99, 102, 241, 0.4);
}

.btn-later {
    width: 100%;
    padding: 0.75rem;
    background: transparent;
    color: var(--admin-text-dim);
    border: 1px solid var(--admin-border);
    border-radius: 10px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-later:hover {
    border-color: var(--admin-text-dim);
    color: var(--admin-text);
}

/* ========================================
   업그레이드 배너
   ======================================== */
.upgrade-banner {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.15), rgba(139, 92, 246, 0.15));
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 16px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.upgrade-banner-content {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.upgrade-banner-icon {
    font-size: 2.5rem;
    flex-shrink: 0;
}

.upgrade-banner-text {
    flex: 1;
}

.upgrade-banner-text h3 {
    color: var(--admin-text);
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}

.upgrade-banner-text p {
    color: var(--admin-text-dim);
    font-size: 0.9rem;
}

.upgrade-banner-btn {
    padding: 0.75rem 1.5rem;
    background: var(--admin-primary);
    color: white;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    flex-shrink: 0;
}

.upgrade-banner-btn:hover {
    background: #5558e6;
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .upgrade-banner-content {
        flex-direction: column;
        text-align: center;
    }

    .upgrade-banner-btn {
        width: 100%;
    }
}

/* ========================================
   멤버십 배지
   ======================================== */
.membership-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.membership-badge .badge {
    padding: 0.25rem 0.6rem;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 700;
    color: white;
}

.membership-badge .badge-label {
    font-size: 0.8rem;
    color: var(--admin-text-dim);
}

/* ========================================
   도장 생성기
   ======================================== */
.stamp-generator {
    background: var(--admin-card);
    border: 1px solid var(--admin-border);
    border-radius: 16px;
    padding: 2rem;
}

.stamp-generator h2 {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.stamp-canvas-wrapper {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.stamp-canvas-container {
    flex: 1;
    min-width: 200px;
    max-width: 300px;
    background: white;
    border-radius: 12px;
    padding: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

#stampCanvas {
    max-width: 100%;
    height: auto;
}

.stamp-controls {
    flex: 1;
    min-width: 250px;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.stamp-input-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.stamp-input-group label {
    font-size: 0.9rem;
    color: var(--admin-text-dim);
}

.stamp-input-group input,
.stamp-input-group select {
    padding: 0.75rem 1rem;
    background: var(--admin-bg);
    border: 1px solid var(--admin-border);
    border-radius: 8px;
    color: var(--admin-text);
    font-size: 0.95rem;
}

.stamp-input-group input:focus,
.stamp-input-group select:focus {
    outline: 2px solid transparent;
    border-color: var(--admin-primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.3);
}

.stamp-input-group input:focus-visible,
.stamp-input-group select:focus-visible {
    outline: 2px solid var(--admin-primary);
    outline-offset: 2px;
}

.stamp-buttons {
    display: flex;
    gap: 0.75rem;
    margin-top: 1rem;
}

.stamp-buttons button {
    flex: 1;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    border: none;
}

.btn-generate {
    background: var(--admin-primary);
    color: white;
}

.btn-generate:hover {
    background: #5558e6;
}

.btn-download {
    background: var(--admin-success);
    color: white;
}

.btn-download:hover {
    background: #0ea36e;
}

/* ========================================
   관리자/기업 전용 요소
   ======================================== */
.admin-only,
.business-only {
    display: none;
}

/* ========================================
   프리뷰 블러 (무료회원용)
   ======================================== */
.preview-blur {
    filter: blur(4px);
    pointer-events: none;
    user-select: none;
}

.preview-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 10;
    padding: 2rem;
    background: rgba(30, 41, 59, 0.9);
    border-radius: 12px;
    border: 1px solid var(--admin-border);
}

.preview-overlay p {
    color: var(--admin-text);
    margin-bottom: 1rem;
}

/* ========================================
   반응형
   ======================================== */
@media (max-width: 768px) {
    .upgrade-modal {
        max-width: 95%;
        border-radius: 16px;
    }

    .upgrade-modal-header,
    .upgrade-modal-body,
    .upgrade-modal-footer {
        padding: 1.25rem;
    }

    .stamp-canvas-wrapper {
        flex-direction: column;
    }

    .stamp-canvas-container {
        max-width: 100%;
    }
}

/* ========================================
   듀얼트랙 번들 카드
   ======================================== */
.dual-track-bundle {
    margin-top: 2rem;
    display: flex;
    justify-content: center;
}

.bundle-card {
    position: relative;
    width: 100%;
    max-width: 800px;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(139, 92, 246, 0.1));
    border-radius: 20px;
    overflow: hidden;
}

/* 그라데이션 테두리를 위한 pseudo-element (border-image는 border-radius와 호환 안됨) */
.bundle-card::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 0;
    padding: 2px;
    background: linear-gradient(135deg, #10b981, #8b5cf6);
    border-radius: 20px;
    /* Webkit (Chrome, Safari, Edge) */
    -webkit-mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    /* 표준 (Firefox) */
    mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    mask-composite: exclude;
    pointer-events: none;
}

.bundle-badge {
    position: absolute;
    top: 0;
    right: 0;
    z-index: 1;
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
    padding: 0.5rem 1.5rem;
    font-weight: 700;
    font-size: 0.9rem;
    border-top-right-radius: 20px;
    border-bottom-left-radius: 12px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.bundle-content {
    position: relative;
    z-index: 1;
    padding: 2rem;
}

.bundle-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.bundle-icons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.bundle-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
}

.bundle-icon.devstack {
    background: linear-gradient(135deg, #10b981, #059669);
}

.bundle-icon.cxo {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
}

.bundle-plus {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--admin-text-muted);
}

.bundle-header h3 {
    font-size: 1.5rem;
    color: var(--admin-text);
    margin: 0 0 0.5rem 0;
}

.bundle-header p {
    color: var(--admin-text-muted);
    margin: 0;
}

.bundle-benefits {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.benefit-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--admin-text);
}

.benefit-item i {
    color: #10b981;
}

.bundle-pricing {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
}

.original-price {
    text-align: center;
}

.original-price .label {
    display: block;
    font-size: 0.75rem;
    color: var(--admin-text-muted);
    margin-bottom: 0.25rem;
}

.original-price .price {
    font-size: 1.25rem;
    color: var(--admin-text-muted);
    text-decoration: line-through;
}

.bundle-pricing .arrow {
    color: var(--admin-text-muted);
}

.bundle-price {
    text-align: center;
}

.bundle-price .label {
    display: block;
    font-size: 0.75rem;
    color: #10b981;
    margin-bottom: 0.25rem;
}

.bundle-price .price {
    font-size: 1.75rem;
    font-weight: 700;
    background: linear-gradient(135deg, #10b981, #8b5cf6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.bundle-price .savings {
    display: block;
    font-size: 0.8rem;
    color: #ef4444;
    font-weight: 600;
    margin-top: 0.25rem;
}

.bundle-requirement {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.3);
    border-radius: 8px;
    margin-bottom: 1.5rem;
    font-size: 0.85rem;
    color: #f59e0b;
}

.bundle-apply-btn {
    width: 100%;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 700;
    color: white;
    background: linear-gradient(135deg, #10b981, #8b5cf6);
    border: none;
    border-radius: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    transition: all 0.3s ease;
}

.bundle-apply-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(16, 185, 129, 0.3);
}

.bundle-apply-btn:active {
    transform: translateY(0);
}

/* 모바일 반응형 */
@media (max-width: 768px) {
    .bundle-benefits {
        grid-template-columns: 1fr;
    }

    .bundle-pricing {
        flex-direction: column;
        gap: 1rem;
    }

    .bundle-pricing .arrow {
        transform: rotate(90deg);
    }
}

/* ========================================
   회원 관리 섹션 스타일
   ======================================== */

/* 회원 통계 그리드 */
.member-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}

@media (max-width: 1200px) {
    .member-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .member-stats-grid {
        grid-template-columns: 1fr;
    }
}

.member-stat-card {
    background: var(--admin-card, rgba(30, 41, 59, 0.8));
    border: 1px solid var(--admin-border, rgba(255, 255, 255, 0.1));
    border-radius: 12px;
    padding: 1.25rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.3s;
}

.member-stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.member-stat-card .stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.member-stat-card.pending .stat-icon {
    background: rgba(245, 158, 11, 0.2);
    color: #f59e0b;
}

.member-stat-card.reviewing .stat-icon {
    background: rgba(59, 130, 246, 0.2);
    color: #3b82f6;
}

.member-stat-card.approved .stat-icon {
    background: rgba(16, 185, 129, 0.2);
    color: #10b981;
}

.member-stat-card.this-month .stat-icon {
    background: rgba(139, 92, 246, 0.2);
    color: #8b5cf6;
}

.member-stat-card .stat-content {
    display: flex;
    flex-direction: column;
}

.member-stat-card .stat-value {
    font-family: 'Orbitron', monospace;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--admin-text, #e2e8f0);
}

.member-stat-card .stat-label {
    font-size: 0.85rem;
    color: var(--admin-text-dim, #94a3b8);
}

/* 필터 섹션 */
.member-filters {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.member-filters select,
.member-filters input {
    padding: 0.75rem 1rem;
    background: var(--admin-card, rgba(30, 41, 59, 0.8));
    border: 1px solid var(--admin-border, rgba(255, 255, 255, 0.1));
    border-radius: 8px;
    color: var(--admin-text, #e2e8f0);
    font-size: 0.9rem;
    min-width: 150px;
}

.member-filters select:focus,
.member-filters input:focus {
    outline: 2px solid transparent;
    border-color: var(--primary, #3b82f6);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.3);
}

.member-filters select:focus-visible,
.member-filters input:focus-visible {
    outline: 2px solid var(--primary, #3b82f6);
    outline-offset: 2px;
}

.member-filters input {
    flex: 1;
    min-width: 200px;
}

/* 테이블 스타일 */
.member-table-wrapper {
    background: var(--admin-card, rgba(30, 41, 59, 0.8));
    border: 1px solid var(--admin-border, rgba(255, 255, 255, 0.1));
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 1rem;
}

.member-table {
    width: 100%;
    border-collapse: collapse;
}

.member-table th,
.member-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--admin-border, rgba(255, 255, 255, 0.1));
}

.member-table th {
    background: rgba(0, 0, 0, 0.2);
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--admin-text-dim, #94a3b8);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.member-table td {
    font-size: 0.9rem;
    color: var(--admin-text, #e2e8f0);
}

.member-table tbody tr:hover {
    background: rgba(59, 130, 246, 0.05);
}

.member-table tbody tr:last-child td {
    border-bottom: none;
}

/* 상태 배지 */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.status-badge.pending {
    background: rgba(245, 158, 11, 0.15);
    color: #f59e0b;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.status-badge.reviewing {
    background: rgba(59, 130, 246, 0.15);
    color: #3b82f6;
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.status-badge.approved {
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.status-badge.rejected {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

/* 회원 유형 배지 */
.type-badge {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 500;
}

.type-badge.general { background: #475569; color: #e2e8f0; }
.type-badge.pro { background: #8b5cf6; color: white; }
.type-badge.corp-small { background: #06b6d4; color: white; }
.type-badge.corp-sme { background: #3b82f6; color: white; }
.type-badge.corp-mid { background: #f59e0b; color: #1f2937; }
.type-badge.corp-large { background: #ef4444; color: white; }

/* 액션 버튼 */
.action-btn {
    padding: 0.4rem 0.75rem;
    border: none;
    border-radius: 6px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.2s;
    margin-right: 0.25rem;
}

.action-btn.view {
    background: rgba(59, 130, 246, 0.2);
    color: #3b82f6;
}

.action-btn.view:hover {
    background: #3b82f6;
    color: white;
}

.action-btn.approve {
    background: rgba(16, 185, 129, 0.2);
    color: #10b981;
}

.action-btn.approve:hover {
    background: #10b981;
    color: white;
}

.action-btn.reject {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
}

.action-btn.reject:hover {
    background: #ef4444;
    color: white;
}

/* 페이지네이션 */
.member-pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
}

.member-pagination button {
    padding: 0.5rem 1rem;
    background: var(--admin-card, rgba(30, 41, 59, 0.8));
    border: 1px solid var(--admin-border, rgba(255, 255, 255, 0.1));
    border-radius: 6px;
    color: var(--admin-text, #e2e8f0);
    cursor: pointer;
    transition: all 0.2s;
}

.member-pagination button:hover:not(:disabled) {
    background: rgba(59, 130, 246, 0.2);
    border-color: #3b82f6;
}

.member-pagination button.active {
    background: #3b82f6;
    border-color: #3b82f6;
    color: white;
}

.member-pagination button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* 상세 모달 */
.member-detail-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    z-index: 2000;
    justify-content: center;
    align-items: center;
    padding: 2rem;
}

.member-detail-modal.active {
    display: flex;
}

.member-detail-modal .modal-content {
    background: var(--admin-card, #1e293b);
    border-radius: 16px;
    width: 100%;
    max-width: 700px;
    max-height: 90vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.member-detail-modal .modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--admin-border, rgba(255, 255, 255, 0.1));
}

.member-detail-modal .modal-header h3 {
    font-size: 1.1rem;
    color: var(--admin-text, #e2e8f0);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.member-detail-modal .modal-close {
    background: none;
    border: none;
    color: var(--admin-text-dim, #94a3b8);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.25rem;
    line-height: 1;
}

.member-detail-modal .modal-close:hover {
    color: #ef4444;
}

.member-detail-modal .modal-body {
    padding: 1.5rem;
    overflow-y: auto;
    flex: 1;
}

.member-detail-modal .modal-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--admin-border, rgba(255, 255, 255, 0.1));
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
}

/* 상세 정보 그리드 */
.detail-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

@media (max-width: 600px) {
    .detail-grid {
        grid-template-columns: 1fr;
    }
}

.detail-item {
    background: rgba(0, 0, 0, 0.2);
    padding: 1rem;
    border-radius: 8px;
}

.detail-item.full-width {
    grid-column: 1 / -1;
}

.detail-item label {
    display: block;
    font-size: 0.75rem;
    color: var(--admin-text-dim, #94a3b8);
    margin-bottom: 0.35rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.detail-item .value {
    color: var(--admin-text, #e2e8f0);
    font-size: 0.95rem;
}

.detail-item .value a {
    color: #3b82f6;
    text-decoration: none;
}

.detail-item .value a:hover {
    text-decoration: underline;
}

/* AI 관심 분야 태그 */
.ai-field-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.ai-field-tag {
    padding: 0.25rem 0.75rem;
    background: rgba(59, 130, 246, 0.15);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 20px;
    font-size: 0.8rem;
    color: #60a5fa;
}

/* 거절 사유 입력 */
.reject-reason-input {
    width: 100%;
    min-height: 80px;
    padding: 0.75rem;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--admin-border, rgba(255, 255, 255, 0.1));
    border-radius: 8px;
    color: var(--admin-text, #e2e8f0);
    font-size: 0.9rem;
    resize: vertical;
    margin-top: 0.5rem;
}

.reject-reason-input:focus {
    outline: 2px solid transparent;
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.3);
}

.reject-reason-input:focus-visible {
    outline: 2px solid #ef4444;
    outline-offset: 2px;
}

/* 헤더 액션 */
.header-actions {
    display: flex;
    gap: 0.75rem;
}

.refresh-btn {
    padding: 0.5rem 1rem;
    background: rgba(59, 130, 246, 0.15);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 8px;
    color: #3b82f6;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.refresh-btn:hover {
    background: #3b82f6;
    color: white;
}

/* 로딩 스피너 */
.member-table .fa-spinner {
    font-size: 1.5rem;
    color: #3b82f6;
}
