/* ===============================================
   WawaCoin 로또 페이지 통합 CSS
   모든 로또 관련 페이지의 스타일을 하나로 통합
   =============================================== */

/* ===========================
   디자인 시스템 변수 정의
   =========================== */
:root {
    /* 배경색 - 홈화면과 동일 */
    --lotto-bg-primary: #0d0d0d;
    --lotto-bg-secondary: transparent;
    --lotto-bg-card: rgba(255, 255, 255, 0.02);
    --lotto-bg-card-hover: rgba(255, 255, 255, 0.05);
    --lotto-bg-accent: rgba(255, 255, 255, 0.02);
    
    /* 테두리 - 홈화면과 동일 */
    --lotto-border: rgba(255, 255, 255, 0.1);
    --lotto-border-hover: rgba(247, 147, 26, 0.3);
    --lotto-border-width: 1px;
    --lotto-neon-orange: rgba(247, 147, 26, 0.8);
    --lotto-neon-cyan: rgba(0, 255, 255, 0.8);
    --lotto-neon-pink: rgba(255, 0, 128, 0.8);
    
    /* 텍스트 색상 */
    --lotto-text-primary: #ffffff;
    --lotto-text-secondary: #a0a0a0;
    --lotto-text-muted: #707070;
    
    /* 강조 색상 - 네온 스타일 */
    --lotto-accent: #00ffff;
    --lotto-accent-secondary: #ff00ff;
    
    /* 공 색상 */
    --lotto-ball-yellow: linear-gradient(135deg, #ffd93d, #ffb800);
    --lotto-ball-blue: linear-gradient(135deg, #4dabf7, #339af0);
    --lotto-ball-red: linear-gradient(135deg, #ff6b6b, #fa5252);
    --lotto-ball-gray: linear-gradient(135deg, #868e96, #495057);
    --lotto-ball-green: linear-gradient(135deg, #51cf66, #2f9e44);
    
    /* 그림자 제거 */
    --lotto-shadow: none;
    --lotto-shadow-hover: none;
    
    /* 모서리 */
    --lotto-radius: 16px;
    --lotto-radius-small: 8px;
}

/* ===========================
   공통 기본 스타일
   =========================== */

/* 모든 로또 페이지 기본 배경 */
body[data-page^="lotto"] {
    background: linear-gradient(135deg, #0c0c0c 0%, var(--lotto-bg-primary) 100%);
    color: var(--lotto-text-primary);
    min-height: 100vh;
}

/* 공통 컨테이너 - 홈페이지와 동일한 너비 */
/* 페이지 배경색 - 어두운 회색 */
body[data-page="lotto"],
body[data-page="lotto-stats"],
body[data-page="lotto-range"],
body[data-page="lotto-color"],
body[data-page="lotto-undrawn"] {
    background: #0d0d0d;
    min-height: 100vh;
}

.lotto-container,
.stats-container,
.range-stats-container,
.color-stats-container,
.undrawn-container {
    max-width: 1920px;
    margin: 0 auto;
    /* padding: 20px; -- Handled by content-top-bar.css */
    background: transparent;
}

/* 공통 헤더 스타일 - WawaCoin 주황색 강조 */
.lotto-header,
.stats-header,
.range-stats-header,
.color-stats-header,
.page-header {
    background: linear-gradient(135deg, rgba(247, 147, 26, 0.1), rgba(255, 179, 71, 0.1));
    border: 2px solid rgba(247, 147, 26, 0.4);
    border-radius: var(--lotto-radius);
    /* padding: 30px; -- Handled by content-top-bar.css */
    text-align: center;
    /* margin-bottom: 40px; -- Handled by content-top-bar.css */
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(247, 147, 26, 0.15);
}

.lotto-title,
.stats-title,
.range-stats-title,
.color-stats-title,
.page-header h1 {
    font-size: 1.8rem;
    font-weight: 600;
    background: linear-gradient(135deg, #f7931a, #ff6b00);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 15px;
    display: inline-block;
}

.lotto-subtitle,
.stats-subtitle,
.range-stats-subtitle,
.color-stats-subtitle,
.page-header p {
    color: #e5e7eb;
    font-size: 1.1rem;
    line-height: 1.6;
}

.page-header p.last-updated {
    margin-top: 10px;
    font-size: 0.9rem;
    color: rgba(229, 231, 235, 0.7);
}

/* ===========================
   공통 카드 스타일
   =========================== */
.stat-card,
.color-card,
.range-card,
.special-stat-card,
.summary-card,
.menu-card,
.section-box {
    background: var(--lotto-bg-card);
    border: var(--lotto-border-width) solid var(--lotto-border);
    border-radius: var(--lotto-radius);
    padding: 25px 20px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

/* main-stats-grid 안의 color-card는 다른 스타일 */
.main-stats-grid .color-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 20px;
    transition: all 0.3s ease;
}

.main-stats-grid .color-card:hover {
    border-color: var(--lotto-border-hover) !important;
    transform: translateY(-2px);
}

/* hot-cold-section 안의 summary-card는 다른 스타일 */
.hot-cold-section .summary-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 20px;
}

.stat-card:hover,
.color-card:hover,
.range-card:hover,
.special-stat-card:hover,
.summary-card:hover,
.menu-card:hover {
    background: var(--lotto-bg-card-hover);
    transform: translateY(-2px);
    border-color: var(--lotto-border-hover) !important;
}

/* ===========================
   공통 섹션 스타일
   =========================== */
.chart-section,
.charts-section,
.patterns-section {
    background: var(--lotto-bg-card);
    border: var(--lotto-border-width) solid var(--lotto-border);
    border-radius: var(--lotto-radius);
    padding: 25px;
    margin-bottom: 40px;
    backdrop-filter: blur(10px);
}

.pattern-section {
    background: var(--lotto-bg-card);
    border: var(--lotto-border-width) solid var(--lotto-border);
    border-radius: var(--lotto-radius);
    padding: 25px;
    margin-bottom: 40px;
    backdrop-filter: blur(10px);
}

.recent-distribution,
.recent-colors-section,
.ai-recommendations-section {
    background: var(--lotto-bg-card);
    border: var(--lotto-border-width) solid var(--lotto-border);
    border-radius: var(--lotto-radius);
    padding: 25px;
    margin-bottom: 40px;
    backdrop-filter: blur(10px);
}

.hot-cold-section,
.summary-section,
.special-stats-section {
    background: var(--lotto-bg-secondary);
    border: none;
    border-radius: var(--lotto-radius);
    padding: 25px;
    margin-bottom: 40px;
    box-shadow: var(--lotto-shadow);
}

/* 차트 카드 */
.chart-card {
    background: var(--lotto-bg-secondary);
    border: none;
    border-radius: var(--lotto-radius);
    padding: 25px;
    box-shadow: var(--lotto-shadow);
}

.chart-container {
    position: relative;
    height: 300px;
    margin-top: 20px;
}

.chart-title,
.pattern-title {
    font-size: 1.5em;
    margin-bottom: 20px;
    color: var(--lotto-text-primary);
}

/* ===========================
   로또 공 스타일
   =========================== */
.ball,
.winning-ball,
.bonus-ball,
.ai-ball,
.number-chip {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    color: white;
    font-weight: bold;
    font-size: 1.1em;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.4);
    transition: transform 0.2s ease;
}

.ball:hover,
.winning-ball:hover,
.bonus-ball:hover,
.ai-ball:hover,
.number-chip:hover {
    transform: scale(1.1);
}

/* 공 색상 - 모든 공 클래스에 적용 */
.ball.yellow,
.winning-ball.yellow,
.bonus-ball.yellow,
.ai-ball.yellow,
.ball.노,
.number-chip.yellow { background: var(--lotto-ball-yellow) !important; }

.ball.blue,
.winning-ball.blue,
.bonus-ball.blue,
.ai-ball.blue,
.ball.파,
.number-chip.blue { background: var(--lotto-ball-blue) !important; }

.ball.red,
.winning-ball.red,
.bonus-ball.red,
.ai-ball.red,
.ball.빨,
.number-chip.red { background: var(--lotto-ball-red) !important; }

.ball.gray,
.winning-ball.gray,
.bonus-ball.gray,
.ai-ball.gray,
.ball.회,
.number-chip.gray { background: var(--lotto-ball-gray) !important; }

.ball.green,
.winning-ball.green,
.bonus-ball.green,
.ai-ball.green,
.ball.초,
.number-chip.green { background: var(--lotto-ball-green) !important; }

/* ===========================
   버튼 스타일
   =========================== */
/* 자동 추천번호 버튼 - WawaCoin 주황색 */
.rec-button {
    background: linear-gradient(135deg, #f7931a, #ff6b00);
    color: white;
    border: none;
    padding: 15px 40px;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(247, 147, 26, 0.3);
    display: inline-block;
}

.tab-button,
.period-tab {
    background: var(--lotto-bg-accent);
    color: rgba(255, 255, 255, 0.7);
    border: var(--lotto-border-width) solid var(--lotto-border);
    padding: 12px 24px;
    border-radius: 25px;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

/* 텔레그램 버튼 - 텔레그램 밝은 파란색 */
.telegram-button {
    background: linear-gradient(135deg, #30cfd0 0%, #330867 100%);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: var(--lotto-radius-small);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(48, 207, 208, 0.3);
    position: relative;
    overflow: hidden;
}

.telegram-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.telegram-button:hover::before {
    left: 100%;
}

.rec-button:hover {
    background: linear-gradient(135deg, #ff9a1a, #ff7b00);
    transform: scale(1.05);
    box-shadow: 0 5px 20px rgba(247, 147, 26, 0.4);
}

.tab-button:hover,
.period-tab:hover {
    background: var(--lotto-bg-card-hover);
    color: rgba(255, 255, 255, 0.9);
    border-color: var(--lotto-border-hover);
    transform: translateY(-1px);
}

.telegram-button:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 12px 35px rgba(48, 207, 208, 0.4);
}

.tab-button.active,
.period-tab.active {
    background: var(--lotto-bg-card-hover);
    color: #f7931a;
    border: var(--lotto-border-width) solid var(--lotto-border-hover);
    font-weight: 600;
}

/* 탭 메뉴 - 어두운 컨테이너 */
.tab-menu,
.period-tabs {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-bottom: 35px;
    padding: 10px;
    background: rgba(20, 20, 25, 0.8);
    border-radius: 30px;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
    border: 1px solid rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
}

/* ===========================
   통계 리스트
   =========================== */
.stats-list,
.stat-list {
    background: var(--lotto-bg-secondary);
    border-radius: var(--lotto-radius);
    padding: 20px;
}

.stat-item {
    background: var(--lotto-bg-card);
    border: var(--lotto-border-width) solid var(--lotto-border);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 20px;
    transition: all 0.3s ease;
}

.stat-item:hover {
    transform: translateX(5px);
    border-color: var(--lotto-border-hover);
}

/* ===========================
   라벨과 값 스타일
   =========================== */
.stat-label,
.sub-stat-label,
.main-count-label,
.range-label,
.summary-label,
.special-stat-label,
.consecutive-label {
    font-size: 0.75em;
    color: var(--lotto-text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 5px;
}

.stat-value,
.sub-stat-value,
.main-count-value,
.summary-value,
.special-stat-value,
.consecutive-value {
    font-size: 1.3em;
    font-weight: bold;
    color: var(--lotto-text-primary);
}

.summary-detail,
.special-stat-detail {
    font-size: 0.85em;
    color: var(--lotto-text-muted);
    margin-top: 5px;
}

/* ===========================
   그리드 레이아웃
   =========================== */
/* 색상별 통계 메인 그리드 - 전체를 하나의 섹션으로 */
.main-stats-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    margin-bottom: 40px;
    background: var(--lotto-bg-card);
    border: var(--lotto-border-width) solid var(--lotto-border);
    border-radius: var(--lotto-radius);
    padding: 25px;
    backdrop-filter: blur(10px);
}

/* 구간별 통계 전체 컨테이너 (5개 구간 + 4개 요약) */
.range-overview-container {
    background: var(--lotto-bg-card);
    border: var(--lotto-border-width) solid var(--lotto-border);
    border-radius: var(--lotto-radius);
    padding: 25px;
    margin: 20px 0 40px 0;
    backdrop-filter: blur(10px);
}

.range-cards-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

/* 컨테이너 안의 구간 카드 */
.range-overview-container .range-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 20px;
    transition: all 0.3s ease;
}

.range-overview-container .range-card:hover {
    border-color: var(--lotto-border-hover) !important;
    transform: translateY(-2px);
}

.summary-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin: 0; /* hot-cold-section 안에 있을 때 마진 제거 */
}

/* 색상별 통계 페이지의 3개 요약 카드 */
.color-stats-container .summary-section {
    background: var(--lotto-bg-card);
    border: var(--lotto-border-width) solid var(--lotto-border);
    border-radius: var(--lotto-radius);
    padding: 25px;
    backdrop-filter: blur(10px);
    margin-bottom: 40px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.color-stats-container .summary-section .summary-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 20px;
    margin: 0;
}

.special-stats-section {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin: 0; /* range-overview-container 안에서 마진 제거 */
}

/* 컨테이너 안의 특별 통계 카드 */
.range-overview-container .special-stat-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 20px;
    transition: all 0.3s ease;
}

.range-overview-container .special-stat-card:hover {
    border-color: var(--lotto-border-hover) !important;
    transform: translateY(-2px);
}


/* AI 추천번호 섹션 스타일 */
.ai-recommendations-section {
    text-align: center;
}

.ai-header {
    text-align: center;
    margin-bottom: 30px;
}

.ai-header .section-title {
    font-size: 1.8rem;
    font-weight: 600;
    background: linear-gradient(135deg, #f7931a, #ff6b00);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 10px;
    display: inline-block;
}

.ai-header .section-subtitle {
    color: #e5e7eb;
    font-size: 1rem;
}

.recommendations-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin: 30px 0;
}

/* ===========================
   로또 메인 페이지 고유 스타일
   =========================== */

/* 이번주 당첨번호 섹션 - 주황색 테마 (h1보다 덜 강조) */
.current-draw-section {
    background: linear-gradient(135deg, rgba(247, 147, 26, 0.06), rgba(255, 179, 71, 0.06));
    border: 1px solid rgba(247, 147, 26, 0.25);
    padding: 30px;
    border-radius: var(--lotto-radius);
    margin-bottom: 40px;
    text-align: center;
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(247, 147, 26, 0.08);
}

.current-draw-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #f7931a, transparent);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.current-draw-header {
    margin-bottom: 20px;
}

.current-draw-header h3 {
    font-size: 1.5em;
    margin-bottom: 5px;
    color: #f7931a;
}

.draw-date {
    color: var(--lotto-text-secondary);
    font-size: 0.9em;
}

.current-draw-numbers,
.draw-numbers {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
}

.plus-sign {
    font-size: 1.5em;
    color: var(--lotto-text-secondary);
    margin: 0 10px;
}

/* AI 추천 카드 스타일 강화 */
.recommendation-card {
    background: var(--lotto-bg-card) !important;
    border: var(--lotto-border-width) solid var(--lotto-border) !important;
    padding: 25px !important;
    display: flex;
    flex-direction: column;
    min-height: 400px;
}

.recommendation-card:hover {
    border-color: var(--lotto-border-hover) !important;
}

/* AI 추천 랭킹 배지 */
.rank-badge {
    display: inline-block;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.3), rgba(118, 75, 162, 0.3));
    color: #fff;
    padding: 6px 16px;
    border-radius: 20px;
    font-weight: bold;
    margin-bottom: 15px;
    font-size: 0.85em;
    border: 1px solid rgba(102, 126, 234, 0.5);
}

.rank-1 { 
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.3), rgba(255, 165, 0, 0.3));
    border-color: rgba(255, 215, 0, 0.5);
    color: #FFD700;
}

