:root {
    --primary-green: #09C285;
    --primary-blue: #265CFF;
    --primary-gray: #6B7280;
    --light-gray: #F9FAFB;
    --medium-gray: #F3F4F6;
    --dark-gray: #111827;
    --border-gray: #E5E7EB;
    --text-primary: #111827;
    --text-secondary: #6B7280;
    --card-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --card-shadow-hover: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: white;
    color: var(--text-primary);
    line-height: 1.6;
}

/* 탭 스타일 */
.tab-btn {
    @apply inline-flex items-center space-x-2 px-4 py-2 text-sm font-medium text-gray-400 hover:text-white border-b-2 border-transparent hover:border-gray-600 transition-colors duration-200;
}

.tab-btn.active {
    @apply text-white border-blue-500;
}

.tab-content {
    @apply mt-6;
}

.tab-content.hidden {
    @apply hidden;
}

.font-sans {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

.issue-card {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 16px;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.5);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 1.5rem; /* Reduced from 1.75rem for 3-column layout */
    position: relative;
    overflow: hidden;
}

.issue-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.8), transparent);
}

.issue-card:hover {
    transform: translateY(-6px);
    box-shadow: 
        0 25px 50px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
    border-color: rgba(59, 130, 246, 0.4);
    background: rgba(255, 255, 255, 0.95);
}

.issue-image {
    width: 100%;
    height: 140px; /* Reduced from 160px for 3-column layout */
    object-fit: cover;
    border-radius: 12px;
    margin: 1rem 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
}

.issue-image:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    border: 2px solid #3B82F6;
}

