/* Mobile menu button (hidden by default) */
    .mobile-menu-btn {
        display: none;
        background: none;
        border: none;
        font-size: 1.5rem;
        cursor: pointer;
        padding: 5px;
        z-index: 999;
    }
  
    /* Media queries for responsive design */
    @media (max-width: 768px) {
        .header-container {
        justify-content: space-between;
        }
        
        .mobile-menu-btn {
        display: block;
        }
        
        .nav-menu {
        flex-basis: 100%;
        flex-direction: column;
        align-items: center;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease-out;
        }
        
        .nav-menu.active {
        max-height: 300px;
        }
        
        .nav-menu li {
        margin: 8px 0;
        width: 100%;
        text-align: center;
        }
        
        .nav-menu a {
        width: 100%;
        padding: 10px;
        }
    }

    .scrolling-text-container {
        position: fixed;
        bottom:0px;
        /* bottom: 60px; */
        left: 0;
        width: 100%;
        overflow: hidden;
        height: 70px;
        z-index: 2;
        background: rgba(15, 23, 42, 0.95);
        display: flex;
        align-items: center;
    }
    .site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255);
    color: #333;
    /* padding: 24px 0; */
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  }

  /* mobile 인경우 pdding 활성화 */
  @media (max-width: 768px) {
    .site-header {
      padding: 24px 0; /* 모바일에서 패딩 조정 */
    }
  }
  
  .header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    flex-wrap: wrap;
    position: relative;
  }
  
  .logo {
    font-weight: bold;
    font-size: clamp(1.2rem, 3vw, 2rem);
    padding: 10px 0;
    color: #ffffff;
  }
  
  .nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
  }
  
  .nav-menu li {
    margin-left: clamp(10px, 2vw, 20px);
  }
  
  .nav-menu a {
    text-decoration: none;
    color: #333;
    /* color: #ffffff; */
    font-weight: 500;
    transition: color 0.3s;
    font-size: clamp(0.9rem, 2vw, 1.2rem);
    padding: 10px 0;
    display: inline-block;
  }
  
  .nav-menu a:hover {
    color: #0066cc;
  }
  
  /* Hamburger menu button */
  .mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.8rem;
    cursor: pointer;
    padding: 5px;
    color: #333;
    /* color: #ffffff; */
    z-index: 999;
  }

  /* Mobile navigation overlay */
  .mobile-nav-overlay {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    /* background: rgba(0, 0, 0, 0.5); */
    z-index: 1001;
    transition: right 0.3s ease-in-out;
  }

  .mobile-nav-overlay.active {
    right: 0;
  }

  .mobile-nav-menu {
    position: absolute;
    top: 0;
    right: 0;
    width: 280px;
    height: 100vh;
    background: white;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out;
    overflow-y: auto;
    z-index: 1002;
  }

  .mobile-nav-overlay.active .mobile-nav-menu {
    transform: translateX(0);
  }

  .mobile-nav-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #eee;
  }

  .mobile-nav-logo {
    font-weight: bold;
    font-size: 1.3rem;
    color: #333;
  }

  .mobile-nav-close {
    background: none;
    border: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: #333;
    padding: 5px;
  }

  .mobile-nav-items {
    list-style: none;
    margin: 0;
    padding: 20px 0;
  }

  .mobile-nav-items li {
    margin: 0;
  }

  .mobile-nav-items a {
    display: block;
    padding: 15px 20px;
    color: #333;
    text-decoration: none;
    font-weight: 500;
    font-size: 1.1rem;
    border-bottom: 1px solid #f0f0f0;
    transition: all 0.3s;
  }

  .mobile-nav-items a:hover {
    background: #f8f9fa;
    color: #0066cc;
    padding-left: 30px;
  }

  /* Media queries for responsive design */
  @media (max-width: 768px) {
    .header-container {
      justify-content: center; /* 로고를 중앙에 배치 */
      position: relative;
    }
    
    .logo {
      position: absolute;
      left: 50%;
      transform: translateX(-50%); /* 완전한 중앙 정렬 */
    }
    
    .mobile-menu-btn {
      display: block;
      position: absolute;
      right: 20px; /* 우측에 햄버거 메뉴 배치 */
    }
    
    .nav-menu {
      display: none; /* 기본 네비게이션 메뉴 숨김 */
    }
  }

  @media (max-width: 480px) {
    .mobile-nav-menu {
      width: 260px; /* 작은 화면에서 너비 조정 */
    }

    .header-container {
      padding: 0 15px;
    }

    .mobile-menu-btn {
      right: 15px;
    }
  }

  @media (max-width: 320px) {
    .mobile-nav-menu {
      width: 240px; /* 매우 작은 화면에서 너비 조정 */
    }
  }

  /* background : r */
  .background{
    background: rgba(0, 0, 0, 0.4);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
  }
  
    /* ======================================================== */
    /* Trading Ticker Styles */
    /* ======================================================== */
  .trading-ticker {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    border-top: 1px solid #334155;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.3);
  }

  .ticker-item {
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    margin-right: 60px;
    /* animation: scrollTicker 10s linear infinite; */
  }

  .currency-pair {
    color: #ffffff;
    font-weight: 700;
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    margin-right: 20px;
    letter-spacing: 0.5px;
  }

  .spread-label, .bid-label, .ask-label {
    color: #94a3b8;
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    margin-right: 8px;
    font-weight: 500;
  }

  .spread-value {
    color: #22c55e;
    font-weight: 600;
    margin-right: 20px;
    font-size: clamp(1rem, 2.5vw, 1.3rem);
  }

  .bid-value, .ask-value {
    color: #ffffff;
    font-weight: 600;
    margin-right: 5px;
    font-size: clamp(1rem, 2.5vw, 1.3rem);
  }

  .bid-points, .ask-points {
    font-weight: 700;
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    margin-right: 2px;
  }

  .bid-decimal, .ask-decimal {
    color: #94a3b8;
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    margin-right: 20px;
    vertical-align: super;
  }

  .green {
    color: #22c55e;
  }

  .red {
    color: #ef4444;
  }

  @keyframes scrollTicker {
    from {
      transform: translateX(100vw);
    }
    to {
      transform: translateX(-100%);
    }
  }

  /* 새로운 무한 스크롤 컨테이너 */