.rank-2 { 
    background: linear-gradient(135deg, rgba(192, 192, 192, 0.3), rgba(128, 128, 128, 0.3));
    border-color: rgba(192, 192, 192, 0.5);
    color: #C0C0C0;
}

.rank-3 { 
    background: linear-gradient(135deg, rgba(205, 127, 50, 0.3), rgba(139, 69, 19, 0.3));
    border-color: rgba(205, 127, 50, 0.5);
    color: #CD7F32;
}

.strategy-title {
    font-size: 1.2em;
    font-weight: bold;
    margin-bottom: 15px;
    color: #ffffff;
}

.numbers-container {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin: 20px 0;
}

.reason-text {
    color: #ffffff;
    font-size: 0.95em;
    line-height: 1.7;
    margin: 15px 0;
    opacity: 0.95;
}

/* 키 포인트 */
.key-points {
    margin-top: auto;
    background: rgba(255, 255, 255, 0.03);
    padding: 15px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.key-points h4 {
    font-size: 0.95em;
    color: #ffffff;
    margin-bottom: 12px;
    font-weight: 600;
}

.key-points ul {
    list-style: none;
    padding: 0;
}

.key-points li {
    padding: 8px 0;
    padding-left: 25px;
    position: relative;
    color: #ffffff;
    font-size: 0.88em;
    line-height: 1.6;
    opacity: 0.9;
}

.key-points li:before {
    content: "▸";
    position: absolute;
    left: 5px;
    color: #f7931a;
    font-weight: bold;
}

/* 신뢰도 바 스타일 */
.confidence-bar {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    height: 6px;
    margin: 15px 0;
    position: relative;
    overflow: hidden;
}

.confidence-fill {
    background: linear-gradient(90deg, #f7931a, #ff6b00);
    height: 100%;
    border-radius: 20px;
    transition: width 0.8s ease;
    position: relative;
}

.confidence-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: confidence-shimmer 2s infinite;
}

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

.confidence-text {
    font-size: 0.85em;
    color: #f7931a;
    font-weight: 600;
    margin-top: 5px;
    display: block;
}

/* 랭크 배지 업데이트 */
.rank-badge {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.3), rgba(118, 75, 162, 0.3));
    color: #fff;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: bold;
    margin-bottom: 15px;
    font-size: 0.85em;
    border: 1px solid rgba(102, 126, 234, 0.5);
}

