.bigbet-tracker {
    background: #0F212E;
    padding: 20px;
    color: white;
    box-sizing: border-box;
    min-height: 100vh;
}

.bigbet-tracker * {
    box-sizing: border-box;
}

/* Header */
.header {
    margin-bottom: 24px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 24px;
    font-weight: bold;
}

.logo-icon {
    font-size: 28px;
}

/* 검색 영역 */
.filters-form {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 24px;
}

.search-section {
    display: flex;
    gap: 16px;
    margin-bottom: 20px;
}

.search-input-group {
    flex: 1;
    position: relative;
}

.keyword-input {
    width: 100%;
    height: 44px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    padding: 0 16px;
    color: #fff;
    font-size: 14px;
}

.keyword-input:focus {
    border-color: var(--accent);
    background: rgba(255,255,255,0.08);
    outline: none;
}

.search-controls {
    display: flex;
    gap: 12px;
}

.search-btn,
.reset-btn {
    height: 44px;
    padding: 0 24px;
    border-radius: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.search-btn {
    background: var(--accent);
    border: none;
    color: #fff;
}

.search-btn:hover {
    background: var(--accent-hover);
    transform: translateY(-1px);
}

.reset-btn {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    color: #fff;
}

.reset-btn:hover {
    background: rgba(255,255,255,0.08);
}

/* Filters */
.filters {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.amount-filters {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.filter-btn {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    padding: 8px 16px;
    border-radius: 12px;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.3s ease;
}

.filter-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
}

.filter-btn.active {
    background: linear-gradient(45deg, #ff6b35, #f7931e);
    border-color: #ff6b35;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.4);
}

.right-filters {
    display: flex;
    align-items: center;
    gap: 15px;
}

.date-range {
    display: flex;
    align-items: center;
    gap: 8px;
}

.date-input {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 12px;
    width: 100px;
}

.date-input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.price-input {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 12px;
    width: 80px;
    text-align: center;
}

.price-input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.price-input:focus {
    outline: none;
    border-color: #1475E1;
    box-shadow: 0 0 0 2px rgba(20, 117, 225, 0.2);
}

/* Submit Button */
.submit-btn {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    justify-self: center;
    width: 100%;
}

.submit-btn button {
    background: linear-gradient(45deg, #1475E1, #2196F3);
    border: none;
    color: white;
    padding: 10px 20px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(20, 117, 225, 0.3);
    min-width: 80px;
}

.submit-btn button:hover {
    background: linear-gradient(45deg, #0d5bb8, #1976d2);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(20, 117, 225, 0.4);
}

.submit-btn button:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(20, 117, 225, 0.3);
}

/* Reset Button */
.reset-btn {
    background: linear-gradient(45deg, #6c757d, #495057);
    border: none;
    color: white;
    padding: 10px 20px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(108, 117, 125, 0.3);
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.reset-btn:hover {
    background: linear-gradient(45deg, #5a6268, #343a40);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(108, 117, 125, 0.4);
    color: white;
    text-decoration: none;
}

.reset-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(108, 117, 125, 0.3);
}

/* 숫자 입력 필드의 위아래 화살표 숨기기 */
.price-input::-webkit-outer-spin-button,
.price-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.price-input[type=number] {
    -moz-appearance: textfield;
}

/* Game Filters */
.game-filters {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    flex-wrap: wrap;
    gap: 10px;
}

.game-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 5px;
}

.game-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
}

.game-btn.active {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
}

.search-section {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
}

.search-input {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 6px 10px;
    border-radius: 4px;
    font-size: 12px;
    width: 60px;
}

.search-input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

/* Tab Menu */
.tab-menu {
    display: flex;
    justify-content: space-between;
    align-items: center;
    /* margin-bottom: 20px; */
    /* padding: 15px 0; */
    /* border-bottom: 1px solid rgba(255, 255, 255, 0.1); */
    flex-wrap: wrap;
    gap: 10px;
}

.tab-btn {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    padding: 8px 16px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
    border-radius: 4px;
    text-decoration: none;
}

.tab-btn:hover {
    color: white;
    background: rgba(255, 255, 255, 0.1);
}

.tab-btn.active {
    color: white;
    font-weight: bold;
    border-bottom: 1px solid #1475E1;
}

.currency-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

.view-controls {
    display: flex;
    background-color: #2F4553;
    border-radius: 20px;
    padding: 4px;
}

.view-btn {
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.3s ease;
    background: transparent;
    text-decoration: none;
}

.view-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.view-btn.active {
    background: #000;
}

/* Table */
.table-container {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.ranking-table {
    width: 100%;
    border-collapse: collapse;
}

.ranking-table thead {
    background: rgba(255, 255, 255, 0.1);
}

.ranking-table th {
    padding: 15px 10px;
    text-align: left;
    font-weight: bold;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.ranking-table th.comments {
    text-align: center;
}

.ranking-table tbody tr {
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.ranking-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: translateY(-1px);
}

.ranking-table tbody tr.active {
  background: linear-gradient(90deg, rgba(96,165,250,0.22), rgba(59,130,246,0.16));
  border-left: 3px solid #60a5fa;
}

.bet-row.highlighted {
  background: linear-gradient(90deg, rgba(59,130,246,0.16), rgba(37,99,235,0.12));
  border-left: 3px solid #3b82f6; /* Stake 블루 핵심 컬러 */
}

.ranking-table td {
    padding: 12px 10px;
    font-size: 13px;
    vertical-align: middle;
}

.event-info {
    display: flex;
    align-items: center;
    gap: 8px;
}

.event-info a {
    color: white;
    text-decoration: none;
}

.slug-text {
    font-weight: bolder;
}

.event-icon {
    font-size: 16px;
}

.amount {
    font-weight: bold;
}

.odds {
    font-weight: bold;
}

.payout {
    font-weight: bold;
}

.time {
    font-size: 12px;
}

.comments {
    text-align: center;
    color: rgba(255, 255, 255, 0.8);
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 7px;
    margin-top: 20px;
}

.pagination-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 6px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 11px;
    transition: all 0.3s ease;
    width: 23px;
    height: 23px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.pagination-btn.arrow {
    background-color: #272727;
}

.pagination-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
}

.pagination-btn.active {
    background: #000;
    border-color: #000;
}

.pagination-dots {
    color: rgba(255, 255, 255, 0.5);
    padding: 0 10px;
}

.mobile-view {
    display: none;
}

/* Responsive Design */
@media (max-width: 768px) {
    .bigbet-tracker {
        padding: 10px;
    }

    .filters,
    .game-filters,
    .tab-menu {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
    }

    .amount-filters {
        justify-content: center;
    }

    .right-filters {
        justify-content: center;
    }

    .sort-controls {
        justify-content: center;
    }

    .table-container {
        overflow-x: auto;
    }

    .ranking-table {
        min-width: 600px;
    }

    .pagination {
        flex-wrap: wrap;
    }
}

@media (max-width: 480px) {
    .logo {
        font-size: 20px;
        justify-content: center;
    }

    .filter-btn,
    .game-btn {
        flex: 1;
        text-align: center;
        flex-shrink: 0;
        white-space: nowrap;
    }

    .amount-filters {
        display: flex;
        flex-wrap: nowrap;
        width: 100%;
        justify-content: flex-start;
        overflow-x: auto;
    }

    .date-range {
        justify-content: center;
    }

    .right-filters {
        justify-content: flex-end;
    }

    .tab-menu {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .tab-btn-group {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        width: 100%;
        justify-content: flex-start;
    }

    .tab-btn-group .tab-btn {
        flex-shrink: 0;
        white-space: nowrap;
    }

    .currency-controls {
        width: 100%;
        justify-content: flex-end;
    }

    .mobile-view {
        display: block;
    }

    .desktop-view {
        display: none;
    }

    .event-info a {
        width: 100px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .ranking-table {
        min-width: auto;
        width: 100%;
    }
}

/* ===== Theme & Typo ===== */
:root {
    --bg: #0B1620;
    --panel: #0F212E;
    --muted: #91A4B7;
    --line: rgba(255, 255, 255, .08);
    --chip: #1B3342;
    --chip-on: #223D50;
    --accent: #3B82F6;
    --accent-2: #22C55E;
    --cta: #2478FF;
    --cta-hover: #1e61cc;
}

.bigbet-tracker {
    background: var(--bg);
    color: #EAF0F6;
}

body,
.ranking-table td,
.ranking-table th {
    font-feature-settings: "tnum" 1;
    font-variant-numeric: tabular-nums;
    letter-spacing: .2px;
}

/* ===== Sticky Toolbar ===== */
.filters-form-sticky {
    top: 0;
    z-index: 20;
    background: linear-gradient(180deg, rgba(11, 22, 32, .96), rgba(11, 22, 32, .86));
    backdrop-filter: blur(6px);
    border-bottom: 1px solid var(--line);
    margin: -10px -20px 12px;
    padding: 12px 20px 10px;
}

@media (max-width:768px) {
    .filters-form-sticky {
        margin: -10px -10px 10px;
        padding: 10px;
    }
}

/* 칩 스타일 */
.amount-filters .filter-btn {
    background: var(--chip);
    border-color: transparent;
    color: #D9E3EE;
}

.amount-filters .filter-btn.active,
.amount-filters .filter-btn[aria-pressed="true"] {
    background: var(--chip-on);
    outline: 1px solid rgba(255, 255, 255, .12);
}

/* 검색 아이콘 내장 */
.keyword {
    /* position:relative; */
    /* min-width:220px; */
}

.keyword-input {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color:white;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 12px;
    width: 180px;
    height: 100%;
    text-align: center;
}

/* 통화 토글 */
.view-controls {
    background: #102736;
    border: 1px solid var(--line);
}

.view-btn.active {
    background: #0B1924;
    border: 1px solid rgba(255, 255, 255, .12);
}

/* 테이블 정렬 */
.ranking-table th:nth-child(3),
.ranking-table td.amount,
.ranking-table td.payout,
.ranking-table td.odds {
    text-align: right;
}

.ranking-table td.time {
    color: var(--muted);
    white-space: nowrap;
}

/* 행 퀵액션 */
.ranking-table tbody tr {
    position: relative;
}

.row-actions {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    gap: 6px;
    opacity: 0;
    pointer-events: none;
    transition: .2s;
}

.ranking-table tbody tr:hover {
    background: rgba(255, 255, 255, .04);
}

.ranking-table tbody tr:hover .row-actions {
    opacity: 1;
    pointer-events: auto;
}

.row-actions a {
    font-size: 12px;
    padding: 6px 8px;
    border-radius: 8px;
    background: #122B3B;
    color: #DDE7F1;
    text-decoration: none;
    border: 1px solid var(--line);
}

/* 슬러그 배지 */
/* 공통 종목 칩 */
.slug-text {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  font-size:11px;
  font-weight:800;
  line-height:1;
  letter-spacing:.25px;
  padding:3px 8px;
  border-radius:999px;
  border:1px solid rgba(59,130,246,.35);
  background:rgba(59,130,246,.16);
  color:#E6F1FF;
}

/* 멀티 칩 (slug가 없을 때) */
.slug-text.multi {
  background:#353B47;
  border:1px solid rgba(255,255,255,.14);
  color:#E8EEF7;
}

/* 종목별 색상 프리셋 */
.slug-text.tennis {
  background:rgba(34,197,94,.16);
  border-color:rgba(34,197,94,.35);
  color:#DFFBEA;
}
.slug-text.soccer {
  background:rgba(96,165,250,.16);
  border-color:rgba(96,165,250,.35);
  color:#EAF3FF;
}
.slug-text.baseball {
  background:rgba(245,158,11,.16);
  border-color:rgba(245,158,11,.38);
  color:#FFF5E3;
}
.slug-text.basketball {
  background:rgba(251,113,133,.16);
  border-color:rgba(251,113,133,.36);
  color:#FFECEF;
}
.slug-text.cricket {
  background:rgba(52,211,153,.16);
  border-color:rgba(52,211,153,.36);
  color:#E9FFF6;
}
.slug-text.volleyball {
  background:rgba(167,139,250,.16);
  border-color:rgba(167,139,250,.36);
  color:#F4F1FF;
}
.slug-text.tabletennis {
  background:rgba(56,189,248,.16);
  border-color:rgba(56,189,248,.36);
  color:#EAF9FF;
}
.slug-text.lol {
  background:rgba(139,92,246,.16);
  border-color:rgba(139,92,246,.36);
  color:#F2E8FF;
}

/* 타이틀 가독성 향상 */
.event-info .title {
  margin-left:6px;
  font-weight:600;
  color:#F3F7FC;
  opacity:.95;
}

/* 모바일에서 두 줄까지만 보이게 */
@media (max-width:480px){
  .event-info { gap:6px; }
  .event-info .title {
    display:-webkit-box;
    -webkit-line-clamp:2;
    -webkit-box-orient:vertical;
    overflow:hidden;
  }
}


/* 상/하단 CTA */
.join-offer-banner {
    border-radius: 12px;
    border: 1px solid var(--line);
}

.cta {
    background: var(--cta);
}

.join-offer-link:hover .cta {
    background: var(--cta-hover);
}

/* 메타바 */
.meta-bar {
    display: flex;
    gap: 10px;
    align-items: center;
    color: var(--muted);
    font-size: 12px;
    margin: 6px 0 12px;
    justify-content: flex-end;
}

.meta-bar .dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #34D399;
}

/* 포커스 가시성 */
a:focus-visible,
button:focus-visible,
input:focus-visible {
    outline: 2px solid #60A5FA;
    outline-offset: 2px;
}

/* 모션 배려 */
@media (prefers-reduced-motion: reduce) {
    * {
        transition: none !important;
        animation: none !important;
    }
}

.join-offer-banner {
    margin: 16px 0 12px;
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 60%) padding-box, linear-gradient(135deg, #3b82f6, #22c55e) border-box;
    border: 1px solid transparent;
    border-radius: 14px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .25);
}

.join-offer-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px;
    text-decoration: none;
    color: #e6edf5;
}

.offer-copy {
    display: flex;
    flex-direction: column;
    gap: 4px
}

.kicker {
    font-size: 12px;
    opacity: .9
}

.headline {
    font-size: 16px;
    line-height: 1.3
}

.headline b {
    color: #ffffff
}

.sub {
    font-size: 12px;
    opacity: .85
}

.cta {
    white-space: nowrap;
    font-weight: 800;
    font-size: 14px;
    padding: 10px 14px;
    border-radius: 10px;
    background: #2478FF;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, .12);
}

.join-offer-link:hover .cta {
    transform: translateY(-1px)
}

@media (max-width:480px) {
    .headline {
        font-size: 15px
    }

    .cta {
        font-size: 13px;
        padding: 9px 12px
    }
}

/* 검색 영역 통합 스타일 */
.filters-form {
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 16px;
    margin-bottom: 20px;
}

.search-section {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
}

.search-input-group {
    flex: 1;
    position: relative;
}

.keyword-input {
    width: 100%;
    height: 44px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    padding: 0 16px;
    color: #fff;
    font-size: 14px;
}

.keyword-input:focus {
    border-color: var(--accent);
    background: rgba(255,255,255,0.08);
    outline: none;
}

.search-controls {
    display: flex;
    gap: 8px;
}

.search-btn {
    height: 44px;
    padding: 0 24px;
    background: var(--accent);
    border: none;
    border-radius: 12px;
    color: #fff;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.search-btn:hover {
    background: var(--accent-hover);
    transform: translateY(-1px);
}

.reset-btn {
    height: 44px;
    padding: 0 20px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    color: #fff;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

@media (max-width:480px) {
    .search-control {
        min-width: 0;
        width: 100%;
    }

    .keyword-input {
        padding-right: 44px !important;
    }

    .search-btn {
        width: 34px;
        height: 30px;
        right: 4px;
    }
}

/* 기존 왼쪽 아이콘 제거: search-control을 쓰면 ::before 아이콘 끈다 */
.keyword.search-control::before {
    content: none !important;
}

/* search-control 입력 패딩 재조정 (왼쪽 아이콘 삭제했으니 좌측 여백 축소) */
.keyword.search-control .keyword-input {
    padding-left: 12px !important;
    padding-right: 46px !important;
    /* 오른쪽 버튼 자리 */
}

/* 인라인 검색 버튼 스타일(재확인) */
.search-control {
    position: relative;
    min-width: 260px;
}

.search-btn {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 32px;
    border-radius: 8px;
    background: var(--cta);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, .14);
    cursor: pointer;
    transition: background-color .18s ease, transform .1s ease;
}

.search-btn:hover {
    background: var(--cta-hover);
}

.search-btn:active {
    transform: translateY(calc(-50% + 1px));
}

.search-btn:focus-visible {
    outline: 2px solid #60A5FA;
    outline-offset: 2px;
}

@media (max-width:480px) {
    .search-control {
        min-width: 0;
        width: 100%;
    }

    .keyword.search-control .keyword-input {
        padding-right: 44px !important;
    }

    .search-btn {
        width: 34px;
        height: 30px;
        right: 4px;
    }
}

/* (안전장치) 아이콘을 쓰고 싶다면 폰트 패밀리를 7로 맞춰야 함 .keyword::before{ font-family: "Font Awesome 6 Free"; <- 이 줄 때문에 네모 뜸 } */
/* 검색 버튼 하이엔드 스타일 */
.submit-btn button {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    border: none;
    color: #fff;
    padding: 10px 24px;
    border-radius: 12px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 700;
    transition: all 0.25s ease;
    box-shadow: 0 4px 10px rgba(37, 99, 235, .25);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.submit-btn button:hover {
    background: linear-gradient(135deg, #1d4ed8, #1e40af);
    transform: translateY(-1px);
    box-shadow: 0 6px 15px rgba(37, 99, 235, .35);
}

.submit-btn button:active {
    transform: translateY(0);
    box-shadow: 0 3px 8px rgba(37, 99, 235, .2);
}

/* 초기화 버튼도 조금 개선 */
.reset-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #d1d9e6;
    padding: 10px 22px;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 600;
    text-decoration: none;
    transition: all .25s ease;
}

.reset-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
}

/* ===== Mobile Polish Patch (≤480px) ===== */
@media (max-width: 480px){

  /* 전체 여백 + 하단 CTA와 겹침 방지 */
  .bigbet-tracker{ padding:12px 10px 72px; }

  /* 필터 영역: 간격↑, 요소 정렬 안정화 */
  .filters{ gap:12px; }
  .amount-filters{
    display:flex; gap:8px; padding-bottom:6px;
    overflow-x:auto; overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
  }
  .amount-filters .filter-btn{
    flex:none; scroll-snap-align: start;
    padding:10px 12px; border-radius:16px; font-size:12px;
  }

  /* 가격범위 인풋: 터치 타겟 확장 */
  .price-input{ height:40px; min-width:96px; font-size:14px; }

  /* 검색 인풋: 폭 100%, 왼쪽 정렬 */
  .keyword{ width:100%; }
  .keyword-input{
    width:100% !important;
    height:42px;
    font-size:14px;
    padding:10px 12px;
  }

  /* 제출/초기화 버튼: 동일 높이 + 2열 레이아웃 */
  .submit-btn{
    width:100%; gap:8px; justify-content:space-between;
  }
  .submit-btn button,
  .reset-btn{
    height:42px;
    padding:0 14px;
    border-radius:12px;
    display:flex;
    align-items:center;
    justify-content:center;
    flex:1 1 0;
    /* min-width:auto; */
    font-size:14px;
  }
  .reset-btn{ white-space:nowrap; }

  /* 탭 메뉴: 스크롤 탭 + 얇은 언더라인 */
  .tab-menu{/* padding:8px 0 12px; *//* margin-bottom:12px; */gap:10px;}
  .tab-btn-group{
    display:flex; gap:2px; overflow-x:auto; width:100%;
    -webkit-overflow-scrolling: touch;
  }
  .tab-btn{ padding:10px 12px; font-size:13px; border-radius:10px; }
  .tab-btn.active{ border-bottom:0; background:rgba(255,255,255,.08); }

  /* 통화 토글: 좌측 정렬, 버튼 커짐 */
  .currency-controls{ width:100%; justify-content:flex-start; }
  .view-controls{ padding:3px; }
  .view-btn{ padding:6px 10px; font-size:12px; }

  /* 테이블: 패딩/폰트 컨덴스, 숫자 정렬 유지 */
  .table-container{ border-radius:12px; }
  .ranking-table{ width:100%; min-width:auto; }
  .ranking-table th{ padding:12px 10px; font-size:13px; }
  .ranking-table td{ padding:10px 10px; font-size:12.5px; }

  /* 모바일 전용 컬럼 표시/숨김 유지(이미 존재) */
  .mobile-view{ display:block; }
  .desktop-view{ display:none; }

  /* 이벤트 링크 잘림 방지: 한 줄 말줄임 → 두 줄까지 허용 */
  .event-info a{
    display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical;
    overflow:hidden; text-overflow:ellipsis; white-space:normal;
  }

  /* 시간/부가 텍스트 명도 조정 */
  .time{ color:rgba(255,255,255,.75); }

  /* 하단 스티키 CTA: 터치 여백 확장 */
  .sticky-cta{ bottom:8px; }
  .sticky-cta a{ padding:12px 16px; border-radius:12px; }
}

.whale-brief {
  --border: rgba(255,255,255,.06);
  --muted: rgba(255,255,255,.6);
  --accent: #2563eb;
  --accent2: #3b82f6;
  margin: 0 0 20px 0;
}

.wb-grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 12px;
}

.wb-card {
  position: relative;
  background: rgba(255,255,255,.03);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
  transition: all 0.2s ease;
}

.wb-card:hover {
  transform: translateY(-1px);
  border-color: rgba(255,255,255,.1);
  background: rgba(255,255,255,.04);
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.wb-tag {
  display: inline-flex;
  align-items: center;
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
  margin-bottom: 12px;
  letter-spacing: -0.3px;
}

.wb-tag.hot {
  color: #f59e0b;
}

.wb-tag.hot::before {
  content: "🔥";
  font-size: 13px;
  margin-right: 4px;
}

.wb-amount {
  font-weight: 700;
  font-size: 20px;
  color: #fff;
  margin: 0 0 8px 0;
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.wb-meta {
  font-size: 15px;
  color: var(--muted);
  margin-bottom: 4px;
}

.wb-chipset {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.chip {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 700;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.06);
  transition: transform 0.2s ease;
}

.chip:hover {
  transform: translateY(-1px);
}

.chip-slug {
  background: rgba(99,102,241,.15);
  border-color: rgba(99,102,241,.3);
}

.chip-odds {
  background: rgba(245,158,11,.15);
  border-color: rgba(245,158,11,.3);
}

.chip-pair {
  background: rgba(94,234,212,.15);
  border-color: rgba(94,234,212,.3);
}
@media (max-width:960px) {
  .wb-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  .wb-card {
    padding: 16px;
  }
  .wb-amount {
    font-size: 22px;
  }
}

@media (max-width:640px) {
  .wb-grid {
    display: flex;
    grid-template-columns: unset;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding: 4px 0 16px;
    margin: 0 -16px;
    scroll-padding: 0 16px;
  }
  
  .wb-card {
    scroll-snap-align: start;
    flex: 0 0 300px;
    margin: 0 8px;
  }
  
  .wb-card:first-child {
    margin-left: 16px;
  }
  
  .wb-card:last-child {
    margin-right: 16px;
  }

  .whale-brief {
    padding: 16px;
    margin: 16px auto;
  }
  
  .wb-tag {
    font-size: 12px;
    padding: 6px 12px;
  }
  
  .wb-meta {
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  
  .chip {
    font-size: 11px;
  }
  
  /* 스크롤바 스타일링 */
  .wb-grid::-webkit-scrollbar {
    height: 4px;
  }
  
  .wb-grid::-webkit-scrollbar-track {
    background: rgba(255,255,255,0.05);
    border-radius: 4px;
  }
  
  .wb-grid::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.2);
    border-radius: 4px;
  }
}

/* 모바일 최적화된 베팅 리스트 */
.betting-list-container {
    margin: 0 -16px;
    padding: 0 16px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    display: flex;
    gap: 12px;
}

@media screen and (min-width: 769px) {
    .betting-list-container {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
        margin: 0;
        padding: 0;
        overflow-x: visible;
    }
}

.betting-item {
    flex: 0 0 calc(100% - 32px);
    min-width: 280px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.25s ease;
    scroll-snap-align: start;
}

.betting-item:hover {
    transform: translateY(-2px);
    border-color: var(--accent);
    background: rgba(255, 255, 255, 0.04);
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

/* 스크롤바 스타일링 */
.betting-list-container::-webkit-scrollbar {
    height: 4px;
}

.betting-list-container::-webkit-scrollbar-track {
    background: rgba(255,255,255,0.05);
    border-radius: 4px;
}

.betting-list-container::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.2);
    border-radius: 4px;
}

/* 검색 영역 모바일 최적화 */
@media screen and (max-width: 768px) {
    main.app-main.app-container {
        padding: 0px;
    }
    .bigbet-tracker {
        padding: 16px;
    }

    .filters-form {
        background: rgba(255,255,255,0.03);
        border: 1px solid rgba(255,255,255,0.1);
        padding: 16px;
        margin: 0 -16px 20px -16px;
        border-radius: 0;
        border-left: none;
        border-right: none;
    }

    .search-section {
        flex-direction: column;
        gap: 12px;
    }

    .search-controls {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }

    .search-btn,
    .reset-btn {
        width: 100%;
        padding: 0 16px;
        height: 44px;
        border-radius: 12px;
        font-weight: 500;
    }

    .filters {
        gap: 8px;
    }

    .filter-btn {
        font-size: 13px;
        padding: 6px 12px;
        border-radius: 8px;
    }

    .keyword-input {
        height: 44px;
        font-size: 14px;
        padding: 0 16px;
        border-radius: 12px;
        background: rgba(255,255,255,0.06);
        border: 1px solid rgba(255,255,255,0.1);
        width: 100%;
    }

    .keyword-input:focus {
        border-color: var(--accent);
        background: rgba(255,255,255,0.08);
        outline: none;
    }
}