/* WSOP 기본 스타일 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: #000;
    color: #fff;
    font-family: 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    overflow-x: auto;
}

/* WSOP 헤더 - 모든 경계선 제거 */
.wsop-header {
    background: #000;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    height: 64px;
    border: none !important;
    border-bottom: none !important;
    box-shadow: none !important;
    outline: none !important;
}

/* 헤더 아래 흰색선 완전 제거 */
.wsop-header + * {
    border-top: none !important;
}

/* 헤더 하단 흰색선 완전 제거를 위한 추가 스타일 */
.wsop-header::after,
.wsop-header::before {
    display: none !important;
}

.header-container {
    max-width: 1440px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    height: 100%;
    padding: 0 20px;
    border: none !important;
    box-shadow: none !important;
}

.header-container::after,
.header-container::before {
    display: none !important;
}

.wsop-logo {
    margin-right: 60px;
    cursor: pointer;
}

.wsop-logo img {
    height: 28px;
    display: block;
    transition: opacity 0.2s ease;
}

.wsop-logo:hover img {
    opacity: 0.8;
}

.main-nav {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 40px;
    height: 100%;
}

.nav-item {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
}

.nav-link {
    color: #fff;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    display: flex;
    align-items: center;
    height: 100%;
    position: relative;
    transition: color 0.2s ease;
    cursor: pointer;
    white-space: nowrap;
    letter-spacing: 0.3px;
    padding: 0 5px;
}

/* nav-link의 밑줄 효과 - 헤더 경계선과 혼동되지 않도록 위치 조정 */
.nav-link::after {
    content: '';
    position: absolute;
    bottom: 3px; /* 바닥에서 살짝 위로 */
    left: 0;
    right: 0;
    height: 3px;
    background: #e4032e;
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.nav-link:hover::after {
    transform: scaleX(1);
}

.nav-link.active::after {
    transform: scaleX(1);
}

.nav-link:hover {
    color: #e4032e;
}

.nav-link.has-dropdown {
    padding-right: 18px;
}

.nav-link.has-dropdown::before {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    border: solid #999;
    border-width: 0 1.5px 1.5px 0;
    display: inline-block;
    padding: 2.5px;
    transform: translateY(-65%) rotate(45deg);
    transition: all 0.2s ease;
}

.nav-item:hover .nav-link.has-dropdown::before {
    border-color: #fff;
    transform: translateY(-35%) rotate(225deg);
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #2a2a2a;
    min-width: 200px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.9);
    border-top: none !important;
}

.nav-item:hover .dropdown-menu {
    display: block;
}

.dropdown-item {
    display: block;
    padding: 12px 18px;
    color: #ccc;
    text-decoration: none;
    font-size: 13px;
    transition: all 0.2s ease;
    border: none;
}

.dropdown-item:hover {
    background: transparent;
    color: #e4032e;
}

.dropdown-item:last-child {
    border-bottom: none;
}

.paradise-button {
    background: linear-gradient(90deg, #00a8e1 0%, #0084b4 100%);
    padding: 8px 18px;
    border-radius: 20px;
    text-decoration: none;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.paradise-button:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 20px rgba(0, 168, 225, 0.4);
    border-color: #00d4ff;
}

.paradise-button img {
    height: 24px;
}

/* 메인 컨텐츠 - 헤더와의 경계선 제거 */
.main-content {
    margin-top: 64px;
    min-height: calc(100vh - 64px);
    background: #0a0a0a;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    border: none !important;
    border-top: none !important;
    box-shadow: none !important;
    outline: none !important;
}

/* 메인 컨텐츠와 탭 사이 경계선 제거 */
.main-content > * {
    border-top: none !important;
    box-shadow: none !important;
}

/* 히어로 섹션 - 중앙 정렬 수정 */
.hero-section {
width: 100%;
height: calc(100vh - 64px);
background: url('../bahama_paradise.jpg') center center/cover no-repeat;
display: flex;
align-items: center;
justify-content: center;
position: relative;
overflow: hidden;
transition: all 0.5s ease;
filter: brightness(1.3);
border-top: none !important;
}

.hero-section.hidden {
    display: none;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0) 0%, rgba(0,0,0,0.2) 100%);
}