.rank-number {
    font-size: 1em;
}

.confidence {
    font-size: 0.8em;
    opacity: 0.9;
}

/* 분석 통계 스타일 */
.analysis-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-top: 20px;
}

.stat-item {
    background: rgba(255, 255, 255, 0.05);
    padding: 12px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.stat-label {
    font-size: 0.8em;
    color: var(--lotto-text-secondary);
    margin-bottom: 5px;
    display: block;
}

.stat-value {
    font-size: 1.1em;
    font-weight: 600;
    color: #f7931a;
}

/* 전체 분석 박스 */
.overall-analysis-box {
    background: var(--lotto-bg-card);
    padding: 30px;
    border-radius: var(--lotto-radius);
    margin-top: 30px;
    grid-column: 1 / -1;
    border: var(--lotto-border-width) solid var(--lotto-border);
}

.overall-analysis-box h3 {
    color: #ffffff;
    margin-bottom: 20px;
    font-size: 1.3em;
    font-weight: 600;
}

.overall-analysis-box p {
    color: #ffffff;
    line-height: 1.8;
    font-size: 0.95em;
    opacity: 0.95;
}

/* 추천번호 섹션 - WawaCoin 주황색 테마 */
.recommendation-section {
    background: linear-gradient(135deg, rgba(247, 147, 26, 0.05), rgba(255, 179, 71, 0.05));
    border: var(--lotto-border-width) solid var(--lotto-border);
    border-radius: var(--lotto-radius);
    padding: 30px;
    margin-bottom: 40px;
    position: relative;
    overflow: hidden;
}

.recommendation-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #f7931a, transparent);
    animation: scan 3s linear infinite;
}

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

