/*
 * 거래대금 급증 모니터링 UI 스타일
 * 프리미엄 페이지와 디자인 통일성 유지
 */

/* ========================================
   1. Top 3 위젯 (Hero Section)
   ======================================== */

.surge-top3 {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    padding: 24px;
    margin-bottom: 24px;
    animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.surge-top3__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    border-bottom: 2px solid #E5E7EB;
    padding-bottom: 12px;
}

.surge-top3__title {
    font-size: 20px;
    font-weight: 600;
    color: #111827;
    display: flex;
    align-items: center;
    gap: 8px;
}

.surge-top3__title-icon {
    font-size: 24px;
}

.surge-top3__update-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.surge-top3__update-time {
    font-size: 13px;
    color: #6B7280;
    font-family: 'Courier New', monospace;
}

.surge-top3__refresh-btn {
    background: #F3F4F6;
    border: 1px solid #D1D5DB;
    border-radius: 6px;
    padding: 6px 12px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 4px;
}

.surge-top3__refresh-btn:hover {
    background: #E5E7EB;
    border-color: #9CA3AF;
}

.surge-top3__refresh-btn:active {
    transform: scale(0.95);
}

.surge-top3__refresh-btn i {
    transition: transform 0.3s ease;
}

.surge-top3__refresh-btn--loading i {
    animation: spin 1s linear infinite;
}

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

/* 카드 그리드 */
.surge-top3__cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

/* 개별 카드 */
.surge-top3__card {
    background: #FAFAFA;
    border: 2px solid #E5E7EB;
    border-radius: 12px;
    padding: 16px;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.surge-top3__card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, transparent, transparent);
    transition: all 0.3s ease;
}