.hero-content {
    text-align: center;
    z-index: 2;
    animation: fadeInUp 1s ease;
}

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

.hero-title {
    font-size: 72px;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 3px 3px 15px rgba(0, 0, 0, 0.95);
    letter-spacing: 3px;
}

.hero-subtitle {
    font-size: 28px;
    color: #fff;
    margin-bottom: 40px;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.9);
    font-weight: 300;
}

/* 추가된 이미지 쇼케이스 섹션 */
.image-showcase {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 60px;
    margin-top: 60px;
    animation: fadeIn 1.5s ease;
}

.showcase-item {
    text-align: center;
    transition: transform 0.3s ease;
}

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

.showcase-item img {
    height: 120px;
    width: auto;
    filter: drop-shadow(0 5px 20px rgba(255,255,255,0.3));
    transition: filter 0.3s ease;
}

.showcase-item:hover img {
    filter: drop-shadow(0 8px 30px rgba(255,255,255,0.5));
}

.showcase-label {
    margin-top: 15px;
    color: #fff;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 2px;
    opacity: 0.8;
}

/* 칩 애니메이션 */
.floating-chips {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
}

.chip {
position: absolute;
width: 100px;
height: 100px;
background: url('../WSOP_bahama_chip.png') center/contain no-repeat;
animation: float 20s infinite ease-in-out;
opacity: 0.9;
}

.chip:nth-child(1) { left: 10%; top: 20%; animation-delay: 0s; }
.chip:nth-child(2) { left: 80%; top: 30%; animation-delay: 3s; }
.chip:nth-child(3) { left: 30%; top: 60%; animation-delay: 6s; }
.chip:nth-child(4) { left: 70%; top: 70%; animation-delay: 9s; }
.chip:nth-child(5) { left: 50%; top: 40%; animation-delay: 12s; }

@keyframes float {
    0%, 100% { 
        transform: translateY(0) rotate(0deg) scale(1); 
    }
    25% {
        transform: translateY(-30px) rotate(90deg) scale(1.1);
    }
    50% { 
        transform: translateY(-60px) rotate(180deg) scale(1.2); 
    }
    75% {
        transform: translateY(-30px) rotate(270deg) scale(1.1);
    }
}

/* 탭 컨텐츠 - 중앙 정렬 수정 */
.tab-content {
    display: none;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 20px;
    animation: fadeIn 0.5s ease;
    background: transparent;
    border: none !important;
    border-top: none !important;
    border-bottom: none !important;
}

/* 탭 컨텐츠 내부 모든 경계선 제거 */
.tab-content > * {
    border-top: none !important;
}

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

.tab-content.active {
    display: block;
}

/* 체크박스가 있는 탭들 전체 배경 검정 */
#statistics-tab,
#history-tab,
#winning-numbers-tab {
    background: transparent !important;
}

/* 서브탭 메뉴 - 깔끔한 탭 스타일 */
.inner-tabs {
    display: flex;
    gap: 20px;
    margin: 0 0 30px 0;
    padding: 0;
    background: transparent !important;
    border: none !important;
    border-bottom: none !important;
    align-items: center;
    position: relative;
}

/* 서브탭 아래 흰색선 제거 */
.inner-tabs::after {
    display: none !important;
}

.inner-tab-btn {
    padding: 8px 0;
    background: transparent;
    border: none;
    color: #999;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 15px;
    font-weight: 500;
    position: relative;
    display: flex;
    align-items: center;
    white-space: nowrap;
    letter-spacing: 0.3px;
}

.inner-tab-btn::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: #e4032e;
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.inner-tab-btn:hover {
    color: #fff;
}

.inner-tab-btn:hover::after {
    transform: scaleX(1);
}

.inner-tab-btn.active {
    color: #e4032e;
}

.inner-tab-btn.active::after {
    transform: scaleX(1);
}

/* 활성 탭 하단 밑줄 제거 */

