/* 디자IN 메인 인터랙티브 컴포넌트 & 모달 & 토스트 전용 독립 스타일 (정적 home.min.css 보완) */
.idx-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 9990;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    opacity: 0;
    transition: opacity 0.25s ease;
}
.idx-modal-overlay.show {
    display: flex;
    opacity: 1;
}
.idx-modal-box {
    background: #ffffff;
    border-radius: 1.25rem;
    width: 100%;
    max-width: 46rem;
    max-height: 86vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    border: 1px solid #E6F3FF;
    transform: translateY(16px) scale(0.98);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    overflow: hidden;
}
.idx-modal-overlay.show .idx-modal-box {
    transform: translateY(0) scale(1);
}
.idx-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid #f1f5f9;
    background: #F8FAFC;
}
.idx-modal-body {
    padding: 1.5rem;
    overflow-y: auto;
    flex: 1;
}
.idx-modal-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    border-top: 1px solid #f1f5f9;
    background: #F8FAFC;
}

/* 모바일 드로어 */
.idx-mobile-drawer {
    display: none;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 0.75rem;
    padding: 1rem 1.25rem;
    border-radius: 1rem;
    background: rgba(17, 24, 39, 0.95);
    backdrop-filter: blur(12px);
}
.idx-mobile-drawer.open {
    display: flex;
}
.idx-mobile-drawer a {
    color: #ffffff;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0.5rem 0.5rem;
    border-radius: 0.5rem;
}
.idx-mobile-drawer a:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* 토스트 알림 시스템 */
#idx-toast-container {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    pointer-events: none;
}
.idx-toast {
    pointer-events: auto;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 280px;
    max-width: 420px;
    padding: 0.875rem 1.25rem;
    border-radius: 0.875rem;
    background: rgba(15, 23, 42, 0.92);
    color: #fff;
    font-size: 0.875rem;
    font-weight: 600;
    box-shadow: 0 15px 30px -10px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.idx-toast.show { transform: translateY(0); opacity: 1; }
.idx-toast-success { border-left: 4px solid #22c55e; }
.idx-toast-info { border-left: 4px solid #77C3F2; }
.idx-toast-warn { border-left: 4px solid #f59e0b; }
.idx-toast-error { border-left: 4px solid #ef4444; }

.live-pulse-dot {
    width: 8px; height: 8px; border-radius: 9999px; background-color: #22c55e;
    display: inline-block; box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
    animation: idxPulse 2s infinite;
}
@keyframes idxPulse {
    0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.6); }
    70% { box-shadow: 0 0 0 8px rgba(34, 197, 94, 0); }
    100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

.idx-tab-btn {
    padding: 0.5rem 1rem; border-radius: 0.625rem; font-size: 0.85rem;
    font-weight: 700; color: #64748b; background: #f1f5f9; transition: all 0.2s ease;
}
.idx-tab-btn:hover { background: #e2e8f0; color: #334155; }
.idx-tab-btn.active { background: #4A9ED6; color: #ffffff; }

.idx-badge {
    display: inline-flex; align-items: center; gap: 0.25rem;
    padding: 0.2rem 0.65rem; border-radius: 9999px; font-size: 0.75rem; font-weight: 700;
}
.idx-sim-box {
    background: #F4F9FF; border: 1px solid #CFE8FC; border-radius: 1rem; padding: 1.25rem; margin-top: 1rem;
}
.idx-btn-primary {
    background: #4A9ED6; color: #ffffff; font-size: 0.85rem; font-weight: 700;
    padding: 0.6rem 1.1rem; border-radius: 0.75rem; transition: background 0.2s;
    display: inline-flex; align-items: center; gap: 0.35rem;
}
.idx-btn-primary:hover { background: #3582B8; }
.idx-btn-secondary {
    background: #e2e8f0; color: #334155; font-size: 0.85rem; font-weight: 700;
    padding: 0.6rem 1.1rem; border-radius: 0.75rem; transition: background 0.2s;
}
.idx-btn-secondary:hover { background: #cbd5e1; }