.surge-top3__card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/* 순위별 스타일 */
.surge-top3__card--rank-1 {
    border-color: #FFD700;
    background: linear-gradient(135deg, #FFFBEB 0%, #FEFCE8 100%);
}

.surge-top3__card--rank-1::before {
    background: linear-gradient(90deg, #FFD700, #FFA500);
}

.surge-top3__card--rank-2 {
    border-color: #C0C0C0;
    background: linear-gradient(135deg, #F9FAFB 0%, #F3F4F6 100%);
}

.surge-top3__card--rank-2::before {
    background: linear-gradient(90deg, #C0C0C0, #A8A8A8);
}

.surge-top3__card--rank-3 {
    border-color: #CD7F32;
    background: linear-gradient(135deg, #FEF3C7 0%, #FDE68A 100%);
}

.surge-top3__card--rank-3::before {
    background: linear-gradient(90deg, #CD7F32, #B8691A);
}

/* 메달 아이콘 */
.surge-top3__medal {
    font-size: 24px;
    text-align: center;
    margin-bottom: 4px;
}

/* 총점 */
.surge-top3__score {
    font-size: 22px;
    font-weight: 700;
    text-align: center;
    color: #111827;
    margin-bottom: 2px;
    font-family: 'Courier New', monospace;
}

.surge-top3__score-label {
    font-size: 10px;
    color: #6B7280;
    text-align: center;
    margin-bottom: 8px;
}

/* 종목 정보 */
.surge-top3__stock-info {
    text-align: center;
    margin-bottom: 8px;
}

.surge-top3__stock-name {
    font-size: 14px;
    font-weight: 600;
    color: #111827;
    margin-bottom: 2px;
}

.surge-top3__stock-code {
    font-size: 11px;
    color: #6B7280;
    font-family: 'Courier New', monospace;
}

/* 가격 정보 */
.surge-top3__price-info {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 8px;
    padding: 8px 0;
    border-top: 1px solid #E5E7EB;
    border-bottom: 1px solid #E5E7EB;
}

.surge-top3__trade-value {
    font-size: 13px;
    font-weight: 600;
    color: #2563EB;
}

.surge-top3__change-rate {
    font-size: 13px;
    font-weight: 600;
}

.surge-top3__change-rate--positive {
    color: #EF4444;
}

.surge-top3__change-rate--negative {
    color: #3B82F6;
}

/* 🆕 V11: 수익률 표시 영역 (2025-12-18) */
.surge-top3__profit-row {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-top: 8px;
    font-size: 13px;
    font-weight: 500;
}

.surge-top3__profit {
    display: inline-block;
}

.surge-top3__profit--current.positive {
    color: #EF4444;  /* 빨강 (상승) */
}

.surge-top3__profit--current.negative {
    color: #3B82F6;  /* 파랑 (하락) */
}

.surge-top3__profit--max {
    color: #F59E0B;  /* 주황 (최고점) */
}

/* 배지 영역 */
.surge-top3__badges {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-bottom: 8px;
    justify-content: center;
}

.surge-top3__badge {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    padding: 2px 6px;
    border-radius: 10px;
    font-size: 10px;
    font-weight: 500;
    justify-content: center;
}

.surge-top3__badge--breakout {
    background: #FEE2E2;
    color: #991B1B;
}

.surge-top3__badge--consecutive {
    background: #FED7AA;
    color: #9A3412;
}

.surge-top3__badge--history {
    background: #E5E7EB;
    color: #374151;
}

/* 점수 분해 버튼 */
.surge-top3__detail-btn {
    width: 100%;
    background: #F3F4F6;
    border: 1px solid #D1D5DB;
    border-radius: 6px;
    padding: 6px;
    font-size: 11px;
    font-weight: 500;
    color: #374151;
    cursor: pointer;
    transition: all 0.3s ease;
}

.surge-top3__detail-btn:hover {
    background: #E5E7EB;
    border-color: #9CA3AF;
    color: #111827;
}

/* 순위 변동 애니메이션 */
.surge-top3__card--rank-up {
    animation: rankUp 0.6s ease-out;
}

.surge-top3__card--rank-down {
    animation: rankDown 0.6s ease-out;
}

@keyframes rankUp {
    0% {
        transform: translateY(20px);
        opacity: 0.5;
    }
    50% {
        transform: translateY(-5px);
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes rankDown {
    0% {
        transform: translateY(-20px);
        opacity: 0.5;
    }
    50% {
        transform: translateY(5px);
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

/* ========================================
   2. 점수 분해 모달
   ======================================== */

.score-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    display: none;
}

.score-modal--active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.score-modal__overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    animation: fadeIn 0.3s ease-out;
}

.score-modal__content {
    position: relative;
    background: white;
    border-radius: 16px;
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.score-modal__header {
    padding: 24px;
    border-bottom: 2px solid #E5E7EB;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.score-modal__title {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
}

.score-modal__close-btn {
    background: #F3F4F6;
    border: none;
    border-radius: 6px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 18px;
    color: #6B7280;
}

.score-modal__close-btn:hover {
    background: #E5E7EB;
    color: #111827;
}

.score-modal__body {
    padding: 24px;
}

.score-modal__total-score {
    text-align: center;
    padding: 20px;
    background: linear-gradient(135deg, #DBEAFE 0%, #BFDBFE 100%);
    border-radius: 12px;
    margin-bottom: 24px;
}

.score-modal__total-label {
    font-size: 14px;
    color: #374151;
    margin-bottom: 8px;
}

.score-modal__total-value {
    font-size: 48px;
    font-weight: 700;
    color: #1E40AF;
    font-family: 'Courier New', monospace;
}

/* 점수 항목 */
.score-modal__item {
    margin-bottom: 24px;
}

.score-modal__item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.score-modal__item-label {
    font-size: 15px;
    font-weight: 500;
    color: #111827;
}

.score-modal__item-score {
    font-size: 18px;
    font-weight: 700;
    font-family: 'Courier New', monospace;
}

.score-modal__item-score--blue {
    color: #3B82F6;
}

.score-modal__item-score--red {
    color: #EF4444;
}

.score-modal__item-score--orange {
    color: #F97316;
}

.score-modal__item-score--gray {
    color: #9CA3AF;
}

.score-modal__item-score--purple {
    color: #9333EA;
}

/* Progress Bar */
.score-modal__progress-bar {
    width: 100%;
    height: 24px;
    background: #F3F4F6;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 8px;
}

.score-modal__progress-fill {
    height: 100%;
    border-radius: 12px;
    transition: width 0.8s ease-out;
    position: relative;
}

.score-modal__progress-fill--blue {
    background: linear-gradient(90deg, #3B82F6, #60A5FA);
}

.score-modal__progress-fill--red {
    background: linear-gradient(90deg, #EF4444, #F87171);
}

.score-modal__progress-fill--orange {
    background: linear-gradient(90deg, #F97316, #FB923C);
}

.score-modal__progress-fill--gray {
    background: linear-gradient(90deg, #9CA3AF, #D1D5DB);
}

.score-modal__progress-fill--purple {
    background: linear-gradient(90deg, #9333EA, #A855F7);
}

.score-modal__item-desc {
    font-size: 13px;
    color: #6B7280;
    line-height: 1.5;
}

/* 모달 푸터 */
.score-modal__footer {
    padding: 20px 24px;
    border-top: 1px solid #E5E7EB;
    display: flex;
    gap: 12px;
}

.score-modal__footer-btn {
    flex: 1;
    padding: 12px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.score-modal__footer-btn--primary {
    background: #2563EB;
    color: white;
    border: none;
}

.score-modal__footer-btn--primary:hover {
    background: #1D4ED8;
}

.score-modal__footer-btn--secondary {
    background: #F3F4F6;
    color: #374151;
    border: 1px solid #D1D5DB;
}

.score-modal__footer-btn--secondary:hover {
    background: #E5E7EB;
}

/* ========================================
   3. 급증 TOP10 특수카드
   ======================================== */

.surge-top10-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    padding: 20px;
    margin-bottom: 16px;
}

.surge-top10-card__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid #E5E7EB;
}

.surge-top10-card__title {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    display: flex;
    align-items: center;
    gap: 8px;
}

.surge-top10-card__update {
    font-size: 12px;
    color: #6B7280;
}

.surge-top10-card__list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.surge-top10-card__item {
    padding: 12px 0;
    border-bottom: 1px solid #F3F4F6;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.3s ease;
}

.surge-top10-card__item:hover {
    background: #FAFAFA;
    cursor: pointer;
}

.surge-top10-card__item:last-child {
    border-bottom: none;
}

.surge-top10-card__rank {
    font-size: 16px;
    font-weight: 700;
    color: #6B7280;
    width: 30px;
}

.surge-top10-card__stock {
    flex: 1;
}

.surge-top10-card__stock-name {
    font-size: 14px;
    font-weight: 500;
    color: #111827;
    margin-bottom: 2px;
}

.surge-top10-card__stock-code {
    font-size: 11px;
    color: #9CA3AF;
    font-family: 'Courier New', monospace;
}

.surge-top10-card__badges {
    display: flex;
    gap: 4px;
    margin-top: 4px;
}

.surge-top10-card__value {
    text-align: right;
}

.surge-top10-card__increase {
    font-size: 15px;
    font-weight: 600;
    color: #2563EB;
    margin-bottom: 2px;
}

.surge-top10-card__rate {
    font-size: 13px;
    font-weight: 600;
}

.surge-top10-card__rate--positive {
    color: #EF4444;
}

/* ========================================
   4. 실시간 알림 배너 (Toast)
   ======================================== */

.surge-toast-container {
    position: fixed;
    top: 80px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 350px;
}

.surge-toast {
    background: white;
    border-left: 4px solid #EF4444;
    border-radius: 8px;
    padding: 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    animation: slideInRight 0.4s ease-out;
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.surge-toast--fadeout {
    animation: fadeOut 0.3s ease-out forwards;
}

@keyframes fadeOut {
    from {
        opacity: 1;
        transform: translateX(0);
    }
    to {
        opacity: 0;
        transform: translateX(50px);
    }
}

.surge-toast__icon {
    font-size: 20px;
    color: #EF4444;
}

.surge-toast__content {
    flex: 1;
}

.surge-toast__title {
    font-size: 14px;
    font-weight: 600;
    color: #111827;
    margin-bottom: 4px;
}

.surge-toast__stock {
    font-size: 13px;
    color: #374151;
    margin-bottom: 2px;
}

.surge-toast__info {
    font-size: 12px;
    color: #6B7280;
}

.surge-toast__close {
    background: none;
    border: none;
    font-size: 18px;
    color: #9CA3AF;
    cursor: pointer;
    padding: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.3s ease;
}

.surge-toast__close:hover {
    color: #374151;
}

/* ========================================
   5. 타임라인 (간단 버전)
   ======================================== */

.surge-timeline {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    padding: 20px;
    margin-bottom: 24px;
}

.surge-timeline__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid #E5E7EB;
}

.surge-timeline__title {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
}

.surge-timeline__filter {
    padding: 8px 12px;
    border: 1px solid #D1D5DB;
    border-radius: 6px;
    font-size: 13px;
    background: white;
    cursor: pointer;
}

.surge-timeline__list {
    list-style: none;
    padding: 0;
    margin: 0;
    /* 🆕 스크롤 처리: 10개 이상 시 스크롤 (약 600px = 항목 1개당 ~60px × 10개) */
    max-height: 600px;
    overflow-y: auto;
    /* 스크롤바 스타일링 (Webkit 브라우저) */
    scrollbar-width: thin;
    scrollbar-color: #D1D5DB #F3F4F6;
}

.surge-timeline__list::-webkit-scrollbar {
    width: 8px;
}

.surge-timeline__list::-webkit-scrollbar-track {
    background: #F3F4F6;
    border-radius: 4px;
}

.surge-timeline__list::-webkit-scrollbar-thumb {
    background: #D1D5DB;
    border-radius: 4px;
}

.surge-timeline__list::-webkit-scrollbar-thumb:hover {
    background: #9CA3AF;
}

.surge-timeline__item {
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid #F3F4F6;
}

.surge-timeline__item:last-child {
    border-bottom: none;
}

.surge-timeline__time {
    font-size: 14px;
    font-weight: 600;
    color: #6B7280;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.surge-timeline__time-icon {
    color: #9CA3AF;
}

.surge-timeline__events {
    padding-left: 24px;
}

.surge-timeline__event {
    padding: 12px;
    background: #FAFAFA;
    border-radius: 8px;
    margin-bottom: 8px;
    transition: all 0.3s ease;
}

.surge-timeline__event:hover {
    background: #F3F4F6;
    cursor: pointer;
}

.surge-timeline__event-stock {
    font-size: 14px;
    font-weight: 500;
    color: #111827;
    margin-bottom: 4px;
}

.surge-timeline__event-info {
    font-size: 13px;
    color: #6B7280;
    display: flex;
    gap: 12px;
}

/* ========================================
   6. 반응형 디자인 (모바일)
   ======================================== */

/* === 768px: 태블릿/중형 모바일 === */
@media (max-width: 768px) {
    /* Top 3 위젯 */
    .surge-top3 {
        padding: 16px;
    }

    .surge-top3__cards {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .surge-top3__card {
        padding: 16px;
    }

    .surge-top3__medal {
        font-size: 28px;
    }

    .surge-top3__score {
        font-size: 24px;
    }

    /* 모달 */
    .score-modal__content {
        width: 95%;
        max-height: 90vh;
    }

    .score-modal__header,
    .score-modal__body,
    .score-modal__footer {
        padding: 16px;
    }

    .score-modal__total-value {
        font-size: 36px;
    }

    /* Toast */
    .surge-toast-container {
        right: 10px;
        left: 10px;
        max-width: none;
    }

    /* TOP10 카드 */
    .surge-top10-card {
        padding: 16px;
    }

    .surge-top10-card__item {
        flex-wrap: wrap;
    }

    .surge-top10-card__rank {
        width: 25px;
    }

    .surge-top10-card__value {
        width: 100%;
        text-align: left;
        margin-top: 8px;
        padding-left: 25px;
    }
}

/* === 640px: 타임라인 헤더 모바일 최적화 === */
@media (max-width: 640px) {
    /* 타임라인 헤더: 세로 배치 */
    .surge-timeline__header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    /* 타임라인 컨트롤 영역: 전체 너비 사용 */
    .timeline-controls {
        width: 100%;
        flex-wrap: wrap;
        gap: 8px !important;
    }

    /* 검색 입력창: 전체 너비 사용 */
    .timeline-search-wrap {
        flex: 1 1 100% !important;
        max-width: 100% !important;
        order: 2;
    }

    /* 필터 드롭다운: 전체 너비 사용 */
    .surge-timeline__filter {
        flex: 1 1 100% !important;
        width: 100% !important;
        order: 1;
    }

    /* 타임라인 필터/검색 영역 (레거시 호환) */
    .surge-timeline__header > div[style*="display: flex"] {
        width: 100%;
        flex-wrap: wrap;
        gap: 8px !important;
    }

    /* 시스템 상태 그리드: 2열로 축소 */
    div[style*="grid-template-columns: repeat(auto-fit, minmax(200px"] {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px !important;
    }

    /* 관리자 도구 버튼: 세로 배치 */
    div[style*="display: flex; gap: 12px; flex-wrap: wrap"] {
        flex-direction: column;
    }

    div[style*="display: flex; gap: 12px; flex-wrap: wrap"] button {
        width: 100%;
        justify-content: center;
    }
}

/* === 480px: 소형 폰 최적화 === */
@media (max-width: 480px) {
    /* 시스템 상태 그리드: 1열로 축소 */
    div[style*="grid-template-columns: repeat(auto-fit, minmax(200px"] {
        grid-template-columns: 1fr !important;
    }

    /* 타임라인 아이템 간격 축소 */
    .surge-timeline__item {
        margin-bottom: 16px;
        padding-bottom: 16px;
    }

    /* 타임라인 이벤트 정보 세로 배치 */
    .surge-timeline__event-info {
        flex-direction: column;
        gap: 4px;
    }

    /* 패딩 축소 */
    div[style*="padding: 0 24px"] {
        padding: 0 12px !important;
    }

    /* Top 3 위젯 패딩 축소 */
    .surge-top3 {
        padding: 12px;
        margin-bottom: 16px;
    }

    /* 타임라인 패딩 축소 */
    .surge-timeline {
        padding: 16px;
        margin-bottom: 16px;
    }

    /* 시스템 상태 카드 패딩 축소 */
    div[style*="background: white; border-radius: 12px; box-shadow"] {
        padding: 16px !important;
    }
}

/* ========================================
   7. 유틸리티 클래스
   ======================================== */

.surge-hidden {
    display: none !important;
}

.surge-loading {
    opacity: 0.6;
    pointer-events: none;
}

.surge-skeleton {
    background: linear-gradient(90deg, #F3F4F6 25%, #E5E7EB 50%, #F3F4F6 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s ease-in-out infinite;
    border-radius: 4px;
}

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

/* ========================================
   13. 콘텐츠 제한 모드 (BASIC + 포인트 없음)
   ======================================== */

.surge-top3__restricted {
    padding: 60px 20px;
    text-align: center;
}

.surge-top3__restricted-overlay {
    max-width: 400px;
    margin: 0 auto;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.surge-top3__restricted-icon {
    font-size: 64px;
    margin-bottom: 20px;
    display: block;
}

.surge-top3__restricted-title {
    font-size: 20px;
    font-weight: 700;
    color: #333;
    margin-bottom: 12px;
}

.surge-top3__restricted-message {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 24px;
}

.surge-top3__restricted-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 16px;
}

.surge-top3__restricted-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 24px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}

.surge-top3__restricted-btn--primary {
    background: linear-gradient(135deg, #667EEA 0%, #764BA2 100%);
    color: white;
}

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

.surge-top3__restricted-btn--secondary {
    background: #f1f3f5;
    color: #495057;
    border: 1px solid #dee2e6;
}

.surge-top3__restricted-btn--secondary:hover {
    background: #e9ecef;
}

.surge-top3__restricted-hint {
    font-size: 12px;
    color: #868e96;
    margin-top: 8px;
}

/* ========================================
   AI 급등확률 신호 배지
   ======================================== */

.surge-signal {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    margin-top: 12px;
    animation: pulse-signal 2s ease-in-out infinite;
}

.surge-signal--high {
    background: linear-gradient(135deg, #D1FAE5 0%, #A7F3D0 100%);
    color: #065F46;
    border: 1px solid #10B981;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

@keyframes pulse-signal {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
    }
    50% {
        transform: scale(1.02);
        box-shadow: 0 4px 16px rgba(16, 185, 129, 0.5);
    }
}

/* 대기 중 슬롯 스타일 */
.surge-top3__card--waiting {
    background: #F9FAFB !important;
    border: 2px dashed #D1D5DB !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 180px;
}

.surge-top3__waiting {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.surge-top3__waiting-icon {
    font-size: 32px;
    margin-bottom: 8px;
}

.surge-top3__waiting-text {
    font-size: 16px;
    font-weight: 600;
    color: #6B7280;
    margin-bottom: 4px;
}

.surge-top3__waiting-subtext {
    font-size: 12px;
    color: #9CA3AF;
}