.inner-tab-content {
    display: none;
    width: 100%;
}

.inner-tab-content.active {
    display: block;
}

/* 옵션 컨테이너 - 중앙 정렬 */
.options {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
}

/* WSOP 카드 스타일 - 중앙 정렬 수정 */
.wsop-card {
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 8px;
    overflow: hidden;
    margin: 0 auto 30px auto;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    width: 100%;
    max-width: 100%;
}

.wsop-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(228, 3, 46, 0.15);
}

.card-header {
    background: linear-gradient(135deg, #2a2a2a 0%, #1a1a1a 100%);
    padding: 20px;
    border-bottom: none;
}

.card-title {
    font-size: 20px;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fff;
}

.card-body {
    padding: 20px;
}

/* 번호 그리드 */
.number-grid {
    display: grid;
    grid-template-columns: repeat(9, 1fr);
    gap: 10px;
    margin: 20px auto;
    max-width: 600px;
}

.number-btn {
    background: #2a2a2a;
    border: 2px solid #444;
    color: #999;
    padding: 0;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    font-weight: bold;
    font-size: 16px;
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.number-btn:hover {
    background: #333;
    color: #fff;
    border-color: #666;
    transform: scale(1.1);
}

.number-btn.selected {
    background: #e4032e !important;
    color: #fff !important;
    border: 2px solid #e4032e !important;
}

/* 핫/콜드 넘버 스타일 */
.number-btn.hot-number::after {
    content: '🔥';
    position: absolute;
    top: -8px;
    right: -8px;
    font-size: 12px;
}

.number-btn.cold-number::after {
    content: '❄️';
    position: absolute;
    top: -8px;
    right: -8px;
    font-size: 12px;
}

/* WSOP 포커칩 스타일의 로또 볼 - 텍스트 완벽 중앙 정렬 */
.number-ball,
.lotto-ball {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 16px;
    color: #fff;
    margin: 0 2px;
    position: relative;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
    animation: popIn 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    background-size: cover;
    overflow: hidden;
    transform-style: preserve-3d;
    cursor: pointer;
    transition: transform 0.3s ease;
    text-align: center;
    line-height: 40px;
    padding: 0;
    font-family: 'Arial', sans-serif;
}

.number-ball:hover,
.lotto-ball:hover {
    transform: translateY(-3px) scale(1.1);
}

/* 번호별 WSOP 포커칩 컬러 - getNumberColor 함수와 연동 */

/* 보너스 볼 특별 스타일 */
.ball-bonus {
    background: radial-gradient(circle at 30% 30%, #E040FB 0%, #9C27B0 20%, #6A1B9A 60%, #4A148C 100%);
    box-shadow: 
        0 2px 5px rgba(0, 0, 0, 0.4),
        inset 0 -3px 5px rgba(0, 0, 0, 0.3),
        inset 0 2px 3px rgba(255, 255, 255, 0.5),
        0 0 25px rgba(156, 39, 176, 0.5),
        0 0 40px rgba(224, 64, 251, 0.3);
    border: 1px solid rgba(74, 20, 140, 0.8);
    position: relative;
    animation: bonusPulse 2s infinite;
}

@keyframes bonusPulse {
    0%, 100% { box-shadow: 
        0 2px 5px rgba(0, 0, 0, 0.4),
        inset 0 -3px 5px rgba(0, 0, 0, 0.3),
        inset 0 2px 3px rgba(255, 255, 255, 0.5),
        0 0 25px rgba(156, 39, 176, 0.5),
        0 0 40px rgba(224, 64, 251, 0.3);
    }
    50% { box-shadow: 
        0 2px 5px rgba(0, 0, 0, 0.4),
        inset 0 -3px 5px rgba(0, 0, 0, 0.3),
        inset 0 2px 3px rgba(255, 255, 255, 0.5),
        0 0 35px rgba(156, 39, 176, 0.8),
        0 0 60px rgba(224, 64, 251, 0.5);
    }
}

/* 구간별 간편 클래스 */
.ball-yellow { /* 1-10 */
    background: radial-gradient(circle at 30% 30%, #FFD700 0%, #FFC107 20%, #FF8F00 60%, #E65100 100%);
    box-shadow: 
        0 2px 5px rgba(0, 0, 0, 0.4),
        inset 0 -3px 5px rgba(0, 0, 0, 0.3),
        inset 0 2px 3px rgba(255, 255, 255, 0.5),
        0 0 20px rgba(255, 193, 7, 0.3);
    border: 1px solid rgba(230, 81, 0, 0.6);
}

.ball-blue { /* 11-20 */
    background: radial-gradient(circle at 30% 30%, #64B5F6 0%, #2196F3 20%, #1565C0 60%, #0D47A1 100%);
    box-shadow: 
        0 2px 5px rgba(0, 0, 0, 0.4),
        inset 0 -3px 5px rgba(0, 0, 0, 0.3),
        inset 0 2px 3px rgba(255, 255, 255, 0.5),
        0 0 20px rgba(33, 150, 243, 0.3);
    border: 1px solid rgba(13, 71, 161, 0.6);
}

.ball-red { /* 21-30 */
    background: radial-gradient(circle at 30% 30%, #EF5350 0%, #F44336 20%, #D32F2F 60%, #B71C1C 100%);
    box-shadow: 
        0 2px 5px rgba(0, 0, 0, 0.4),
        inset 0 -3px 5px rgba(0, 0, 0, 0.3),
        inset 0 2px 3px rgba(255, 255, 255, 0.5),
        0 0 20px rgba(244, 67, 54, 0.3);
    border: 1px solid rgba(183, 28, 28, 0.6);
}

.ball-gray { /* 31-40 */
    background: radial-gradient(circle at 30% 30%, #BDBDBD 0%, #9E9E9E 20%, #616161 60%, #424242 100%);
    box-shadow: 
        0 2px 5px rgba(0, 0, 0, 0.4),
        inset 0 -3px 5px rgba(0, 0, 0, 0.3),
        inset 0 2px 3px rgba(255, 255, 255, 0.5),
        0 0 20px rgba(158, 158, 158, 0.2);
    border: 1px solid rgba(66, 66, 66, 0.6);
}

.ball-green { /* 41-45 */
    background: radial-gradient(circle at 30% 30%, #81C784 0%, #4CAF50 20%, #2E7D32 60%, #1B5E20 100%);
    box-shadow: 
        0 2px 5px rgba(0, 0, 0, 0.4),
        inset 0 -3px 5px rgba(0, 0, 0, 0.3),
        inset 0 2px 3px rgba(255, 255, 255, 0.5),
        0 0 20px rgba(76, 175, 80, 0.3);
    border: 1px solid rgba(27, 94, 32, 0.6);
}

@keyframes popIn {
    0% { 
        transform: scale(0) rotate(-180deg); 
        opacity: 0; 
    }
    60% { 
        transform: scale(1.2) rotate(20deg); 
        opacity: 1; 
    }
    100% { 
        transform: scale(1) rotate(0); 
        opacity: 1; 
    }
}

/* 볼 컨테이너 스타일 개선 */
.number-set-balls {
    display: flex;
    gap: 12px;
    justify-content: center;
    padding: 10px;
    background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
    border-radius: 10px;
    box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.3);
}

/* 버튼 스타일 */
.btn {
    padding: 12px 30px;
    border: none;
    border-radius: 50px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    margin: 5px;
}

.btn-primary {
    background: #e4032e;
    color: #fff;
}

.btn-primary:hover {
    background: #ff1744;
    transform: scale(1.05);
    box-shadow: 0 5px 20px rgba(228, 3, 46, 0.4);
}

.btn-secondary {
    background: transparent;
    color: #fff;
    border: 2px solid #666;
}

.btn-secondary:hover {
    background: #333;
    border-color: #999;
}

/* 옵션 섹션 - 중앙 정렬 수정 */
.option-section {
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 8px;
    padding: 20px;
    margin: 0 auto 20px auto;
    width: 100%;
    max-width: 100%;
}

.option-section h4 {
    color: #e4032e;
    margin-bottom: 15px;
    font-size: 16px;
}

.option-row {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
}

.option-group {
    flex: 1;
    min-width: 200px;
    max-width: 300px;
}

.option-group label {
    display: block;
    color: #999;
    margin-bottom: 5px;
    font-size: 13px;
}

.option-group input,
.option-group select {
    width: 100%;
    padding: 8px;
    background: #2a2a2a;
    border: 1px solid #444;
    color: #fff;
    border-radius: 4px;
}

.option-group input[type="checkbox"] {
    width: auto;
    margin-right: 8px;
}

/* 프리셋 버튼 - 중앙 정렬 */
.option-presets {
    display: flex;
    gap: 10px;
    margin: 20px auto;
    flex-wrap: wrap;
    justify-content: center;
    max-width: 800px;
}

.preset-btn {
    padding: 10px 20px;
    background: #2a2a2a;
    border: 1px solid #444;
    color: #999;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.preset-btn:hover {
    background: #e4032e;
    border-color: #e4032e;
    color: #fff;
}

/* 테이블 - 중앙 정렬 */
.stats-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px auto;
    max-width: 100%;
}

.stats-table th,
.stats-table td {
    padding: 12px;
    text-align: center;
    border-bottom: 1px solid #333;
}

.stats-table th {
    background: #2a2a2a;
    color: #e4032e;
    font-weight: bold;
}

.stats-table tr:hover {
    background: #1a1a1a;
}

/* 테이블의 보너스 열 특별 스타일 */
.stats-table th:nth-child(9) {
    padding-left: 30px;
    position: relative;
}

.stats-table th:nth-child(9)::before {
    content: '+';
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #e4032e;
    font-weight: bold;
    font-size: 16px;
}

/* 통계 그리드 - 중앙 정렬 */
.stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 20px auto;
    width: 100%;
    max-width: 100%;
}

.stat-item {
    background: #2a2a2a;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #444;
    text-align: center;
}

.stat-label {
    color: #999;
    font-size: 13px;
    margin-bottom: 5px;
}

.stat-value {
    color: #e4032e;
    font-size: 24px;
    font-weight: bold;
}

/* 입력 그룹 */
.input-group {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
    align-items: center;
    justify-content: center;
}

.input-group label {
    min-width: 100px;
    color: #999;
}

.input-group input {
    flex: 1;
    max-width: 300px;
    padding: 8px;
    background: #2a2a2a;
    border: 1px solid #444;
    color: #fff;
    border-radius: 4px;
}

/* 메시지 */
.message {
    position: fixed;
    top: 80px;
    right: 20px;
    padding: 15px 20px;
    background: #e4032e;
    color: #fff;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
    display: none;
    z-index: 10000;
}

.message.show {
    display: block;
    animation: slideIn 0.3s ease;
}

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

/* 결과 영역 - 중앙 정렬 */
.results {
    margin: 30px auto;
    width: 100%;
    max-width: 1200px;
}

.number-set {
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 10px;
    padding: 15px;
    margin: 10px auto;
    max-width: 600px;
}

.number-set-header {
    color: #e4032e;
    font-weight: bold;
    margin-bottom: 10px;
    font-size: 14px;
    text-align: center;
}

/* 로딩 */
.loading {
    text-align: center;
    padding: 40px;
    color: #999;
}

.loading::after {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid #999;
    border-top-color: #e4032e;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-left: 10px;
}

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

/* 버튼 그룹 - 중앙 정렬 */
.button-group {
    text-align: center;
    margin: 30px auto;
    width: 100%;
}

/* 테이블 컨트롤 - 중앙 정렬 */
.table-controls {
    display: flex;
    gap: 10px;
    margin: 0 auto 20px auto;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}

.search-box input,
.filter-box select {
    padding: 8px;
    background: #2a2a2a;
    border: 1px solid #444;
    color: #fff;
    border-radius: 4px;
}

/* 페이지네이션 - 중앙 정렬 */
.table-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin: 20px auto;
}

.page-btn {
    padding: 8px 16px;
    background: #2a2a2a;
    border: 1px solid #444;
    color: #999;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.page-btn:hover {
    background: #e4032e;
    border-color: #e4032e;
    color: #fff;
}

#pageInfo {
    color: #999;
}

/* 삭제 버튼 스타일 */
.btn-delete {
    padding: 4px 12px;
    background: #e4032e;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.2s ease;
}

.btn-delete:hover {
    background: #ff1744;
    transform: scale(1.05);
}

/* 테이블 셀 스타일 */
.action-cell {
    text-align: center;
}

.round-cell {
    font-weight: bold;
    color: #e4032e;
}

.number-cell {
    padding: 3px !important;
    text-align: center;
    white-space: nowrap;
}

.number-cell .number-box,
.number-cell .lotto-ball {
    margin: 0 auto;
    display: inline-block;
}

/* 보너스 볼 간격 - 테이블 셀에서 특별 처리 */
.bonus-cell {
    padding-left: 30px !important;
    text-align: center;
    position: relative;
    white-space: nowrap;
}

.bonus-cell::before {
    content: '+';
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: #e4032e;
    font-weight: bold;
    font-size: 20px;
}

.bonus-cell .lotto-ball {
    display: inline-flex !important;
    position: relative;
}

/* 수동 입력 섹션 - 중앙 정렬 */
.manual-input-section {
    background: #2a2a2a;
    padding: 20px;
    border-radius: 8px;
    margin: 0 auto 20px auto;
    width: 100%;
    max-width: 800px;
}

.manual-input-section h4 {
    color: #e4032e;
    margin-bottom: 15px;
    text-align: center;
}

.manual-input-form {
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}

.manual-input-form input {
    padding: 8px;
    background: #1a1a1a;
    border: 1px solid #444;
    color: #fff;
    border-radius: 4px;
}

/* 체크박스 스타일 */
.auto-fetch-checkbox {
    display: inline-block;
    padding: 8px 15px;
    background: #2a2a2a;
    border-radius: 6px;
    border: 1px solid #444;
}

.auto-fetch-checkbox label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-weight: 500;
    color: #999;
}

.auto-fetch-checkbox input {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

/* 구매 관리 - 중앙 정렬 */
.purchase-input {
    background: #2a2a2a;
    padding: 20px;
    border-radius: 8px;
    margin: 0 auto 20px auto;
    width: 100%;
    max-width: 600px;
}

.purchase-list {
    background: #1a1a1a;
    padding: 20px;
    border-radius: 8px;
    margin: 0 auto;
    width: 100%;
    max-width: 800px;
}

.no-data {
    color: #666;
    text-align: center;
    padding: 20px;
}

/* 분석 컨트롤 - 중앙 정렬 */
.analysis-controls {
    display: flex;
    gap: 20px;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px auto;
    width: 100%;
}

.analysis-options {
    display: flex;
    align-items: center;
    gap: 10px;
}

.analysis-period-select {
    padding: 8px;
    background: #2a2a2a;
    border: 1px solid #444;
    color: #fff;
    border-radius: 4px;
}

/* 예측 컨트롤 - 중앙 정렬 */
.prediction-controls {
    text-align: center;
    padding: 20px;
    margin: 0 auto;
    width: 100%;
}

/* 히스토리 컨트롤 - 중앙 정렬 */
.history-controls {
    background: #2a2a2a;
    padding: 20px;
    border-radius: 8px;
    margin: 20px auto;
    width: 100%;
    max-width: 600px;
    text-align: center;
}

.history-controls h4 {
    color: #e4032e;
    margin-bottom: 15px;
}

.history-controls input {
    width: 100%;
    max-width: 400px;
    padding: 10px;
    background: #1a1a1a;
    border: 1px solid #444;
    color: #fff;
    border-radius: 4px;
    margin: 0 auto 15px auto;
    display: block;
}

/* getNumberColor 함수를 위한 클래스 */
.number-box {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-weight: bold;
    color: #fff;
    margin: 2px;
    text-align: center;
    line-height: 1;
}

/* iframe 컨테이너 스타일 */
.iframe-container {
    width: 100%;
    overflow: hidden;
    position: relative;
}

/* 모든 요소에 흰색 border 제거를 위한 글로벌 스타일 추가 */
header *,
.wsop-header *,
nav *,
.main-nav *,
.inner-tabs,
.inner-tabs *,
.tab-content,
.tab-content > div {
    border-top: none !important;
    border-bottom: none !important;
    box-shadow: none !important;
}

/* 특정 섹션 경계선 강제 제거 */
#statistics-tab,
#winning-numbers-tab,
#statistics-tab > *,
#winning-numbers-tab > * {
    border: none !important;
    border-top: none !important;
    border-bottom: none !important;
    box-shadow: none !important;
}

/* 로또 티켓 스캔 UI 스타일 추가 */
.scan-options {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-bottom: 20px;
}

.scan-option-btn {
    padding: 8px 16px;
    background: #2a2a2a;
    border: 1px solid #444;
    color: #999;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 13px;
}

.scan-option-btn:hover {
    background: #e4032e;
    border-color: #e4032e;
    color: #fff;
}

.scan-option-btn.active {
    background: #e4032e;
    border-color: #e4032e;
    color: #fff;
}

.scan-upload-area {
    background: linear-gradient(135deg, #4CAF50 0%, #2E7D32 100%);
    border: 3px dashed #81C784;
    border-radius: 12px;
    padding: 60px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 30px;
}

.scan-upload-area:hover {
    background: linear-gradient(135deg, #66BB6A 0%, #388E3C 100%);
    border-color: #A5D6A7;
    transform: scale(1.02);
}

.scan-upload-area .upload-icon {
    font-size: 48px;
    margin-bottom: 15px;
}

.scan-upload-area .upload-text {
    color: #fff;
    font-size: 20px;
    font-weight: bold;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.scan-upload-area .upload-subtext {
    color: #E8F5E9;
    font-size: 14px;
    margin-top: 8px;
}

.image-controls {
    background: #2a2a2a;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

.control-group {
    margin-bottom: 15px;
}

.control-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #999;
    margin-bottom: 5px;
    font-size: 13px;
}

.control-value {
    color: #e4032e;
    font-weight: bold;
}

.control-slider {
    width: 100%;
    height: 4px;
    background: #444;
    outline: none;
    opacity: 0.7;
    transition: opacity 0.2s;
    border-radius: 2px;
}

.control-slider:hover {
    opacity: 1;
}

.control-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    background: #e4032e;
    cursor: pointer;
    border-radius: 50%;
}

.control-checkboxes {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 20px;
}

.control-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.control-checkbox input {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.control-checkbox label {
    color: #999;
    font-size: 13px;
    cursor: pointer;
}

.image-comparison {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.image-box {
    background: #2a2a2a;
    border-radius: 8px;
    overflow: hidden;
}

.image-box-header {
    background: #333;
    padding: 10px;
    text-align: center;
    color: #999;
    font-size: 14px;
    font-weight: bold;
}

.image-box-content {
    padding: 15px;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-box img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
}

.scan-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-bottom: 30px;
}

.scan-complete-section {
    background: linear-gradient(135deg, #2a2a2a 0%, #1a1a1a 100%);
    border-radius: 8px;
    padding: 20px;
    margin-top: 30px;
}

.scan-complete-header {
    background: #e4032e;
    color: #fff;
    padding: 10px;
    text-align: center;
    border-radius: 4px;
    margin-bottom: 20px;
    font-weight: bold;
    font-size: 16px;
}

.scan-result-round {
    text-align: center;
    color: #e4032e;
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 20px;
}

.scan-result-games {
    display: grid;
    gap: 15px;
}

.scan-result-game {
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 6px;
    padding: 15px;
}

.scan-result-game-header {
    color: #999;
    font-size: 14px;
    margin-bottom: 10px;
}

.scan-result-numbers {
    display: flex;
    gap: 8px;
    justify-content: center;
}