.recommended-numbers {
    margin-top: 20px;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.recommended-numbers.show {
    opacity: 1;
}

.rec-title {
    font-size: 1.5em;
    margin-bottom: 10px;
    background: linear-gradient(135deg, #f7931a, #ff6b00);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
}

/* 텔레그램 알림 - 텔레그램 밝은 파란색 테마 */
.telegram-notification-section {
    background: linear-gradient(135deg, rgba(100, 181, 246, 0.1), rgba(94, 159, 245, 0.1)) !important;
    border: 1px solid rgba(100, 181, 246, 0.3) !important;
    border-radius: var(--lotto-radius);
    padding: 30px;
    margin-bottom: 40px;
    box-shadow: 0 4px 20px rgba(100, 181, 246, 0.15) !important;
}

.telegram-notification {
    background: transparent;
    border-radius: var(--lotto-radius);
    padding: 0;
    border: none !important;
}

.telegram-header h3 {
    font-size: 1.5em;
    margin-bottom: 10px;
    background: linear-gradient(135deg, #4dabf7, #64b5f6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
}

.telegram-header p {
    color: #e5e7eb;
    margin-bottom: 20px;
}

.telegram-button-link {
    text-decoration: none;
}

.button-icon {
    margin-right: 8px;
}

.telegram-info {
    margin-top: 15px;
    color: var(--lotto-text-muted);
    font-size: 0.85em;
}






/* ===========================
   유틸리티 클래스
   =========================== */
.loading,
.loading-spinner {
    color: var(--lotto-text-secondary);
    text-align: center;
    padding: 40px;
}

.error-message {
    background: rgba(255, 107, 107, 0.1);
    border: 1px solid rgba(255, 107, 107, 0.3);
    color: #ff6b6b;
    padding: 20px;
    border-radius: var(--lotto-radius-small);
    text-align: center;
}

.last-updated {
    font-size: 0.85em;
    color: var(--lotto-text-muted);
    margin-top: 10px;
}

/* ===========================
   애니메이션
   =========================== */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.stat-card,
.color-card,
.range-card {
    animation: fadeIn 0.5s ease-out;
}

/* ===========================
   반응형 디자인
   =========================== */
@media (max-width: 1200px) {
    .main-stats-grid,
    .range-cards-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .summary-cards,
    .special-stats-section,
    .quick-menu-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .recommendations-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .main-stats-grid,
    .range-cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .summary-cards,
    .special-stats-section,
    .quick-menu-grid,
    .hot-cold-section,
    .consecutive-stats {
        grid-template-columns: 1fr;
    }
    
    .ball,
    .winning-ball,
    .bonus-ball,
    .ai-ball,
    .number-chip {
        width: 40px;
        height: 40px;
        font-size: 1em;
    }
    
    .legend-items {
        flex-wrap: wrap;
    }
    
    .charts-section {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .main-stats-grid,
    .range-cards-grid {
        grid-template-columns: 1fr;
    }
    
    .lotto-title,
    .stats-title,
    .range-stats-title,
    .color-stats-title {
        font-size: 1.8em;
    }
    
    .ball,
    .winning-ball,
    .bonus-ball,
    .ai-ball,
    .number-chip {
        width: 35px;
        height: 35px;
        font-size: 0.9em;
    }
    
    .pattern-frequency {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .frequency-bar {
        width: 100%;
    }
}