/* ── 라이트 테마 커스텀 스타일 ────────────────────── */

/* 모달 오버레이 */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal-animate {
    animation: modalIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalIn {
    from { opacity: 0; transform: translateY(16px) scale(0.96); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

/* 카드 */
.card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

/* 테이블 스타일 */
.price-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.price-table thead th {
    padding: 12px 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #9ca3af;
    background: #fafbfc;
    border-bottom: 1px solid #f0f0f0;
    white-space: nowrap;
}

.price-table tbody tr {
    transition: background 0.15s ease;
}

.price-table tbody tr:hover {
    background: #f8f9ff;
}

.price-table tbody td {
    padding: 14px 20px;
    border-bottom: 1px solid #f3f4f6;
    vertical-align: middle;
}

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

/* 가격 셀 호버 */
.price-cell {
    cursor: pointer;
    transition: all 0.15s ease;
    border-radius: 8px;
    position: relative;
}

.price-cell:hover {
    background: #eef2ff;
}

/* 버튼 공통 */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 10px;
    transition: all 0.15s ease;
    cursor: pointer;
    white-space: nowrap;
    border: none;
}

.btn:active {
    transform: scale(0.97);
}

.btn-primary {
    background: linear-gradient(135deg, #6366f1, #818cf8);
    color: #fff;
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.25);
}

.btn-primary:hover {
    box-shadow: 0 4px 16px rgba(99, 102, 241, 0.35);
    transform: translateY(-1px);
}

.btn-success {
    background: linear-gradient(135deg, #10b981, #34d399);
    color: #fff;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.25);
}

.btn-success:hover {
    box-shadow: 0 4px 16px rgba(16, 185, 129, 0.35);
    transform: translateY(-1px);
}

.btn-ghost {
    background: #fff;
    color: #374151;
    border: 1px solid #e5e7eb;
}

.btn-ghost:hover {
    background: #f9fafb;
    border-color: #d1d5db;
}

.btn-danger {
    background: #fef2f2;
    color: #ef4444;
    border: 1px solid #fecaca;
}

.btn-danger:hover {
    background: #fee2e2;
}

.btn-sm {
    padding: 6px 14px;
    font-size: 12px;
    border-radius: 8px;
}

/* 인풋 */
.input-light {
    width: 100%;
    padding: 12px 16px;
    font-size: 15px;
    background: #fff;
    border: 1.5px solid #e5e7eb;
    border-radius: 10px;
    color: #111827;
    outline: none;
    transition: all 0.15s ease;
}

.input-light::placeholder {
    color: #9ca3af;
}

.input-light:focus {
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

/* 스크롤바 */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* 네트워크 통계 */
.stat-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    animation: blink 2s infinite;
}

@keyframes blink {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 1; }
}

/* 빈 상태 */
.empty-state {
    padding: 60px 20px;
    text-align: center;
    color: #9ca3af;
}

/* 로딩 스피너 */
.spinner {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}