.issue-card:hover .issue-image {
    transform: scale(1.02);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

/* 이슈 이미지 컨테이너 스타일 */
.issue-image-container {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    background: linear-gradient(45deg, #f3f4f6, #e5e7eb);
}

.issue-image-container img {
    width: 100%;
    height: 160px; /* Reduced from 192px for 3-column layout */
    object-fit: cover;
    transition: transform 0.3s ease;
    border-radius: 12px;
}

.issue-image-container:hover img {
    transform: scale(1.05);
}

/* 이미지 로딩 효과 */
.issue-image-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    transform: translateX(-100%);
    animation: shimmer 1.5s infinite;
}

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

/* 설명 박스 스타일 */
.issue-description {
    background: linear-gradient(135deg, #f8fafc, #f1f5f9);
    border-left: 4px solid #3b82f6;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

/* 카테고리 필터 버튼 스타일 */
.category-filter-btn {
    position: relative;
    border: none;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    min-width: 80px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.category-filter-btn:hover {
    transform: scale(1.05) translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.category-filter-btn.active {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    opacity: 1 !important;
}

.category-filter-btn:not(.active) {
    opacity: 0.7;
}

.category-filter-btn:not(.active):hover {
    opacity: 0.9;
}

/* 부드러운 스크롤 */
html {
    scroll-behavior: smooth;
}

/* 검색 및 필터 섹션 */
.search-section {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
}

/* 로딩 애니메이션 */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.animate-pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* 맨 위로 가기 버튼 */
#scroll-to-top {
    z-index: 1000;
    backdrop-filter: blur(10px);
    background: rgba(37, 99, 235, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
}

#scroll-to-top:hover {
    background: rgba(29, 78, 216, 0.9);
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
}

/* 인기 이슈 목록 스타일 */
.popular-issue-item:hover {
    background: linear-gradient(135deg, #f8fafc, #f1f5f9);
}

.popular-issue-item:hover .w-8.h-8 {
    background: #2563eb;
    color: white;
    transform: scale(1.1);
}

.modern-card {
    background: white;
    border: 1px solid var(--border-gray);
    border-radius: 8px;
    box-shadow: var(--card-shadow);
    transition: all 0.2s ease;
}

.modern-card:hover {
    box-shadow: var(--card-shadow-hover);
}

.prediction-gauge {
    background: linear-gradient(90deg, #10B981 0%, #EF4444 100%) !important;
    border-radius: 12px !important;
    height: 8px !important;
    position: relative !important;
    overflow: hidden !important;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1) !important;
    width: 100% !important;
    display: block !important;
}

.prediction-gauge::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shimmer 2s infinite;
}

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

.prediction-indicator {
    position: absolute !important;
    top: -2px !important;
    width: 12px !important;
    height: 12px !important;
    background: white !important;
    border: 2px solid #3B82F6 !important;
    border-radius: 50% !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15) !important;
    transition: all 0.3s ease !important;
    z-index: 10 !important;
}

.btn-primary {
    background-color: var(--primary-blue);
    color: white;
    border: none;
    border-radius: 6px;
    padding: 0.75rem 1.5rem;
    font-weight: 500;
    transition: all 0.2s ease;
    cursor: pointer;
}

.btn-primary:hover {
    background-color: #1D4ED8;
    transform: translateY(-1px);
}

.prediction-btn {
    border: 1.5px solid transparent;
    border-radius: 12px;
    padding: 0.875rem 1.5rem;
    font-weight: 600;
    font-size: 0.875rem;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.prediction-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s;
}

.prediction-btn:hover::before {
    left: 100%;
}

.btn-yes {
    background: linear-gradient(135deg, #10B981, #059669) !important;
    color: white !important;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3) !important;
    border: none !important;
}

.btn-yes:hover {
    background: linear-gradient(135deg, #059669, #047857) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4) !important;
}

.btn-no {
    background: linear-gradient(135deg, #EF4444, #DC2626) !important;
    color: white !important;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3) !important;
    border: none !important;
}

.btn-no:hover {
    background: linear-gradient(135deg, #DC2626, #B91C1C) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(239, 68, 68, 0.4) !important;
}

.btn-success {
    background-color: var(--primary-green);
    color: white;
    border: none;
    border-radius: 6px;
    padding: 0.75rem 1.5rem;
    font-weight: 500;
    transition: all 0.2s ease;
    cursor: pointer;
}

.btn-success:hover {
    background-color: #059669;
    transform: translateY(-1px);
}

.btn-danger {
    background-color: #EF4444;
    color: white;
    border: none;
    border-radius: 6px;
    padding: 0.75rem 1.5rem;
    font-weight: 500;
    transition: all 0.2s ease;
    cursor: pointer;
}

.btn-danger:hover {
    background-color: #DC2626;
    transform: translateY(-1px);
}

.bet-btn:disabled {
    background-color: var(--primary-gray) !important;
    cursor: not-allowed !important;
    opacity: 0.6 !important;
    transform: none !important;
}

.bet-btn:hover {
    transform: translateY(-2px) !important;
}

.bet-btn[data-choice="Yes"]:hover {
    background: linear-gradient(135deg, #059669, #047857) !important;
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4) !important;
}

.bet-btn[data-choice="No"]:hover {
    background: linear-gradient(135deg, #DC2626, #B91C1C) !important;
    box-shadow: 0 6px 20px rgba(239, 68, 68, 0.4) !important;
}

.category-badge {
    background-color: var(--medium-gray);
    color: var(--text-secondary);
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
}

.price-display {
    font-weight: 700;
    font-size: 1.25rem;
}

.volume-display {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.category-filter-btn {
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    border: 2px solid transparent;
    font-weight: 600;
    font-size: 0.875rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.category-filter-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.category-filter-btn.active {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.category-all {
    background: linear-gradient(135deg, #6366F1, #8B5CF6);
    color: white;
}

.category-all.active {
    background: linear-gradient(135deg, #4F46E5, #7C3AED);
}

.category-정치 {
    background: linear-gradient(135deg, #EF4444, #F87171);
    color: white;
}

.category-정치.active {
    background: linear-gradient(135deg, #DC2626, #EF4444);
}

.category-스포츠 {
    background: linear-gradient(135deg, #06B6D4, #67E8F9);
    color: white;
}

.category-스포츠.active {
    background: linear-gradient(135deg, #0891B2, #06B6D4);
}

.category-경제 {
    background: linear-gradient(135deg, #10B981, #34D399);
    color: white;
}

.category-경제.active {
    background: linear-gradient(135deg, #059669, #10B981);
}

.category-코인 {
    background: linear-gradient(135deg, #F59E0B, #FBBF24);
    color: white;
}

.category-코인.active {
    background: linear-gradient(135deg, #D97706, #F59E0B);
}

.category-테크 {
    background: linear-gradient(135deg, #8B5CF6, #A78BFA);
    color: white;
}

.category-테크.active {
    background: linear-gradient(135deg, #7C3AED, #8B5CF6);
}

.category-엔터 {
    background: linear-gradient(135deg, #EC4899, #F472B6);
    color: white;
}

.category-엔터.active {
    background: linear-gradient(135deg, #DB2777, #EC4899);
}

.category-날씨 {
    background: linear-gradient(135deg, #3B82F6, #60A5FA);
    color: white;
}

.category-날씨.active {
    background: linear-gradient(135deg, #2563EB, #3B82F6);
}

.category-해외 {
    background: linear-gradient(135deg, #6366F1, #8B5CF6);
    color: white;
}

.category-해외.active {
    background: linear-gradient(135deg, #4F46E5, #6366F1);
}

/* Result Option Styles */
.result-option.selected {
    border-color: #3b82f6 !important;
    background-color: #eff6ff !important;
}

.result-option:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* My Page Table Styles */
.history-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
}

.history-table th, .history-table td {
    padding: 1rem 1.5rem;
    text-align: left;
    border-bottom: 1px solid var(--border-gray);
}

.history-table th {
    background-color: var(--light-gray);
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.history-table tbody tr:last-child td {
    border-bottom: none;
}

.history-table tbody tr:hover {
    background-color: var(--light-gray);
}

.modern-input {
    border: 1px solid var(--border-gray);
    border-radius: 6px;
    padding: 0.75rem 1rem;
    background: white;
    color: var(--text-primary);
    transition: border-color 0.2s ease;
}

.modern-input:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(38, 92, 255, 0.1);
}

.modern-select {
    border: 1px solid var(--border-gray);
    border-radius: 6px;
    padding: 0.75rem 1rem;
    background: white;
    color: var(--text-primary);
    transition: border-color 0.2s ease;
}

.modern-select:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(38, 92, 255, 0.1);
}

.btn-secondary {
    background-color: #374151;
    color: white;
    border: 1px solid #4B5563;
    border-radius: 6px;
    padding: 0.75rem 1.5rem;
    font-weight: 500;
    transition: all 0.2s ease;
    cursor: pointer;
}

.btn-secondary:hover {
    background-color: #4B5563;
    border-color: #6B7280;
    transform: translateY(-1px);
}

/* Comment System Styles */
.comments-section {
    max-height: 600px;
    overflow-y: auto;
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    background-color: #FAFAFA;
}

.comment {
    border-bottom: 1px solid #F3F4F6;
}

.comment:last-child {
    border-bottom: none;
}

.highlighted-comment {
    animation: highlightPulse 2s ease-in-out;
}

@keyframes highlightPulse {
    0% { background-color: #FEF3C7; }
    50% { background-color: #FDE68A; }
    100% { background-color: #FEF3C7; }
}

.comment-like-btn.liked {
    color: #DC2626 !important;
}

.comment-like-btn.liked i {
    fill: currentColor;
}

.comment-toggle-icon {
    transition: transform 0.3s ease;
}

/* Manifold-style Enhancements */
.issue-card.manifold-style {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
    height: auto;
    min-height: 500px;
    display: flex;
    flex-direction: column;
}

.issue-card.manifold-style:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
    border-color: #d1d5db;
}

.card-header {
    border-bottom: 1px solid #f3f4f6;
    padding-bottom: 0.75rem;
    margin-bottom: 1rem;
}

.category-badge {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.probability-display {
    position: relative;
}

.probability-badge {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
    min-width: 80px;
}

.issue-image-container {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
}

.issue-image-container .issue-image {
    width: 100%;
    height: 160px;
    object-fit: cover;
    transition: transform 0.3s ease;
    margin: 0;
}

.issue-image-container:hover .issue-image {
    transform: scale(1.05);
}

.probability-gauge {
    background: #f9fafb;
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid #f3f4f6;
}

.gauge-container {
    width: 100%;
}

.gauge-track {
    position: relative;
    height: 16px;
    background: #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 0.75rem;
}

.gauge-fill-yes {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: linear-gradient(90deg, #10b981, #059669);
    transition: width 0.3s ease;
}

.gauge-fill-no {
    position: absolute;
    top: 0;
    height: 100%;
    background: linear-gradient(90deg, #ef4444, #dc2626);
    transition: all 0.3s ease;
}

.gauge-thumb {
    position: absolute;
    top: -4px;
    width: 24px;
    height: 24px;
    background: white;
    border: 3px solid #3b82f6;
    border-radius: 50%;
    transform: translateX(-50%);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    transition: left 0.3s ease;
}

.gauge-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.875rem;
    font-weight: 600;
}

.gauge-container {
    width: 100%;
}

.gauge-track {
    position: relative;
    height: 12px;
    background: linear-gradient(to right, #10b981, #ef4444);
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.gauge-fill {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: rgba(255, 255, 255, 0.3);
    transition: width 0.3s ease;
}

.gauge-thumb {
    position: absolute;
    top: -4px;
    width: 20px;
    height: 20px;
    background: white;
    border: 3px solid #3b82f6;
    border-radius: 50%;
    transform: translateX(-50%);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    transition: left 0.3s ease;
}

.gauge-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.875rem;
    font-weight: 500;
}

.prediction-buttons {
    margin-top: 1rem;
}

.bet-btn {
    position: relative;
    border: none;
    border-radius: 8px;
    padding: 0.875rem 1rem;
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s ease;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 48px;
}

.bet-btn-yes {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

.bet-btn-yes:hover {
    background: linear-gradient(135deg, #059669, #047857);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
}

.bet-btn-no {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.3);
}

.bet-btn-no:hover {
    background: linear-gradient(135deg, #dc2626, #b91c1c);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4);
}

.btn-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.btn-label {
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1.2;
}

.btn-odds {
    font-size: 0.75rem;
    opacity: 0.9;
    font-weight: 500;
}

.btn-arrow {
    font-size: 1.25rem;
    font-weight: bold;
    opacity: 0.8;
}

.card-footer {
    border-top: 1px solid #f3f4f6;
    padding-top: 0.75rem;
    margin-top: auto;
}

.card-footer .text-sm {
    color: #6b7280;
}

.card-footer .flex {
    align-items: center;
}

/* Related Questions Section */
.related-questions {
    border-top: 1px solid #f3f4f6;
    margin-top: 1rem;
    padding-top: 1rem;
}

.related-item {
    transition: all 0.2s ease;
    border: 1px solid #e5e7eb;
}

.related-item:hover {
    background-color: #f9fafb;
    border-color: #d1d5db;
    transform: translateY(-1px);
}

.related-questions button i {
    transition: transform 0.2s ease;
}

/* Time-based Filter Tabs */
.time-filters {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 1rem;
}

.time-filter-tabs {
    display: block; /* Changed to block to allow inner flex control */
    width: 100%;
}

.time-filter-tabs .flex {
    display: flex !important;
    flex-wrap: nowrap !important; /* Force no wrapping */
    gap: 0.5rem;
    overflow-x: auto;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
    padding-bottom: 0.5rem;
}

.time-filter-tabs .flex::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

.time-tab {
    background: white;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    flex-shrink: 0 !important; /* Prevent shrinking */
    white-space: nowrap !important; /* Prevent text wrapping */
    min-width: fit-content !important;
}

.time-tab:hover {
    background: #f3f4f6;
    border-color: #9ca3af;
    color: #374151;
}

.time-tab.active {
    background: #3b82f6;
    border-color: #3b82f6;
    color: white;
    box-shadow: 0 1px 3px rgba(59, 130, 246, 0.3);
}

.filters-container {
    border-bottom: 1px solid #e5e7eb;
    padding-bottom: 1.5rem;
}

.filter-icon-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    background: white;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.2s ease;
}

.filter-icon-btn:hover {
    background: #f3f4f6;
    border-color: #9ca3af;
    color: #374151;
}

/* Mobile Popular Issues Optimization */
.popular-issues-mobile {
    display: none;
}

.popular-issues-scroll {
    overflow-x: auto;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
}

.popular-issues-scroll::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

.popular-issues-grid {
    display: flex;
    gap: 0.75rem; /* Reduced gap between cards */
    padding-bottom: 0.25rem; /* Reduced padding */
}

.popular-issue-card {
    flex: 0 0 200px; /* Further reduced width for mobile cards */
    min-height: 220px; /* Further reduced height for mobile cards */
}

/* Touch-friendly button sizes */
.mobile-touch-btn {
    min-height: 44px;
    min-width: 44px;
    padding: 0.75rem;
}

/* Scrollbar hiding utility */
.scrollbar-hide {
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
}

.scrollbar-hide::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

/* Category scroll container */
.category-scroll-container {
    /* Smooth scrolling on mobile */
    scroll-behavior: smooth;
    /* Prevent vertical scrollbar */
    overflow-y: hidden;
}

/* Ensure category buttons don't wrap on mobile */
.category-filters-mobile #category-filters-mobile {
    white-space: nowrap;
}

.category-filters-grid {
    display: flex;
    gap: 0.5rem; /* Reduced gap for mobile */
    padding-bottom: 0.25rem; /* Reduced padding */
}

.category-filter-btn {
    flex: 0 0 auto;
    white-space: nowrap;
}

/* Header mobile optimizations */
.mobile-menu-slide {
    animation: slideDown 0.2s ease-out;
}

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

/* Responsive adjustments */
@media (max-width: 768px) {
    /* Popular Issues Mobile Layout */
    .popular-issues-desktop {
        display: none;
    }
    
    .popular-issues-mobile {
        display: block;
    }
    
    /* Reduce spacing in popular issues section for mobile */
    .popular-issues-mobile .popular-issues-scroll {
        margin-bottom: 0.5rem;
    }
    
    
    /* Category Filters Mobile - handled by responsive classes in HTML */
    
    /* Issue Cards */
    .issue-card.manifold-style {
        padding: 0.875rem; /* Reduced padding */
        min-height: 350px; /* Reduced min height */
    }
    
    /* Reduce issue card padding for mobile */
    .issue-card {
        padding: 1.25rem !important; /* Reduced from 1.75rem */
    }
    
    .probability-badge {
        min-width: 70px;
        padding: 0.375rem 0.5rem;
    }
    
    .probability-badge span {
        font-size: 1.25rem;
    }
    
    .bet-btn {
        padding: 0.75rem 0.875rem;
        font-size: 0.8125rem;
        min-height: 44px; /* Touch-friendly */
    }
    
    .time-filter-tabs {
        justify-content: center;
    }
    
    .time-tab {
        flex: 1;
        min-width: 0;
        text-align: center;
        min-height: 44px; /* Touch-friendly */
    }
    
    .filters-container .flex {
        flex-direction: column;
        gap: 1rem;
    }
    
    .issue-image-container .issue-image {
        height: 120px; /* Further reduced from 140px */
    }
    
    /* Reduce category filter button size for mobile */
    .category-filter-btn {
        padding: 0.5rem 1rem !important; /* Reduced from default */
        font-size: 0.75rem !important; /* Smaller text */
        flex-shrink: 0 !important; /* Prevent shrinking */
        white-space: nowrap !important; /* Prevent text wrapping */
    }
    
    /* Mobile category filters specific styling */
    .category-filters-mobile .category-filter-btn {
        padding: 0.375rem 0.75rem !important; /* Even more compact for mobile scroll */
        font-size: 0.7rem !important; /* Smaller text for mobile */
        min-width: auto !important; /* Allow smaller buttons */
        flex-shrink: 0 !important; /* Prevent shrinking */
        white-space: nowrap !important; /* Prevent text wrapping */
    }
    
    /* Ensure mobile category scroll works */
    .category-scroll-container {
        overflow-x: auto !important;
        overflow-y: hidden !important;
        -webkit-overflow-scrolling: touch !important;
        scrollbar-width: none !important;
        -ms-overflow-style: none !important;
    }
    
    .category-scroll-container::-webkit-scrollbar {
        display: none !important;
    }
    
    #category-filters-mobile {
        display: flex !important;
        flex-wrap: nowrap !important;
        gap: 0.5rem !important;
        min-width: max-content !important;
        padding-bottom: 0.25rem !important;
    }
    
    #category-filters-mobile .category-filter-btn {
        flex-shrink: 0 !important;
        white-space: nowrap !important;
    }
    
    /* Prevent horizontal overflow on mobile */
    .category-filters-section {
        overflow: hidden; /* Prevent section from expanding beyond container */
    }
    
    /* Mobile section container fix */
    .container {
        overflow-x: hidden; /* Prevent horizontal scroll on main container */
    }
    
    /* Mobile sort section styling */
    .sort-container {
        width: 100%;
    }
    
    #sort-select {
        width: 100%;
        max-width: 150px;
    }
    
    /* Issues.html specific mobile optimizations */
    .time-filter-tabs {
        width: 100% !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        scrollbar-width: none !important;
        -ms-overflow-style: none !important;
    }
    
    .time-filter-tabs::-webkit-scrollbar {
        display: none !important;
    }
    
    .time-filter-buttons-container {
        display: flex !important;
        flex-wrap: nowrap !important;
        flex-direction: row !important;
        gap: 0.5rem !important;
        min-width: max-content !important;
        overflow-x: auto !important;
        scrollbar-width: none !important;
        width: auto !important;
        -webkit-overflow-scrolling: touch !important;
    }
    
    .time-filter-buttons-container::-webkit-scrollbar {
        display: none !important;
    }
    
    .time-tab {
        flex-shrink: 0 !important;
        flex-grow: 0 !important;
        padding: 0.5rem 1rem !important;
        font-size: 0.875rem !important;
        white-space: nowrap !important;
        min-width: fit-content !important;
        width: auto !important;
        display: inline-block !important;
    }
    
    /* Force horizontal layout for time filter tabs */
    .time-filter-tabs button {
        display: inline-block !important;
        float: none !important;
        clear: none !important;
    }
    
    .filters-container {
        overflow-x: hidden;
    }
    
    /* Header User Actions Mobile */
    #header-user-actions {
        gap: 0.5rem;
    }
    
    #header-user-actions .text-sm {
        font-size: 0.75rem;
    }
    
    /* Search Section Mobile */
    .search-section {
        padding: 1.5rem 0;
    }
    
    .search-section h1 {
        font-size: 1.5rem;
    }
    
    /* All Issues Grid Mobile */
    #all-issues-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem; /* Reduced gap between issue cards */
    }
    
    /* Further reduce spacing for mobile popular issues */
    .popular-issues-mobile .popular-issues-scroll {
        margin-bottom: 0; /* Completely removed margin */
    }
    
    /* Make mobile popular issue cards even more compact */
    .popular-issue-card {
        flex: 0 0 180px !important; /* Even smaller for mobile */
        min-height: 200px !important; /* Even smaller height */
        font-size: 0.875rem; /* Smaller text */
    }
    
    /* Reduce mobile section padding even further */
    section:nth-child(2) {
        padding-top: 0.5rem !important;
        padding-bottom: 0.5rem !important;
    }
    
    /* Mobile-specific button improvements */
    button, .btn, .bet-btn, .category-filter-btn {
        min-height: 44px;
        min-width: 44px;
    }
    
    /* Improve text readability on mobile */
    .text-xs {
        font-size: 0.875rem;
    }
    
    .text-sm {
        font-size: 1rem;
    }
    
    /* Additional mobile category filter fixes */
    .category-filters-section {
        width: 100% !important;
        overflow: visible !important;
    }
    
    .category-filters-mobile {
        width: 100% !important;
        overflow: visible !important;
    }
    
    .category-scroll-container {
        width: 100% !important;
        max-width: 100% !important;
    }
    
    /* Ensure category buttons don't break layout */
    .category-filters-mobile #category-filters-mobile .category-filter-btn {
        display: inline-block !important;
        float: none !important;
        clear: none !important;
        margin: 0 !important;
    }
}

/* 베팅 모달 스타일 */
.betting-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.betting-modal.show {
    opacity: 1;
    visibility: visible;
}

.betting-modal.hiding {
    opacity: 0;
}

.betting-modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
}

.betting-modal-container {
    position: relative;
    max-width: 480px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    transform: translateY(50px) scale(0.9);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.betting-modal.show .betting-modal-container {
    transform: translateY(0) scale(1);
}

.betting-modal-content {
    background: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 24px;
    box-shadow: 
        0 25px 50px rgba(0, 0, 0, 0.25),
        0 10px 25px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.8);
    overflow: hidden;
    position: relative;
}

.betting-modal-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.8), transparent);
}

.betting-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 24px 0;
}

.betting-modal-title {
    display: flex;
    align-items: center;
    gap: 12px;
}

.betting-icon {
    font-size: 28px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.betting-modal-title h2 {
    font-size: 24px;
    font-weight: 700;
    background: linear-gradient(135deg, #1e40af, #3b82f6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0;
}

.betting-modal-close {
    background: rgba(107, 114, 128, 0.1);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #6b7280;
}

.betting-modal-close:hover {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    transform: scale(1.1);
}

.betting-issue-info {
    padding: 24px;
    text-align: center;
}

.betting-choice-display {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #374151;
}

.betting-choice-display .choice-yes {
    color: #10b981;
    background: linear-gradient(135deg, #10b981, #34d399);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
}

.betting-choice-display .choice-no {
    color: #ef4444;
    background: linear-gradient(135deg, #ef4444, #f87171);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
}

.betting-issue-title {
    font-size: 16px;
    color: #6b7280;
    line-height: 1.5;
}

.betting-balance {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    margin: 0 24px;
    border-radius: 16px;
    border: 1px solid #f59e0b;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.balance-label {
    font-size: 14px;
    font-weight: 500;
    color: #92400e;
}

.balance-amount {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 18px;
    font-weight: 700;
    color: #92400e;
}

.coin-icon {
    font-size: 20px;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.1));
}

.betting-amount-section {
    padding: 24px;
}

.amount-label {
    font-size: 16px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 12px;
}

.amount-display {
    text-align: center;
    margin-bottom: 20px;
}

.amount-display span {
    font-size: 32px;
    font-weight: 800;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.amount-slider-container {
    position: relative;
    margin-bottom: 20px;
}

.betting-slider {
    width: 100%;
    height: 8px;
    border-radius: 4px;
    background: #e5e7eb;
    outline: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.betting-slider::-webkit-slider-thumb {
    appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
    transition: all 0.2s ease;
}

.betting-slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.6);
}

.betting-slider::-moz-range-thumb {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    cursor: pointer;
    border: none;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

.slider-marks {
    display: flex;
    justify-content: space-between;
    margin-top: 8px;
    padding: 0 12px;
}

.slider-marks span {
    font-size: 12px;
    color: #9ca3af;
    font-weight: 500;
}

.quick-amount-buttons {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}

.quick-amount-btn {
    padding: 12px 8px;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    background: white;
    font-size: 14px;
    font-weight: 600;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}

.quick-amount-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.1), transparent);
    transition: left 0.3s ease;
}

.quick-amount-btn:hover::before {
    left: 100%;
}

.quick-amount-btn:hover {
    border-color: #3b82f6;
    color: #3b82f6;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2);
}

.quick-amount-btn.active {
    border-color: #3b82f6;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

.betting-prediction {
    padding: 20px 24px;
    background: linear-gradient(135deg, #ecfdf5, #d1fae5);
    margin: 0 24px;
    border-radius: 16px;
    border: 1px solid #10b981;
    text-align: center;
}

.prediction-label {
    font-size: 14px;
    font-weight: 500;
    color: #065f46;
    margin-bottom: 8px;
}

.prediction-amount {
    font-size: 24px;
    font-weight: 800;
    color: #059669;
    margin-bottom: 4px;
}

.prediction-odds {
    font-size: 14px;
    font-weight: 600;
    color: #047857;
}

.betting-actions {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 12px;
    padding: 24px;
}

.betting-cancel-btn {
    padding: 16px;
    border: 2px solid #e5e7eb;
    border-radius: 16px;
    background: white;
    font-size: 16px;
    font-weight: 600;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.2s ease;
}

.betting-cancel-btn:hover {
    border-color: #9ca3af;
    color: #374151;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.betting-confirm-btn {
    position: relative;
    padding: 16px;
    border: none;
    border-radius: 16px;
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.4);
}

.betting-confirm-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(16, 185, 129, 0.6);
}

.betting-confirm-btn:active {
    transform: translateY(-1px);
}

.betting-confirm-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.btn-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    position: relative;
    z-index: 2;
}

.btn-icon {
    font-size: 18px;
}

.btn-spinner {
    animation: spin 1s linear infinite;
}

.btn-glow {
    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.6s ease;
}

.betting-confirm-btn:hover .btn-glow {
    left: 100%;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 성공 오버레이 */
.betting-success-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10001;
    animation: successFadeIn 0.5s ease;
}

.betting-success-overlay.fade-out {
    animation: successFadeOut 0.5s ease;
}

.success-content {
    text-align: center;
    color: white;
    animation: successBounce 0.6s ease;
}

.success-icon {
    font-size: 80px;
    margin-bottom: 20px;
    animation: successSpin 0.8s ease;
}

.success-title {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 12px;
    background: linear-gradient(135deg, #10b981, #34d399);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.success-amount {
    font-size: 24px;
    font-weight: 600;
    color: #f59e0b;
}

@keyframes successFadeIn {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

@keyframes successFadeOut {
    0% { opacity: 1; }
    100% { opacity: 0; }
}

@keyframes successBounce {
    0% { 
        transform: scale(0.5) translateY(50px);
        opacity: 0;
    }
    50% { 
        transform: scale(1.1) translateY(-10px);
        opacity: 1;
    }
    100% { 
        transform: scale(1) translateY(0);
        opacity: 1;
    }
}

@keyframes successSpin {
    0% { 
        transform: scale(0) rotate(-180deg);
    }
    100% { 
        transform: scale(1) rotate(0deg);
    }
}

/* 모바일 최적화 */
@media (max-width: 640px) {
    .betting-modal-container {
        width: 95%;
        margin: 20px auto;
    }
    
    .betting-modal-content {
        border-radius: 20px;
    }
    
    .betting-modal-header {
        padding: 20px 20px 0;
    }
    
    .betting-issue-info,
    .betting-amount-section {
        padding: 20px;
    }
    
    .betting-balance {
        margin: 0 20px;
    }
    
    .betting-prediction {
        margin: 0 20px;
    }
    
    .betting-actions {
        padding: 20px;
    }
    
    .amount-display span {
        font-size: 28px;
    }
    
    .success-title {
        font-size: 28px;
    }
    
    .success-icon {
        font-size: 60px;
    }
}