.ticker-content {
  display: flex;
  width: max-content;
  animation: infiniteScroll 30s linear infinite;
}

/* 무한 스크롤 애니메이션 - 부드러운 순환 */
@keyframes infiniteScroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%); /* 복제된 콘텐츠의 절반만큼 이동 */
  }
}

/* 스크롤 컨테이너 스타일 개선 */
.scrolling-text-container {
  position: fixed;
  bottom: 0px;
  left: 0;
  width: 100%;
  overflow: hidden;
  height: 70px;
  z-index: 2;
  background: rgba(15, 23, 42, 0.95);
  display: flex;
  align-items: center;
  /* mask를 사용해 양쪽 끝 페이드 효과 */
  /* mask: linear-gradient(90deg, 
    transparent 0%, 
    black 5%, 
    black 95%, 
    transparent 100%);
  -webkit-mask: linear-gradient(90deg, 
    transparent 0%, 
    black 5%, 
    black 95%, 
    transparent 100%); */
}

/* hover 시 애니메이션 일시정지 */
.scrolling-text-container:hover .ticker-content {
  animation-play-state: paused;
}

    /* ======================================================== */
    /* Support message container - positioned above scrolling-text-container */
    /* ======================================================== */
  .support-message-container {
    position: fixed;
    bottom: 70px; /* scrolling-text-container 높이(70px) 위에 배치 */
    left: 0;
    width: 100%;
    height: 60px;
    z-index: 990;
    background: rgba(0, 150, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: center; /* 수평 중앙 정렬 추가 */
    overflow: hidden;
  }

  .support-message {
    color: white;
    font-size: clamp(1.2rem, 4vw, 2rem);
    white-space: nowrap;
    position: absolute;
    /* animation: supportMessageRoll 3s ease-out forwards; */
    top: 50%; /* 컨테이너의 정중앙으로 설정 */
    left: 50%;
    transform: translate(-50%, -50%); /* X, Y 모두 중앙 정렬 */
    opacity: 0;
  }

  /* Support message button - positioned above support message container */
    .support-btn {
    position: fixed;
    background: #007bff;
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 14px;
    z-index: 999;
    box-shadow: 0 2px 10px rgba(0, 123, 255, 0.3);
    transition: all 0.3s ease;
    font-size: clamp(1.2rem, 2.5vw, 1.6rem);
  }

  .support-btn:hover {
    background: #0056b3;
    transform: scale(1.05);
  }

  /* Animation for support message rolling up */
  @keyframes supportMessageRoll {
    0% {
      bottom: -40px;
      opacity: 0;
    }
    10% {
      bottom: 0px;
      opacity: 1;
    }
    90% {
      bottom: 0px;
      opacity: 1;
    }
    100% {
      bottom: 40px;
      opacity: 0;
    }
  }

 

/* ======================================================== */
/* Widget Container */
/* ======================================================== */
/* Widget Area Styles */
  /* Widget Area Styles */
  .widget-container {
    position: fixed;
    bottom: 30%;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 20px;
    z-index: 999;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 15px 20px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  }

  .widget-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 10px;
    border-radius: 15px;
    min-width: 70px;
  }

  .widget-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
  }

  .widget-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
  }

  .widget-item:hover .widget-icon {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  }

  .widget-name {
    color: white;
    font-size: clamp(0.75rem, 1.5vw, 0.9rem);
    font-weight: 500;
    text-align: center;
    white-space: nowrap;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
  }

  /* Individual widget icon colors */
  .widget-weather .widget-icon {
    background: linear-gradient(135deg, #74b9ff, #0984e3);
  }

  .widget-news .widget-icon {
    background: linear-gradient(135deg, #fd79a8, #e84393);
  }

  .widget-trading .widget-icon {
    background: linear-gradient(135deg, #55efc4, #00b894);
  }

  .widget-ai .widget-icon {
    background: linear-gradient(135deg, #fdcb6e, #e17055);
  }

  /* Responsive design for widgets - 수정된 미디어 쿼리 */
  
  /* 큰 태블릿/작은 데스크톱 */
  @media screen and (max-width: 960px) {
    .widget-container {
      gap: 18px !important;
      padding: 14px 18px !important;
      bottom: 35% !important;
    }

    .widget-item {
      min-width: 65px !important;
      padding: 9px !important;
    }

    .widget-icon {
      width: 52px !important;
      height: 52px !important;
      font-size: 22px !important; /* 100px → 22px로 수정 */
    }

    .widget-name {
      font-size: clamp(0.8rem, 2.2vw, 1rem) !important; /* 120px → 적절한 값으로 수정 */
    }
  }

  /* 태블릿 */
  @media screen and (max-width: 768px) {
    .widget-container {
      gap: 20px !important;
      padding: 20px 25px !important;
      bottom: 32% !important;
    }

    .widget-item {
      min-width: 80px !important;
      padding: 12px !important;
    }

    .widget-icon {
      width: 56px !important; /* 100px → 56px로 수정 */
      height: 56px !important; /* 100px → 56px로 수정 */
      font-size: 28px !important;
    }

    .widget-name {
      font-size: clamp(0.9rem, 3vw, 1.1rem) !important;
      margin-top: 8px;
    }
  }

  /* 모바일 */
  @media screen and (max-width: 480px) {
    .widget-container {
      gap: 5px !important; /* 18px → 10px로 간격 줄임 */
      padding: 10px 18px !important; /* 18px 20px → 10px 18px로 줄임 */
      bottom: 30% !important;
      width: 84% !important; /* 너비를 80%로 설정 */
      max-width: 400px !important;
    }

    .widget-item {
      min-width: 65px !important; /* 75px → 65px로 줄임 */
      padding: 5px !important; /* 10px → 8px로 줄임 */
    }

    .widget-icon {
      width: 42px !important; /* 50px → 42px로 줄임 */
      height: 42px !important; /* 50px → 42px로 줄임 */
      font-size: 20px !important; /* 24px → 20px로 줄임 */
    }

    .widget-name {
      font-size: clamp(0.75rem, 3.5vw, 0.55rem) !important; /* 약간 줄임 */
      margin-top: 6px; /* 8px → 6px로 줄임 */
    }
  }

  /* 초소형 모바일 */
  @media screen and (max-width: 320px) {
    .widget-container {
      gap: 10px !important; /* 12px → 10px로 줄임 */
      padding: 12px !important; /* 15px → 12px로 줄임 */
      width: 95% !important;
      bottom: 28% !important;
    }

    .widget-item {
      min-width: 55px !important; /* 65px → 55px로 줄임 */
      padding: 6px !important; /* 8px → 6px로 줄임 */
    }

    .widget-icon {
      width: 36px !important; /* 45px → 36px로 줄임 */
      height: 36px !important; /* 45px → 36px로 줄임 */
      font-size: 18px !important; /* 22px → 18px로 줄임 */
    }

    .widget-name {
      font-size: 0.7rem !important; /* 0.8rem → 0.7rem로 줄임 */
      line-height: 1.1; /* 1.2 → 1.1로 줄임 */
      margin-top: 4px; /* 간격 추가 */
    }
  }
  
        /* 업데이트된 Support Message Container */
        .support-message-container {
            position: fixed;
            bottom: 80px; /* ticker 위에 배치 */
            left: 0;
            width: 100%;
            padding:10px 0;
            height: 80px; /* 높이 증가 */
            z-index: 990;
            background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
            display: flex;
            align-items: center;
            justify-content: center;
            overflow: hidden;
            border-top: 2px solid rgba(255, 255, 255, 0.1);
            box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.3);
        }

        /* 메시지 아이템 컨테이너 - 세로 레이아웃으로 변경 */
        .support-message {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            /* text long white space */
            white-space: normal; /* 줄바꿈 허용 */

            width: 90%;
            max-width: 1200px;
            color: white;
            white-space: nowrap;
            position: absolute;
            animation: supportMessageRoll 7s ease-out forwards;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            opacity: 0;
            padding: 0 20px;
            box-sizing: border-box;
            gap: 8px; /* 메시지와 통계 사이 간격 */
        }

        /* 메시지 텍스트 영역 */
        .message-text {
            font-weight: 600;
            text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
            text-align: center;
            width: 100%;
            font-size: clamp(1rem, 3.5vw, 1.6rem); /* 반응형 텍스트 크기 */
            line-height: 1.2;
        }

        /* 통계 영역 */
        .message-stats {
            display: flex;
            align-items: center;
            gap: 20px; /* 아이콘 간격 조정 */
            background: rgba(255, 255, 255, 0.1);
            backdrop-filter: blur(10px);
            border-radius: 20px;
            padding: 6px 16px; /* 패딩 조정 */
            border: 1px solid rgba(255, 255, 255, 0.2);
            margin-top: 4px; /* 상단 여백 */
        }

        /* 개별 통계 아이템 */
        .stat-item {
            display: flex;
            align-items: center;
            gap: 4px;
            font-weight: 600;
            font-size: clamp(0.8rem, 2.2vw, 1rem); /* 반응형 크기 조정 */
            transition: transform 0.3s ease;
        }

        .stat-item:hover {
            transform: scale(1.1);
        }

        /* 아이콘 스타일 */
        .stat-icon {
            font-size: clamp(0.9rem, 2.5vw, 1.1rem); /* 반응형 아이콘 크기 */
            filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
        }

        .stat-number {
            color: #ffffff;
            text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
            font-weight: 700;
            font-size: clamp(0.8rem, 2.2vw, 1rem); /* 반응형 숫자 크기 */
        }

        /* 메시지 타입별 색상 */
        /* .message-positive {
            background: linear-gradient(135deg, #10b981 0%, #059669 100%);
        }

        .message-neutral {
            background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
        }

        .message-special {
            background: linear-gradient(135deg, #7c3aed 0%, #5b21b6 100%);
        } */

        /* 애니메이션 - 기존과 동일하게 하단에서 상단으로 롤링 */
        @keyframes supportMessageRoll {
            0% {
                bottom: -80px;
                opacity: 0;
                transform: translate(-50%, 100%);
            }
            15% {
                bottom: 0px;
                opacity: 1;
                transform: translate(-50%, -50%);
            }
            85% {
                bottom: 0px;
                opacity: 1;
                transform: translate(-50%, -50%);
            }
            100% {
                bottom: 80px;
                opacity: 0;
                transform: translate(-50%, -200%);
            }
        }

        /* Support Message Button - 위치 조정 */
        .support-btn {
            position: fixed;
            bottom: 200px;
            right: 20px;
            /* background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%); */
            color: white;
            border: none;
            padding: 12px 18px;
            border-radius: 30px;
            cursor: pointer;
            font-size: clamp(1rem, 2.2vw, 1.3rem);
            z-index: 999;
            /* box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3); */
            transition: all 0.3s ease;
            font-weight: 600;
            border: 2px solid rgba(255, 255, 255, 0.2);
        }

        .support-btn:hover {
            /* background: linear-gradient(135deg, #d97706 0%, #b45309 100%); */
            /* transform: translateY(-2px) scale(1.05); */
            /* box-shadow: 0 6px 20px rgba(245, 158, 11, 0.4); */
        }

        /* Ticker 시뮬레이션 */
        .ticker-simulation {
            position: fixed;
            bottom: 0;
            left: 0;
            width: 100%;
            height: 80px;
            background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
            border-top: 2px solid #334155;
            display: flex;
            align-items: center;
            justify-content: center;
            color: #94a3b8;
            font-size: 1.2rem;
            z-index: 2;
        }

        /* 반응형 조정 */
        @media (max-width: 768px) {
            .support-message-container {
                height: 75px; /* 높이 약간 조정 */
                bottom: 70px;
            }

            .support-btn {
                bottom: 155px; /* 버튼 위치 조정 */
                padding: 10px 15px;
                right: 15px;
            }

            .message-stats {
                gap: 15px;
                padding: 5px 12px;
                border-radius: 15px;
            }

            .stat-item {
                gap: 3px;
            }

            .message-text {
                font-size: clamp(0.9rem, 4vw, 1.3rem); /* 태블릿용 텍스트 크기 */
            }

            .stat-icon {
                font-size: clamp(0.8rem, 3vw, 1rem);
            }

            .stat-number {
                font-size: clamp(0.7rem, 2.8vw, 0.9rem);
            }

            .support-message {
                width: 95%;
                padding: 0 15px;
                gap: 6px;
            }
        }

        @media (max-width: 480px) {
            .support-message-container {
                height: 70px; /* 모바일용 높이 */
                bottom: 65px;
            }

            .support-btn {
                bottom: 145px;
                padding: 8px 12px;
            }

            .message-stats {
                gap: 12px;
                padding: 4px 10px;
                border-radius: 12px;
            }

            .support-message {
                width: 95%;
                padding: 0 10px;
                gap: 5px;
            }

            .message-text {
                font-size: clamp(0.8rem, 4.5vw, 1.1rem); /* 모바일용 텍스트 크기 */
                line-height: 1.1;
            }

            .stat-item {
                gap: 2px;
            }

            .stat-icon {
                font-size: clamp(0.7rem, 3.5vw, 0.9rem);
            }

            .stat-number {
                font-size: clamp(0.65rem, 3.2vw, 0.8rem);
            }
        }

        @media (max-width: 360px) {
            .support-message-container {
                height: 65px; /* 초소형 모바일용 */
            }

            .message-text {
                font-size: clamp(0.75rem, 5vw, 1rem);
                line-height: 1.05;
            }

            .message-stats {
                gap: 10px;
                padding: 3px 8px;
            }

            .stat-icon {
                font-size: clamp(0.65rem, 4vw, 0.8rem);
            }

            .stat-number {
                font-size: clamp(0.6rem, 3.8vw, 0.75rem);
            }

            .support-message {
                gap: 4px;
            }
        }

        /* 데모 컨트롤 */
        .demo-controls {
            position: fixed;
            top: 20px;
            right: 20px;
            z-index: 1000;
            background: rgba(30, 41, 59, 0.9);
            padding: 20px;
            border-radius: 10px;
            color: white;
        }

        .demo-controls button {
            background: #3b82f6;
            color: white;
            border: none;
            padding: 8px 12px;
            border-radius: 5px;
            cursor: pointer;
            margin: 3px;
            font-size: 0.9rem;
        }

        .demo-controls button:hover {
            background: #2563eb;
        }





        /* 메시지 클릭 모달 */
        .message-modal-overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.7);
            backdrop-filter: blur(5px);
            display: none;
            justify-content: center;
            align-items: center;
            z-index: 2000;
            animation: modalFadeIn 0.3s ease-out;
        }

        .message-modal-overlay.show {
            display: flex;
        }

        .message-modal {
            background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
            border-radius: 24px;
            padding: 0;
            width: 90%;
            max-width: 500px;
            box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
            border: 1px solid rgba(255, 255, 255, 0.1);
            overflow: hidden;
            animation: modalSlideIn 0.4s ease-out;
            position: relative;
        }

        /* 모달 헤더 */
        .modal-header {
            background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
            padding: 25px 30px;
            position: relative;
            overflow: hidden;
        }

        .modal-header::before {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
            animation: shimmer 3s infinite;
        }

        .modal-close-btn {
            position: absolute;
            top: 15px;
            right: 20px;
            background: rgba(255, 255, 255, 0.2);
            border: none;
            width: 35px;
            height: 35px;
            border-radius: 50%;
            color: white;
            font-size: 18px;
            cursor: pointer;
            transition: all 0.3s ease;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .modal-close-btn:hover {
            background: rgba(255, 255, 255, 0.3);
            transform: scale(1.1);
        }

        .modal-title {
            color: white;
            font-size: clamp(1.3rem, 2.5vw, 1.6rem);
            font-weight: 700;
            margin: 0;
            padding-right: 50px;
            text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
        }

        .modal-subtitle {
            color: rgba(255, 255, 255, 0.8);
            font-size: clamp(0.9rem, 1.5vw, 1rem);
            margin: 8px 0 0 0;
            padding-right: 50px;
        }

        /* 모달 콘텐츠 */
        .modal-content {
            padding: 30px;
        }

        .modal-message {
            background: rgba(59, 130, 246, 0.1);
            border: 1px solid rgba(59, 130, 246, 0.2);
            border-radius: 16px;
            padding: 25px;
            margin-bottom: 25px;
            position: relative;
        }

        .modal-message::before {
            content: '💬';
            position: absolute;
            top: -10px;
            left: 20px;
            font-size: 1.5rem;
            background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
            padding: 5px 10px;
            border-radius: 50%;
        }

        .modal-message-text {
            color: #e2e8f0;
            font-size: clamp(1.1rem, 2vw, 1.3rem);
            line-height: 1.6;
            text-align: center;
            margin: 0;
            font-weight: 500;
        }

        /* 모달 통계 영역 */
        .modal-stats-section {
            margin-top: 25px;
        }

        .modal-stats-title {
            color: #94a3b8;
            font-size: clamp(0.9rem, 1.5vw, 1rem);
            font-weight: 600;
            margin-bottom: 20px;
            text-align: center;
            text-transform: uppercase;
            letter-spacing: 1px;
        }

        .modal-stats-grid {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 20px;
        }

        .modal-stat-card {
            background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%);
            border: 1px solid rgba(255, 255, 255, 0.1);
            border-radius: 16px;
            padding: 20px;
            text-align: center;
            transition: all 0.3s ease;
            position: relative;
            overflow: hidden;
        }

        .modal-stat-card:hover {
            transform: translateY(-3px);
            background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
        }

        .modal-stat-card::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 3px;
            background: linear-gradient(90deg, #3b82f6, #06b6d4, #10b981);
        }

        .modal-stat-icon {
            font-size: 2.5rem;
            margin-bottom: 12px;
            display: block;
            filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
        }

        .modal-stat-number {
            color: white;
            font-size: clamp(1.8rem, 3vw, 2.2rem);
            font-weight: 700;
            margin-bottom: 8px;
            text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
        }

        .modal-stat-label {
            color: #94a3b8;
            font-size: clamp(0.8rem, 1.3vw, 0.9rem);
            font-weight: 500;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }

        /* 액션 버튼들 */
        .modal-actions {
            display: flex;
            gap: 15px;
            margin-top: 30px;
            padding-top: 25px;
            border-top: 1px solid rgba(255, 255, 255, 0.1);
        }

        .modal-action-btn {
            flex: 1;
            padding: 15px 20px;
            border: none;
            border-radius: 12px;
            font-size: clamp(0.9rem, 1.5vw, 1rem);
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s ease;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
        }

        .btn-like {
            background: linear-gradient(135deg, #10b981 0%, #059669 100%);
            color: white;
            box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
        }

        .btn-like:hover {
            transform: translateY(-2px);
            box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
        }

        .btn-love {
            background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
            color: white;
            box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3);
        }

        .btn-love:hover {
            transform: translateY(-2px);
            box-shadow: 0 6px 20px rgba(245, 158, 11, 0.4);
        }

        /* 애니메이션 */
        @keyframes supportMessageRoll {
            0% {
                bottom: -80px;
                opacity: 0;
                transform: translate(-50%, 100%);
            }
            15% {
                bottom: 0px;
                opacity: 1;
                transform: translate(-50%, -50%);
            }
            85% {
                bottom: 0px;
                opacity: 1;
                transform: translate(-50%, -50%);
            }
            100% {
                bottom: 80px;
                opacity: 0;
                transform: translate(-50%, -200%);
            }
        }

        @keyframes modalFadeIn {
            from { opacity: 0; }
            to { opacity: 1; }
        }

        @keyframes modalSlideIn {
            from {
                opacity: 0;
                transform: translateY(50px) scale(0.9);
            }
            to {
                opacity: 1;
                transform: translateY(0) scale(1);
            }
        }

        @keyframes shimmer {
            0% { left: -100%; }
            100% { left: 100%; }
        }

        /* Ticker 시뮬레이션 */
        .ticker-simulation {
            position: fixed;
            bottom: 0;
            left: 0;
            width: 100%;
            height: 80px;
            background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
            border-top: 2px solid #334155;
            display: flex;
            align-items: center;
            justify-content: center;
            color: #94a3b8;
            font-size: 1.2rem;
            z-index: 2;
        }

        /* 반응형 */
        @media (max-width: 768px) {
            .message-modal {
                width: 95%;
                margin: 0 10px;
            }

            .modal-header {
                padding: 20px 25px;
            }

            .modal-content {
                padding: 25px;
            }

            /* .modal-stats-grid {
                grid-template-columns: 1fr;
                gap: 15px;
            } */

            .modal-actions {
                flex-direction: column;
            }
        }

        @media (max-width: 480px) {
            .modal-stats-grid {
                gap: 12px;
            }

            .modal-stat-card {
                padding: 15px;
            }

            .modal-actions {
                gap: 12px;
            }
        }

        /* 데모 컨트롤 */
        .demo-controls {
            position: fixed;
            top: 20px;
            right: 20px;
            z-index: 1000;
            background: rgba(30, 41, 59, 0.9);
            padding: 20px;
            border-radius: 10px;
            color: white;
        }

        .demo-controls button {
            background: #3b82f6;
            color: white;
            border: none;
            padding: 8px 12px;
            border-radius: 5px;
            cursor: pointer;
            margin: 3px;
            font-size: 0.9rem;
        }

        .demo-controls button:hover {
            background: #2563eb;
        }


        /* 응원 메시지 작성 모달 */
        .support-modal-overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.8);
            backdrop-filter: blur(8px);
            display: none;
            justify-content: center;
            align-items: center;
            z-index: 2000;
            animation: modalFadeIn 0.3s ease-out;
        }

        .support-modal-overlay.show {
            display: flex;
        }

        .support-modal {
            background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
            border-radius: 28px;
            padding: 0;
            width: 90%;
            max-width: 550px;
            box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6);
            border: 1px solid rgba(255, 255, 255, 0.1);
            overflow: hidden;
            animation: modalSlideIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
            position: relative;
        }

        /* 모달 헤더 */
        .support-modal-header {
            background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
            padding: 30px 35px;
            position: relative;
            overflow: hidden;
        }

        .support-modal-header::before {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
            animation: shimmer 3s infinite;
        }

        .support-modal-header::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 0;
            right: 0;
            height: 4px;
            background: linear-gradient(90deg, #fbbf24, #f59e0b, #d97706);
        }

        .modal-close-btn {
            position: absolute;
            top: 20px;
            right: 25px;
            background: rgba(255, 255, 255, 0.2);
            border: none;
            width: 40px;
            height: 40px;
            border-radius: 50%;
            color: white;
            font-size: 20px;
            cursor: pointer;
            transition: all 0.3s ease;
            display: flex;
            align-items: center;
            justify-content: center;
            backdrop-filter: blur(10px);
        }

        .modal-close-btn:hover {
            background: rgba(255, 255, 255, 0.3);
            transform: scale(1.1) rotate(90deg);
        }

        .support-modal-title {
            color: white;
            font-size: clamp(1.5rem, 3vw, 1.8rem);
            font-weight: 700;
            margin: 0;
            padding-right: 60px;
            text-shadow: 0 2px 15px rgba(0, 0, 0, 0.4);
            display: flex;
            align-items: center;
            gap: 12px;
        }

        .support-modal-subtitle {
            color: rgba(255, 255, 255, 0.9);
            font-size: clamp(1rem, 1.8vw, 1.1rem);
            margin: 10px 0 0 0;
            padding-right: 60px;
            opacity: 0.9;
        }

        /* 모달 콘텐츠 */
        .support-modal-content {
            padding: 35px;
        }

        /* 감정 선택 영역 */
        .emotion-selector {
            margin-bottom: 25px;
        }

        .emotion-title {
            color: #94a3b8;
            font-size: clamp(0.9rem, 1.5vw, 1rem);
            font-weight: 600;
            margin-bottom: 15px;
            text-transform: uppercase;
            letter-spacing: 1px;
        }

        .emotion-options {
            display: flex;
            gap: 12px;
            flex-wrap: wrap;
        }

        .emotion-btn {
            background: rgba(255, 255, 255, 0.05);
            border: 2px solid rgba(255, 255, 255, 0.1);
            border-radius: 50px;
            padding: 12px 20px;
            color: #e2e8f0;
            cursor: pointer;
            transition: all 0.3s ease;
            font-size: clamp(0.9rem, 1.4vw, 1rem);
            font-weight: 500;
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .emotion-btn:hover {
            background: rgba(255, 255, 255, 0.1);
            border-color: rgba(255, 255, 255, 0.3);
            transform: translateY(-2px);
        }

        .emotion-btn.selected {
            background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
            border-color: #f59e0b;
            color: white;
            transform: translateY(-2px);
            box-shadow: 0 5px 15px rgba(245, 158, 11, 0.3);
        }

        /* 메시지 입력 영역 */
        .message-input-section {
            margin-bottom: 25px;
        }

        .message-label {
            color: #e2e8f0;
            font-size: clamp(1rem, 1.6vw, 1.1rem);
            font-weight: 600;
            margin-bottom: 12px;
            display: block;
        }

        .message-textarea {
            width: 100%;
            min-height: 120px;
            padding: 20px;
            border: 2px solid rgba(255, 255, 255, 0.1);
            border-radius: 16px;
            background: rgba(15, 23, 42, 0.6);
            color: #e2e8f0;
            font-size: clamp(1rem, 1.5vw, 1.1rem);
            line-height: 1.6;
            resize: vertical;
            transition: all 0.3s ease;
            font-family: inherit;
            box-sizing: border-box;
        }

        .message-textarea:focus {
            outline: none;
            border-color: #f59e0b;
            background: rgba(15, 23, 42, 0.8);
            box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.1);
        }

        .message-textarea::placeholder {
            color: #94a3b8;
            font-style: italic;
        }

        .char-counter {
            text-align: right;
            margin-top: 8px;
            font-size: clamp(0.8rem, 1.3vw, 0.9rem);
            color: #94a3b8;
        }

        .char-counter.warning {
            color: #f59e0b;
        }

        .char-counter.danger {
            color: #ef4444;
        }

        /* 액션 버튼들 */
        .modal-actions {
            display: flex;
            gap: 15px;
            margin-top: 30px;
            padding-top: 25px;
            border-top: 1px solid rgba(255, 255, 255, 0.1);
        }

        .modal-action-btn {
            flex: 1;
            padding: 18px 25px;
            border: none;
            border-radius: 16px;
            font-size: clamp(1rem, 1.6vw, 1.1rem);
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s ease;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 10px;
        }

        .btn-cancel {
            background: rgba(255, 255, 255, 0.1);
            color: #94a3b8;
            border: 2px solid rgba(255, 255, 255, 0.1);
        }

        .btn-cancel:hover {
            background: rgba(255, 255, 255, 0.15);
            border-color: rgba(255, 255, 255, 0.2);
            color: #e2e8f0;
        }

        .btn-submit {
            background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
            color: white;
            box-shadow: 0 6px 20px rgba(245, 158, 11, 0.3);
        }

        .btn-submit:hover:not(:disabled) {
            background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
            transform: translateY(-2px);
            box-shadow: 0 8px 25px rgba(245, 158, 11, 0.4);
        }

        .btn-submit:disabled {
            background: rgba(148, 163, 184, 0.3);
            color: rgba(255, 255, 255, 0.5);
            cursor: not-allowed;
            box-shadow: none;
        }

        /* 성공 토스트 */
        .success-toast {
            position: fixed;
            top: 20px;
            right: 20px;
            background: linear-gradient(135deg, #10b981 0%, #059669 100%);
            color: white;
            padding: 20px 25px;
            border-radius: 16px;
            box-shadow: 0 10px 30px rgba(16, 185, 129, 0.4);
            z-index: 3000;
            opacity: 0;
            transform: translateX(100%);
            transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
            font-weight: 600;
            font-size: clamp(1rem, 1.5vw, 1.1rem);
            display: flex;
            align-items: center;
            gap: 12px;
        }

        .success-toast.show {
            opacity: 1;
            transform: translateX(0);
        }

        /* 애니메이션 */
        @keyframes supportMessageRoll {
            0% {
                bottom: -80px;
                opacity: 0;
                transform: translate(-50%, 100%);
            }
            15% {
                bottom: 0px;
                opacity: 1;
                transform: translate(-50%, -50%);
            }
            85% {
                bottom: 0px;
                opacity: 1;
                transform: translate(-50%, -50%);
            }
            100% {
                bottom: 80px;
                opacity: 0;
                transform: translate(-50%, -200%);
            }
        }

        @keyframes modalFadeIn {
            from { opacity: 0; }
            to { opacity: 1; }
        }

        @keyframes modalSlideIn {
            from {
                opacity: 0;
                transform: translateY(60px) scale(0.8);
            }
            to {
                opacity: 1;
                transform: translateY(0) scale(1);
            }
        }

        @keyframes shimmer {
            0% { left: -100%; }
            100% { left: 100%; }
        }

        /* Ticker 시뮬레이션 */
        .ticker-simulation {
            position: fixed;
            bottom: 0;
            left: 0;
            width: 100%;
            height: 80px;
            background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
            border-top: 2px solid #334155;
            display: flex;
            align-items: center;
            justify-content: center;
            color: #94a3b8;
            font-size: 1.2rem;
            z-index: 2;
        }

        /* 반응형 */
        @media (max-width: 768px) {
            .support-modal {
                width: 95%;
                margin: 0 10px;
            }

            .support-modal-header {
                padding: 25px 30px;
            }

            .support-modal-content {
                padding: 30px;
            }

            .emotion-options {
                gap: 8px;
            }

            .emotion-btn {
                padding: 10px 16px;
                font-size: 0.9rem;
            }

            .modal-actions {
                flex-direction: column;
            }

            .support-btn {
                bottom: 160px;
                right: 15px;
                padding: 12px 20px;
            }
        }

        @media (max-width: 480px) {
            .support-modal-content {
                padding: 25px;
            }

            .emotion-options {
                gap: 6px;
            }

            .emotion-btn {
                padding: 8px 14px;
                font-size: 0.85rem;
            }
        }