/* Font */
@font-face {
    font-family: 'Pretendard';
    font-weight: 900;
    font-display: swap;
    src: local('Pretendard Black'), url(../../fonts/Pretendard-Black.subset.woff2) format('woff2'), url(../../fonts/Pretendard-Black.subset.woff) format('woff');
}

@font-face {
    font-family: 'Pretendard';
    font-weight: 800;
    font-display: swap;
    src: local('Pretendard ExtraBold'), url(../../fonts/Pretendard-ExtraBold.subset.woff2) format('woff2'), url(../../fonts/Pretendard-ExtraBold.subset.woff) format('woff');
}

@font-face {
    font-family: 'Pretendard';
    font-weight: 700;
    font-display: swap;
    src: local('Pretendard Bold'), url(../../fonts/Pretendard-Bold.subset.woff2) format('woff2'), url(../../fonts/Pretendard-Bold.subset.woff) format('woff');
}

@font-face {
    font-family: 'Pretendard';
    font-weight: 600;
    font-display: swap;
    src: local('Pretendard SemiBold'), url(../../fonts/Pretendard-SemiBold.subset.woff2) format('woff2'), url(../../fonts/Pretendard-SemiBold.subset.woff) format('woff');
}

@font-face {
    font-family: 'Pretendard';
    font-weight: 500;
    font-display: swap;
    src: local('Pretendard Medium'), url(../../../fonts/Pretendard-Medium.subset.woff2) format('woff2'), url(../../fonts/Pretendard-Medium.subset.woff) format('woff');
}

@font-face {
    font-family: 'Pretendard';
    font-weight: 400;
    font-display: swap;
    src: local('Pretendard Regular'), url(../../../fonts/Pretendard-Regular.subset.woff2) format('woff2'), url(../../fonts/Pretendard-Regular.subset.woff) format('woff');
}

@font-face {
    font-family: 'Pretendard';
    font-weight: 300;
    font-display: swap;
    src: local('Pretendard Light'), url(../../../fonts/Pretendard-Light.subset.woff2) format('woff2'), url(../../fonts/Pretendard-Light.subset.woff) format('woff');
}

@font-face {
    font-family: 'Pretendard';
    font-weight: 200;
    font-display: swap;
    src: local('Pretendard ExtraLight'), url(..././fonts/Pretendard-ExtraLight.subset.woff2) format('woff2'), url(../../fonts/Pretendard-ExtraLight.subset.woff) format('woff');
}

@font-face {
    font-family: 'Pretendard';
    font-weight: 100;
    font-display: swap;
    src: local('Pretendard Thin'), url(../../../fonts/Pretendard-Thin.subset.woff2) format('woff2'), url(../../fonts/Pretendard-Thin.subset.woff) format('woff');
}

@font-face {
    font-family: 'BebasNeue-Regular';
    font-display: swap;
    src: url(../../../fonts/BebasNeue-Regular.woff2) format('woff2'), url(../../../fonts/BebasNeue-Regular.woff) format('woff');
}

@font-face {
    font-family: 'GyeonggiTitle';
    src: url(../../../fonts/GyeonggiTitle-Bold.otf) format('opentype');
    font-style: normal;
}

:root {
    --primary-color: #1a73e8;
    --secondary-color: #f8f9fa;
    --accent-color: #34a853;
    --danger-color: #ea4335;
    --text-color: #202124;
    --border-color: #e2e2e2;
    --hover-color: #e8f0fe;
}

.wrap-sport * {
    box-sizing: border-box;
    font-family: 'Noto Sans KR', sans-serif;
}

body.wrap-sport {
    background-color: #fcf1ee;
    color: var(--text-color);
    line-height: 1.6;
    min-height: 100%;
}

.wrap-sport {
    min-width: 1480px;
    background: #f5f5f5;
}

.wrap-sport .header .bar-gnb .gnb {
    background: #fff;
    border-bottom: 1px solid #e1e1e1;
}

.wrap-sport .container {
    margin: 0 auto;
    padding: 0 10px;
}

.wrap-sport .pointer {
    cursor: pointer;
}

.wrap-sport .search-bar {
    display: flex;
    gap: 0.625rem;

    padding: 15px;
    background-color: #fff;
    border: 1px solid #e9e9e9;
    border-top: none;
    border-bottom: none;
}

.wrap-sport .search-bar .btn-memu-league {
    display: none;

    padding: 10px 15px;
    color: #868686;
    background: #f1f1f1;
    border: 1px solid var(--border-color);
    cursor: pointer;
}

.wrap-sport .search-input {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.3s;
    background: #f9f9f9;
}

.wrap-sport .search-input:focus {
    outline: none;
    background: none;
    color: #f5444b;
    border-color: #f5444b;
}

/* 3분할 레이아웃 */
.wrap-sport .betting-list-area {
    position: relative;
    display: flex;
}

/* type menu*/
.wrap-sport .menu-type-container {
    background-color: #fff;
    margin: 10px 10px 0;
    overflow: hidden;
    border: 1px solid #e1e1e1;
}

.wrap-sport .menu-type-container .menu-wrapper {
    display: flex;
    align-items: stretch;
    /*min-height: 60px;*/

}

.wrap-sport .menu-type-container .menu-section {
    display: flex;
    align-items: center;
    position: relative;
    background: #f9f9f9;
    transition: all 0.3s ease;
}

.wrap-sport .menu-type-container .menu-button {
    position: relative;
    padding: 0 16px;
    height: 100%;
    min-height: 4rem;
    background: #fff;
    color: #868686;
    border: none;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    white-space: nowrap;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
    z-index: 2;
    border: 1px solid #e1e1e1;
    border-top: none;
    border-bottom: none;
}

.wrap-sport .menu-type-container .menu-button i {
    width: 1.625rem;
}

.wrap-sport .menu-type-container .menu-button i img {
    width: 100%;
    filter: brightness(1.2) grayscale(1);
}

.wrap-sport .menu-type-container .menu-button:hover,
.wrap-sport .menu-type-container .menu-button.active {
    color: #fff;
    background: linear-gradient(to bottom, #fb5e53, #ff454e);
}

.wrap-sport .menu-type-container .menu-button::after {
    content: '◀';
    font-size: 12px;
    transition: transform 0.3s ease;
}

.wrap-sport .menu-type-container .menu-button.active::after {
    transform: rotate(180deg);
}

.wrap-sport .menu-type-container .menu-button:hover i img,
.wrap-sport .menu-type-container .menu-button.active i img {
    filter: grayscale(1) brightness(10);
    opacity: 1;
}

.wrap-sport .menu-type-container .sports-list {
    display: flex;
    align-items: center;
    max-width: 0;
    overflow: hidden;
    opacity: 0;
    transition: all 0.4s ease;
}

.wrap-sport .menu-type-container .sports-list.active {
    max-width: 1000px;
    opacity: 1;
}

.wrap-sport .menu-type-container .sports-list>div+div {
    border-left: 1px solid #e1e1e1;
}

.wrap-sport .menu-type-container .sport-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;

    padding: 0.75rem 1rem 0.425rem;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    filter: grayscale(1) opacity(0.7);
    border-bottom: 4px solid transparent;
}

.wrap-sport .menu-type-container .sport-item:hover,
.wrap-sport .menu-type-container .sport-item.active {
    background: #fff;
    filter: grayscale(0) opacity(1);
    border-bottom: 4px solid #fd5e5a;
}

.wrap-sport .menu-type-container .sport-item i {
    display: inline-flex;
    justify-content: center;
    align-items: center;

    width: 1.25rem;
    height: 1.25rem;
}

.wrap-sport .menu-type-container .sport-item i img {
    height: 100%;
}

.wrap-sport .menu-type-container .sport-item p {
    line-height: 100%;
}

.wrap-sport .menu-type-container .sport-name {
    font-size: 14px;
    font-weight: 500;
    color: #e74c3c;
}

.wrap-sport .menu-type-container .sport-count {
    padding: 0 8px 2px;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    border-radius: 12px;
    background-color: #e74c3c;
}

.wrap-sport .menu-type-container .sport-item:hover .sport-count {
    color: #fff;
}

.wrap-sport .menu-type-container .loading {
    display: none;
    padding: 20px;
    text-align: center;
    color: #7f8c8d;
    margin: 0 1.425rem;
}

.wrap-sport .menu-type-container .loading.active {
    display: block;
}

.wrap-sport .menu-type-container .loading.active span {
    font-size: 0;
}

.wrap-sport .menu-type-container .error {
    color: #e74c3c;
    padding: 20px;
    text-align: center;
    display: none;
}

.wrap-sport .menu-type-container .error.active {
    display: block;
}

.wrap-sport .menu-container {
    width: 300px;
    height: 100vh;
    max-height: calc(100vh - 323px);
    background: #fff;
    border: 1px solid #e9e9e9;
    overflow-y: auto;
}

.wrap-sport .menu-item {
    border-bottom: 1px solid #eee;
}

/*
.wrap-sport .menu-item:last-child {
    border-bottom: none;
}
*/
.wrap-sport .menu-header {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    cursor: pointer;
    background: white;
    transition: background-color 0.2s;
}

.wrap-sport .menu-header:hover {
    color: #fff;
    background: linear-gradient(to right, #fb5e53, #ff454e);
}

.wrap-sport .menu-header:hover .menu-title,
.wrap-sport .menu-header:hover .menu-count {
    color: #fff;
}

.wrap-sport .menu-item:hover .menu-icon img {
    filter: brightness(10);
}

.wrap-sport .menu-icon {
    width: 16px;
    height: 16px;
    margin-right: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wrap-sport .menu-icon img {
    width: 100%;
    filter: grayscale(1);
}

.wrap-sport .menu-title {
    flex: 1;
    font-size: 14px;
    color: #333;
}

.wrap-sport .menu-count {
    color: #999;
    font-size: 12px;
    margin-right: 8px;
}

.wrap-sport .toggle-icon {
    display: inline-flex;
    justify-content: center;
    align-items: center;

    width: 12px;
    height: 12px;
    transition: transform 0.2s;
}

.wrap-sport .toggle-icon.expanded {
    transform: rotate(180deg);
}

.wrap-sport .submenu {
    display: none;
    background-color: #f8f9fa;
    border-top: 1px solid #eee;
}

.wrap-sport .submenu.expanded {
    display: block;
}

.wrap-sport .submenu-item {
    border-bottom: 1px solid #eee;
    cursor: pointer;
    transition: background-color 0.2s;
}

.wrap-sport .submenu-item:hover {
    background-color: #e9ecef;
}

.wrap-sport .submenu-item:last-child {
    border-bottom: none;
}

.wrap-sport .submenu-title {
    padding: 8px 16px;
    font-size: 13px;
    color: #555;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.wrap-sport .submenu-title .icon-location {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 0.75rem;
}

.wrap-sport .submenu-title .icon-location>img {
    height: 1rem;
}

.wrap-sport .submenu-title span:nth-child(2) {
    margin-left: auto;
    margin-right: 0.5rem;
}

.wrap-sport .league-submenu {
    display: none;
    border-top: 1px solid #ddd;
}

.wrap-sport .league-submenu.expanded {
    display: block;
}

.wrap-sport .league-item {
    display: flex;

    padding: 8px 38px 8px 22px;
    line-height:100%;
    font-size: 12px;
    color: #666;
    cursor: pointer;
    transition: background-color 0.2s;
    border-bottom: 1px solid #ddd;
}

.wrap-sport .league-item>span:last-child {
    margin-left: auto;
}

.wrap-sport .league-item:hover {
    color: #f5444b;
}

.wrap-sport .league-item:last-child {
    border-bottom: none;
}

.wrap-sport .sport-soccer {
    color: #28a745;
}

.wrap-sport .sport-baseball {
    color: #dc3545;
}

.wrap-sport .sport-basketball {
    color: #fd7e14;
}

.wrap-sport .sport-football {
    color: #6f42c1;
}

.wrap-sport .sport-tennis {
    color: #20c997;
}

/* 왼쪽: 경기 목록 */
.wrap-sport .fixtures-container {
    flex: 1;
    display: block;
    /*max-width: 50%;*/
    max-height: calc(100vh - 323px);

    padding: 10px;
    background: #fffcfc;
    border: 1px solid #e9e9e9;
    border-radius: 0;

    overflow-y: auto;
}

.wrap-sport .fixtures-container>div+div {
    margin-top: 0.5rem;
}

/* 가운데: 상세 베팅 정보 */
.wrap-sport .fixtures-bet-details {
    /*    position:absolute;
    top:10px;
    left:230px;*/

    max-width: calc(40% - 100px);
    background: #fff;
    border: 1px solid #e9e9e9;
    border-left: none;
}

.wrap-sport .bet-details-placeholder {
	width:100%;
    height: 100%;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #888;
    text-align: center;
    padding: 40px;
}

.wrap-sport .bet-details-content {

    background: #fff;
}

.wrap-sport .bet-details-header {
    display: flex;
    flex-direction: column;
    align-items: center;

    border-radius: 0;
}

.wrap-sport .bet-details-teams {
    display: flex;
    justify-content: space-between;
    align-items: center;

    padding: 0.5rem 1rem;
    ;
    width: 100%;
    font-size: 18px;
    font-weight: 600;
    border: 2px solid #fc7555;
    border-top: none;
}

.wrap-sport .bet-details-teams span:first-child,
.wrap-sport .bet-details-teams span:last-child {
    width: 40%;
    font-size: 0.75rem;
}

.wrap-sport .bet-details-teams span:last-child {
    text-align: right;
}

.wrap-sport .bet-details-info {
    display: flex;
    justify-content: space-between;

    padding: 15px;
    width: 100%;
    color: #fff;
    font-weight: bold;
    font-size: 14px;
    background: linear-gradient(to bottom, #fc7555 50%, #ff6958);
}

.wrap-sport .fixture-card {
    background-color: #fff;
    border-radius: 0;
    overflow: hidden;
    transition: transform 0.3s;
    cursor: pointer;

    transition: all 0.3s;
    border-radius: 0.25rem;
    border: 1px solid #edebea;
    overflow: hidden;
}

.fixture-card.active {
    border: 1px solid #da313e;
}

.wrap-sport .fixture-header {
    display: flex;
    justify-content: space-between;
    align-items: center;

    padding: 0 0.5rem 0 1rem;
    height: 40px;
    color: #333;

    background: #fff;
    border-bottom: 1px solid #ededed;
    box-shadow: 0 0 5px #ededed;
}

.wrap-sport .fixture-card.active .fixture-header {
    background: linear-gradient(to bottom, #fb5e53, #ff454e);
    color: #fff;
}

.wrap-sport .fixture-league {
    display: inline-flex;
    align-items: center;
    gap: 0.425rem;

    line-height: 100%;
    font-weight: 500;
    font-size: 14px;
}

.wrap-sport .fixture-league>span {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.wrap-sport .fixture-league>i {
    padding-top: 4px;
    color: #ccc;
    font-size: 12px;
}

.wrap-sport .fixture-time {
    display: flex;
    align-items: center;
    gap: 0.25rem;

    padding: 4px 6px;
    line-height: 100%;
    font-size: 12px;
    color: #333;
    font-weight: bold;
    background: #f1f1f1;
    border: 1px solid #dfdfdf;
    border-radius: 3px;
}

.wrap-sport .fixture-time>span {
    font-size: 12px;
}

.wrap-sport .fixture-card.active .fixture-time {
    color: #fff;
    background: #c72936;
    border: 1px solid #da313e;
}

.wrap-sport .fixture-details {
    padding: 15px;
}

.wrap-sport .teams {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.wrap-sport .team {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.wrap-sport .team-name {
    font-weight: 600;
    margin-top: 5px;
}

.wrap-sport .vs {
    font-weight: bold;
    color: #888;
    margin: 0 10px;
}

.wrap-sport .match-info {
    text-align: center;
    font-size: 12px;
    color: #666;
    margin-bottom: 15px;
}

.wrap-sport .markets {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.wrap-sport .market {
    margin-bottom: 10px;
}

.wrap-sport .market-name {
    font-weight: 600;
    margin-bottom: 8px;
}

.wrap-sport .bets {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.wrap-sport .bet {
    /*flex: 1;*/
    border: 1px solid var(--border-color);
    border-bottom-width: 2px;
    border-radius: 3px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
    min-width: 88px;
    background: #fff;
}

.wrap-sport .bet:hover {
    color: #e16f17 !important;
    font-weight: bold;
    letter-spacing: -0.5px;
    background: #fff9f8;
    border-color: #e16f17;
}

.wrap-sport .bet[data-status="2"],
.wrap-sport .selected-bet-item[data-status="2"] {
    background:#e0e0e0 !important;
    color: #888 !important;
    pointer-events: none !important;
    opacity: 0.6 !important;
    filter: grayscale(1) !important;
}

.wrap-sport .bet.selected {
    color: #e32e2a !important;
    font-weight: bold;
    letter-spacing: -0.5px;
    background: #fff9f8;
    border-color: #ffa2a0;
}

.wrap-sport .bet-name {
    font-size: 0.75rem;
    text-align: left;
    word-break: auto-phrase;
}

.wrap-sport .bet-price {
    font-weight: bold;
    color: #333;
}

.wrap-sport .bet:hover .bet-price,
.wrap-sport .bet.selected .bet-price {
    color: #d32b33 !important;
}

.wrap-sport .btn-favorite-match {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 2.25rem;
    height: 2.25rem;

    color: #ccc;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 0.25rem;
}

.wrap-sport .btn-favorite-match.current {
    color: #ffab61;
    border-color: #ffab61;
}

.wrap-sport .more-markets-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    width: 100%;
    max-width: 86px;
    height: 2.25rem;
    padding: 0 8px;
    border-radius: 0.25rem;
    color: #fff;
    background-color: #fff;
    border: 1px solid #fe434e;
    cursor: pointer;
    transition: background-color 0.2s;
}

.wrap-sport .more-markets-button:hover {
    background: linear-gradient(to right, #fc7555 50%, #ff5d58);
}

.wrap-sport .more-markets-button:hover>span,
.wrap-sport .more-markets-button:hover>i {
    color: #fff;
}

.wrap-sport .fixture-card.active .more-markets-button {
    background: linear-gradient(to right, #fc7555, #ff5d58);
    border: 1px solid #fe434e;
}

.wrap-sport .fixture-card.active .more-markets-button span,
.wrap-sport .fixture-card.active .more-markets-button i {
    color: #fff !important;
}

.wrap-sport .more-markets-button i {
    color: #fe434e;
}

.wrap-sport .more-markets-button span {
    font-size: 14px;
    font-weight: 700;
    color: #fe434e;
}

.wrap-sport .more-markets-button:hover>span i,
.wrap-sport .fixture-card.active .more-markets-button i,
.wrap-sport .more-markets-button i {
    margin-top: 3px;
}

/* 중앙 베팅 상세 영역 */

.wrap-sport .markets-container {
    display: block;

    min-height: 300px;
    height: 100%;
    max-height: calc(100vh - 505px);
    border: 2px solid #f7f7f7;
    overflow-y: auto;
}

.wrap-sport .market-item {
    background-color: #fff;
    overflow: hidden;
}

.wrap-sport .market-header {
    background-color: #f5f5f5;
    padding: 0.5rem 1rem;
    ;
    font-weight: 600;
    font-size: 14px;
    color: #666;
    border-bottom: 1px solid var(--border-color);
}

.wrap-sport .market-bets {
    display: flex;
    flex-wrap: wrap;
    padding: 8px;
    gap: 8px;
}

/* 오른쪽: 베팅 슬립 */
.wrap-sport .betting-slip {
    width: 300px;
    background-color: #fff;
    display: flex;
    flex-direction: column;
    z-index: 99;
    border: 1px solid #e1e1e1;
    border-right: none;
    margin-top: 10px;
}

.wrap-sport .slip-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    ;
    color: #fff;
    background: linear-gradient(to bottom, #fb5e53, #ff454e);
    margin-bottom: 10px;
}

.wrap-sport .slip-title {
    display: flex;
    width: 100%;

    padding-bottom: 2px;
}

.wrap-sport .slip-title>button {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 10px;

    padding: 15px;
    width: 50%;
    font-weight: 500;
    font-size: 14px;
    color: #888;
    background: #fff;
}

.wrap-sport .slip-title>button.active {
    color: #fff;
    background: linear-gradient(to bottom, #fb5e53, #ff454e);
}

.wrap-sport .slip-close {
    display: none;
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    color: #fff;
}

.wrap-sport .selected-bets {
    flex: 1;
    overflow-y: auto;
}

.wrap-sport .selected-bet-item {
    display: flex;
    justify-content: space-between;
    padding: 10px;
    border-bottom: 1px solid var(--border-color);
}

.wrap-sport .selected-bet-info {
    flex: 1;
}

.wrap-sport .selected-bet-teams {
    max-width: calc(100% - 32px);
    font-weight: 700;
    font-size: 12px;

    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.wrap-sport .selected-bet-market {
    font-size: 12px;
    color: #666;
}

.wrap-sport .selected-bet-price {
    font-weight: bold;
    color: #ff9421;
    white-space: nowrap;
}

.wrap-sport .selected-bet-remove {
    background: none;
    border: none;
    color: var(--danger-color);
    cursor: pointer;
}

.wrap-sport .slip-footer {
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.wrap-sport .total-odds {
    display: flex;
    justify-content: space-between;
    font-weight: 500;
}

.wrap-sport .bet-amount {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-bottom: 10px;
}

.wrap-sport .bet-amount-input {
    flex: 1;
    padding: 8px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
}

.wrap-sport .bet-amount-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-bottom: 10px;
}

.wrap-sport .bet-amount-btn {
    flex: 1;
    min-width: 30%;
    background-color: var(--secondary-color);
    border: 1px solid var(--border-color);
    padding: 5px 8px;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    flex-grow: 1;
    text-align: center;
    transition: all 0.1s;
}

.wrap-sport .bet-amount-btn:hover {
    color: #fff;
    background: #fa7555;
    border-color: #ee5935;
}


.wrap-sport .bet-amount-btn:active {
    color: #fff;
    background: #de3341;
    border-color: #d32b33;
}

.wrap-sport .bet-limits {
    font-size: 12px;
    color: #fff;
    margin-bottom: 10px;
    font-weight: 800;
    background: #ff434d;
    box-shadow: inset 0 0 5px #df3b44;
    border: 1px solid #fd5759;
    padding: 8px;
    border-radius: 4px;
}

.wrap-sport .potential-winnings {
    display: flex;
    justify-content: space-between;
    font-weight: 600;
    color: var(--accent-color);
}

.wrap-sport .place-bet-btn {
    background: linear-gradient(to bottom, #fb5e53, #ff454e);
    color: white;
    border: none;
    padding: 12px;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
    border: 2px solid #f5444b;
    border-bottom: 4px solid #db333a;
}

.wrap-sport .place-bet-btn:hover {
    background: linear-gradient(to bottom, #fb5e53, #ff454e);
}

.wrap-sport .place-bet-btn:disabled {
    background: #ccc;
    border-color: #ccc;
    cursor: not-allowed;
}

.wrap-sport .bet-slip-toggle {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #fd434d;
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: none;
    justify-content: center;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    z-index: 100;
}

.wrap-sport .bet-counter {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: var(--danger-color);
    color: white;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 12px;
}

.wrap-sport .update-indicator {
    position: fixed;
    top: 80px;
    right: 20px;
    background-color: var(--accent-color);
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
    opacity: 0;
    transition: opacity 0.3s;
    z-index: 101;
}

.wrap-sport .update-indicator.show {
    opacity: 1;
}

.wrap-sport .loading-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 200px;
}

.wrap-sport .loading {
    border: 4px solid #f3f3f3;
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    width: 30px;
    height: 30px;
    animation: spin 1s linear infinite;
}

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

    100% {
        transform: rotate(360deg);
    }
}

.wrap-sport .empty-state {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;

    padding: 50px 0;
    height: 100%;
    text-align: center;
}

/* 배당률 변경 표시 스타일 */
.wrap-sport .odds-up {
    position: relative;
    display: inline-flex;
    align-items: center;
    height: 100%;
    color: #34a853 !important;
    font-weight: bold;
    /*animation: flashGreen 2s;*/
}

.wrap-sport .odds-down {
    position: relative;
    display: inline-flex;
    align-items: center;
    height: 100%;
    color: #ea4335 !important;
    font-weight: bold;
    /*animation: flashRed 2s;*/
}

.wrap-sport .odds-up::after {
    content: "▲";
    font-size: 8px;
    position: absolute;
    top: 1px;
    left: 50%;
    color: #34a853;
    transform: translateX(-50%);
}

.wrap-sport .odds-down::after {
    content: "▼";
    font-size: 8px;
    position: absolute;
    bottom: 1px;
    left: 50%;
    color: #ea4335;
    transform: translateX(-50%);
}

@keyframes flashGreen {

    0%,
    100% {
        background-color: transparent;
    }

    20% {
        background-color: rgba(52, 168, 83, 0.2);
    }
}

@keyframes flashRed {

    0%,
    100% {
        background-color: transparent;
    }

    20% {
        background-color: rgba(234, 67, 53, 0.2);
    }
}

.wrap-sport .contents {
    /*padding-right:320px;*/
    display: flex;
}

.wrap-sport .contents .sport-list {
    flex: 1;
}

/* 메시지 컨테이너 스타일 */
#bet-message-container {
    font-size: 14px;
    font-weight: 500;
    animation: fade-in-out 0.3s ease-in-out;
    z-index: 1100;
}

@keyframes fade-in-out {
    0% {
        opacity: 0;
        transform: translateX(-50%) translateY(-10px);
    }

    100% {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}


/* Add these CSS rules to your sports-betting.css file */

/* Back button for middle section */
.wrap-sport .back-button {
    display: none;
    /* Hidden by default on desktop */
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 4px;
    margin-bottom: 10px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s;
}

.wrap-sport .back-button:hover {
    background-color: #1558b3;
}

/* coustom */

.wrap-sport .scroll::-webkit-scrollbar {
    width: 0.5rem;
}

.wrap-sport .scroll::-webkit-scrollbar-thumb {
    height: 30%;
    background: #fd5759;
    border-radius: 0 0 0.188rem 0;
}

.wrap-sport .scroll::-webkit-scrollbar-track {
    background: #fff5f4;
}

.wrap-sport .match-info {
    display: none;
}

.wrap-sport .fixtures-container {
    font-size: 0.75rem;
}

.wrap-sport .fixtures-container .fixture-details {
    display: flex;
    align-items: center;
    gap: 2rem;

    padding: 8px;
}

.wrap-sport .fixtures-container .markets {
    flex: 1;
    flex-direction: row;
}

.wrap-sport .fixtures-container .market {
    flex: 1;

    display: inline-flex;
    align-items: center;
    gap: 15px;
    margin: 0;
}

.wrap-sport .fixtures-container .team,
.wrap-sport .fixtures-container .team-name {
    margin: 0;
}

.wrap-sport .fixtures-container .teams {
    width: 30%;
    max-width: 240px;
    margin: 0;
}

.wrap-sport .fixtures-container .market .bets {
    flex: 1;
}

.wrap-sport .fixtures-container .bet {
    flex: 1;
    display: inline-flex;
    align-items: center;
    gap: 0.425rem;
    padding: 0 0.5rem;

    height: 2.25rem;
}

.wrap-sport .fixtures-container .market-name {
    width: 100%;
    max-width: 80px;
    color: #666;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.wrap-sport .fixtures-container .market-name,
.wrap-sport .fixtures-container .bet .bet-name {
    margin: 0;
}

.wrap-sport .fixtures-container .bet:first-child .bet-price {
    margin-left: auto;
}

.wrap-sport .fixtures-container .bet:nth-child(2) {
    justify-content: center;
    min-width: auto;
    max-width: 10%;
}

.wrap-sport .fixtures-container .bet:nth-child(2) .bet-name {
    display: none;
}

.wrap-sport .fixtures-container .bet-vs {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 0 1rem;
    width: 10%;
    font-weight: bold;
    color: #888;
    cursor: default;
}

.wrap-sport .fixtures-container .bet:nth-child(3) {
    flex-direction: row-reverse;
}

.wrap-sport .fixtures-container .bet:nth-child(3) .bet-price {
    margin-right: auto;
}

.wrap-sport .fixtures-container .bet:nth-child(3) .bet-naem {
    text-align: right;
}

.wrap-sport .fixtures-bet-details .market-bets {
    font-size: 0.75rem;
}

.wrap-sport .fixtures-bet-details .market-bets .bet {
    flex: 1;
    display: inline-flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap:0.5rem;

    padding: 0 0.75rem;
    min-width: 46%;
    color: #555;
}

.wrap-sport .fixtures-bet-details .market-bets .bet .bet-price {
    padding: 0.625rem 0;
}

.wrap-sport .fixtures-bet-details .market-tabs-3 .bet {
    min-width: 32%;

}

.wrap-sport .selected-bets .selected-bet-item {
    flex-direction: column;

    padding: 0 0 10px;
    margin: 0 10px;

    border: none;
}

.wrap-sport .selected-bets .selected-bet-item>div {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.wrap-sport .selected-bets .selected-bet-info {
    padding: 7px 10px;
    color: #e32e2a;
    background: #fcf1ee;
    border-radius: 0.25rem 0.25rem 0 0;
}

.wrap-sport .selected-bets .selected-bet-teams span {
    color: #e98e71;
}

.wrap-sport .selected-bets .selected-bet-choice {
    padding: 7px 10px;
    color: #333;
    font-weight: bold;
    background: #fff;
    border: 1px solid #e2e2e2;
    border-top: none;
    border-bottom-width: 2px;
    border-radius: 0 0 0.25rem 0.25rem;
}

.wrap-sport .bet-limits {
    display: flex;
    justify-content: center;
    align-items: center;

    text-align: center;
}

.wrap-sport .slip-footer {
    border-top: 1px solid #e2e2e2;
}

.wrap-sport .total-odds {
    padding: 8px 15px;
    color: #343434;
    border: 1px solid #fd5759;
    border-radius: 0.25rem;
}

.wrap-sport .total-odds span:last-child {
    color: #ff434d;
}

.wrap-sport .potential-winnings {
    padding: 8px 15px;
    color: #343434;
    border: 1px solid #fd5759;
    border-radius: 0.25rem;
}

.wrap-sport .potential-winnings span:last-child {
    color: #ff434d;
}

/* pc - base */
.wrap-sport .header .bar-login>div,
.wrap-sport .header .bar-gnb .gnb>div {
    padding: 0 1rem;
    width: calc(100% - 2rem);
    max-width: 100%;
}

.wrap-sport .popup-title,
.wrap-sport .pop-charge-request {
    width: 100%;
}

.betting-table tr.act-line>td {
    color: #ff5e42;
    background: #fff9f9 !important;
    border-top: 2px solid #ff5e42;
    border-bottom: 1px solid #ffd0c7;
}

.cancel-btn {
    padding: 4px 8px;
    line-height: 100%;
    height: 30px;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    font-size: 11px;
    margin: 1px;
}

.betting-table .cancel-btn {
    background-color: #dc3545;
    color: white;
}

.betting-table .cancel-btn:hover {
    background-color: #c82333;
}

.betting-table .cancel-btn:disabled {
    background-color: #b9b9b9;
    cursor: not-allowed;
}

.betting-table td small {
    margin-left: 0.25rem;
}

.betting-table .detail-btn {
    display: inline-block;
    width: 100px;
    height: 30px;
    color: #ff5e42;
    font-size: 0.875rem;
    text-align: center;
    font-weight: bold;
    background: #fff;
    border: 1px solid #ffd3cc;
    letter-spacing: -0.5px;
    vertical-align: middle;
}

.betting-table .detail-btn.act,
.betting-table .detail-btn:hover {
    color: #fff;
    background: #ff5e42;
    border-color: #ff5e42;
}

.betting-table-detail>div.bet-details table {
    border-bottom: 2px solid #ff5e42;
}

.betting-table-detail>div th {
    font-size: 0.875rem;
    background: #fff9f9;
}

.betting-table-detail>div td {
    font-size: 0.875rem;
    background: #fdfdfd;
}

.betting-table-detail>div th+th,
.betting-table-detail>div td+td {
    border-left: 1px solid #eaeaea;
}

.betting-table-detail>div .btn-cencel {
    display: inline-block;
    width: 100px;
    height: 30px;
    color: #fff;
    font-size: 0.875rem;
    text-align: center;
    font-weight: bold;
    background: #ff5e42;
    letter-spacing: -0.5px;
}

.betting-table-detail>div .btn-cencel:disabled {
    filter: grayscale(1) opacity(0.7);
}

.betting-table-detail {
    border-top: none !important;
    height: auto !important;
}

.betting-table-detail>table {
    border-top: 1px solid #eaeaea;
}

.list-sport-pageing {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
    height: 5.875rem;
    background: linear-gradient(-45deg, transparent 16px, #ff7558 0);
    margin: 0 0 3rem;
}

.list-sport-pageing>a {
    display: inline-block;
    width: 38px;
    height: 38px;
    line-height: 38px;
    text-align: center;
    color: rgb(255, 66, 73);
    font-size: 1rem;
    font-family: Dotum, 돋움;
    font-weight: bold;
    background: rgb(255, 255, 255);
    border-radius: 10in;
}

.list-sport-pageing .icon-sport-left {
    font-size: 0 !important;
    background: url(../../images/renewal/popup/btn-list-over.webp) 45% 50% no-repeat #fff
}

.list-sport-pageing .icon-sport-right {
    font-size: 0 !important;
    background: url(../../images/renewal/popup/btn-list-over.webp) 45% 50% no-repeat #fff;
    transform: scaleX(-1);
}

.pop-list-sport .no-data {
    line-height: 3rem;
    text-align: center;
    font-weight: bold;
    color: #888;
    background: #fff;
    border: 1px solid #eaeaea;
    border-top: none;
    margin-bottom: 3rem;
}

.score-box {
    position: relative;
    min-width: 600px;
    max-width: 700px;
}

.score-box+.details-box {
    flex: 1;
    max-width: 100% !important;
}

.score-box .teams-display {
    display: flex;
    justify-content: space-between;
    align-items: center;

    padding: 0 1rem;
}

.score-box .teams-display div:first-child,
.score-box .teams-display div:nth-child(3) {
    flex: 1;

    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.425rem;

    padding-top:0.75rem;
    line-height:100%;
    width: 45%;
    font-size: 2.625rem;
    font-weight: bold;
    color: #40454a;

}

.score-box .teams-display div:nth-child(2) {
    display: flex;
    flex-direction: column;
    line-height: 100%;
    align-items: center;

    padding-bottom: 0.625rem;
    width: 10%;
    line-height: 100%;

    font-size: 3rem;
    font-weight: bold;
    color: #ddd;
    text-align: center;
}

.score-box .teams-display div:first-child span.score {
    margin-left: auto;
}

.score-box .teams-display div:nth-child(3) span.score {
    margin-right: auto;
}

.live-teams {
    flex-wrap:wrap;
}

.live-teams .live-team-home {
    padding-bottom:0.5rem;
    width:100%;
    line-height:100%;
    text-align:left;
    font-size:14px;
    font-weight:bold;
    color:#666;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.live-teams .live-team-away {
    padding-bottom:0.5rem;
    width:100%;
    line-height:100%;
    text-align:right;
    font-size:14px;
    font-weight:bold;
    color:#666;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.score-box .teams-display-stats {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.425rem;

    padding: 0.2rem 0.5rem;
    color: #fe4f50;
    font-weight: bold;
    border-radius: 0.25rem;
    background: #f7f7f7;
    border: 1px solid #eee;
    margin: 5px;
}

.score-box .teams-display i {
    font-size: 1.875rem;
}

.score-box .market .icon-list-team1,
.score-box .market .icon-list-team2 {
    display: none !important;
}

.details-box .bet-details-teams {
    display: none;
}

.details-box {
    width: 100%;
    max-width: 36% !important;
}

.details-box .bet-details-placeholder {
    display: flex;
    justify-content: center;
}

.details-box .bet-details-header {
    display: flex;
    flex-direction: column;
}

.details-box .score-section.live {
    width: 100%;
}

.details-box .teams-display {
    display: flex;
    justify-content: space-between;

    padding: 12px;
    width: 100%;
    background: #fcf8f7;
    border-bottom: 2px solid #ff434d
}

.details-box .teams-display div {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.details-box .teams-display div:first-child,
.details-box .teams-display div:last-child {
    width: 40%;
    height: 100%;
    font-size: 12px;
}

.details-box .teams-display div:first-child span,
.details-box .teams-display div:last-child span {
    margin: 0;
}

.details-box .teams-display div:first-child span.score {
    font-size: 1.425rem;
    font-weight: bold;
    margin-left: auto;
}

.details-box .teams-display div:last-child span.score {
    font-size: 1.425rem;
    font-weight: bold;
    margin-right: auto;
}

.score-section.scheduled {
    width: 100%;
}

.details-box .bet-round-realtime {
    padding: 15px;
    width: 100%;
    background: #fff6f9;
}

.details-box .bet-round-realtime>div {
    display: flex;
    justify-content: space-between;
}

.details-box .teams-display-stats {
    display: flex;
    justify-content: space-between;
    gap: 0.625rem;

    padding: 0.425rem;
    width: 100%;

    font-size: 13px;
    font-weight: bold;
    background: #f7f7f7;
    border-bottom: 1px solid #e9e9e9;
}

.details-box .teams-display-stats>span {
    flex: 1;

    padding: 0.425rem;
    text-align: center;
    background: #fff;
    border: 1px solid #efefef;
    border-radius: 0.425rem;
}

i.fa-spinner {
    animation: loading 2s linear infinite;
}

@keyframes loading {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.side-menu-load {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;

    height: 100%;
    color: #888;
}

.loading-state {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;

    height: 100%;
}

.bet-details-placeholder,
.empty-state,
.side-menu-load,
.loading-state {
    gap: 0.425rem;

    font-size: 0.875rem;
    color: #888;
}

.wrap-sport .bet-details-placeholder i,
.empty-state i,
.side-menu-load i,
.loading-state i {
    font-size: 1.5rem;
}

.score-section .score-round-info {
    display: flex;
    justify-content: center;
    align-items: center;

    font-size: 1rem;
    font-weight: bold;
}

.icon-list-local img,
.icon-list-league img {
    width: 1rem;
}

.icon-list-team1 img,
.icon-list-team2 img {
    width: 1.425rem;
    max-height: 1.425rem;
}

.bet-align-item {
    flex: 1;
    display: inline-flex;
    align-items: center;
    gap: 0.425rem;

    max-width: calc(100% - 3rem);
    line-height: 100%;
}

.bet-align-item .icon-list-team2 {
    display: none;
}

.wrap-sport .fixtures-container .bet:nth-child(3) .icon-list-team1 {
    display: none;
}

.wrap-sport .fixtures-container .bet:nth-child(3) .bet-align-item {
    flex-direction: row-reverse;
}

.wrap-sport .fixtures-container .bet:nth-child(3) .bet-align-item .icon-list-team2 {
    display: inline;
}

.wrap-sport .fixtures-container .bet-align-item>span {
    max-width: calc(100% - 1rem);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.icon-score-type,
.icon-score-team {
    width: 2rem;
}

.icon-score-type>img,
.icon-score-team>img {
    width: 100%;
}

.icon-score-type>img {
    filter: grayscale(1) opacity(0.3);
}

.icon-score-background {
    width: 2rem;
}

.icon-score-background>img {
    width: 100%;
    filter: grayscale(1) opacity(0.2);
}

.score-box .market-name-weating {
    flex: 1;
    max-width: 100% !important;
    padding-left: 5.5rem;
    text-align: center;

    animation: smoothBlink 2.53s ease-in-out infinite;
}

@keyframes smoothBlink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}


.market-name-weating+.bets {
    display: none;
}


/*20250719 경고추가 */
/* 동일 픽스쳐 베팅 경고 스타일 */

/* 베팅 슬립 경고 메시지 */
.bet-slip-warning {
    background: linear-gradient(135deg, #ff6b6b, #ff5252);
    color: white;
    padding: 12px 15px;
    border-radius: 8px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 500;
    box-shadow: 0 2px 8px rgba(255, 107, 107, 0.3);
    animation: warningPulse 2s infinite;
}

.bet-slip-warning i {
    font-size: 16px;
    animation: warningShake 1s infinite;
}

/* 중복 픽스쳐 베팅 아이템 스타일 */
.duplicate-fixture-warning {
    border-left: 4px solid #ff6b6b !important;
    background: rgba(255, 107, 107, 0.05) !important;
}

.duplicate-fixture-warning .selected-bet-teams {
    color: #d32f2f !important;
    font-weight: 600;
}

/* 베팅 불가 버튼 스타일 */
.disabled-duplicate {
    background: linear-gradient(135deg, #ff6b6b, #d32f2f) !important;
    color: white !important;
    cursor: not-allowed !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    animation: disabledPulse 2s infinite;
}

.disabled-duplicate:hover {
    background: linear-gradient(135deg, #ff5252, #c62828) !important;
    transform: none !important;
}

/* 애니메이션 */
@keyframes warningPulse {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.9;
        transform: scale(1.01);
    }
}

@keyframes warningShake {

    0%,
    100% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-2px);
    }

    75% {
        transform: translateX(2px);
    }
}

@keyframes disabledPulse {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(255, 107, 107, 0.4);
    }

    50% {
        box-shadow: 0 0 0 8px rgba(255, 107, 107, 0);
    }
}

/* 토스트 메시지 스타일 개선 */
#bet-message-container {
    max-width: 400px;
    font-size: 14px;
    font-weight: 500;
    border-radius: 8px;
    backdrop-filter: blur(10px);
}

/* 다크 모드 지원 */
@media (prefers-color-scheme: dark) {
    .bet-slip-warning {
        background: linear-gradient(135deg, #d32f2f, #b71c1c);
        box-shadow: 0 2px 8px rgba(211, 47, 47, 0.4);
    }

    .duplicate-fixture-warning {
        background: rgba(211, 47, 47, 0.1) !important;
        border-left-color: #d32f2f !important;
    }
}


/*20250719 경고추가 ------------ 까지*/
/* 최대당첨금 초과 경고 스타일 추가 */

/* 최대당첨금 초과 버튼 스타일 */
.disabled-max-winnings {
    background: linear-gradient(135deg, #ff9800, #f57c00) !important;
    color: white !important;
    cursor: not-allowed !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    animation: maxWinningsWarning 2s infinite;
}

.disabled-max-winnings:hover {
    background: linear-gradient(135deg, #ff8f00, #ef6c00) !important;
    transform: none !important;
}

/* 최대당첨금 경고 메시지 */
.max-winnings-warning {
    background: linear-gradient(135deg, #ff9800, #f57c00);
    border-left: 4px solid #e65100;
}

.max-winnings-warning i {
    color: #fff3e0;
}

/* 애니메이션 */
@keyframes maxWinningsWarning {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(255, 152, 0, 0.4);
    }

    50% {
        box-shadow: 0 0 0 8px rgba(255, 152, 0, 0);
    }
}

/* 예상당첨금 표시 영역 개선 */
#potential-winnings {
    font-weight: 700;
    font-size: 16px;
    color: #2e7d32;
}

/* 최대당첨금 초과시 예상당첨금 색상 변경 */
.max-winnings-exceeded #potential-winnings {
    color: #d84315 !important;
    text-decoration: line-through;
}

/* 베팅 금액 입력 필드 경고 스타일 */
.bet-amount-warning {
    border: 2px solid #ff9800 !important;
    background: rgba(255, 152, 0, 0.05) !important;
}

.bet-amount-warning:focus {
    border-color: #f57c00 !important;
    box-shadow: 0 0 0 3px rgba(255, 152, 0, 0.2) !important;
}

/* 반응형 스타일 */
@media (max-width: 768px) {
    .disabled-max-winnings {
        font-size: 12px !important;
        padding: 8px 12px !important;
    }

    .max-winnings-warning {
        padding: 10px 12px;
        font-size: 13px;
    }
}

/* 다크 모드 지원 */
@media (prefers-color-scheme: dark) {
    .disabled-max-winnings {
        background: linear-gradient(135deg, #ef6c00, #d84315) !important;
    }

    .max-winnings-warning {
        background: linear-gradient(135deg, #ef6c00, #d84315);
        box-shadow: 0 2px 8px rgba(239, 108, 0, 0.4);
    }

    #potential-winnings {
        color: #4caf50;
    }

    .max-winnings-exceeded #potential-winnings {
        color: #f44336 !important;
    }
}

.cancel-modal {
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999999;
}

.cancel-modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding:0 10px;
    max-width: 450px;
    width: 90%;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.cancel-modal h3 {
    align-items: center;
    justify-content: center;

    padding:0;
    width:100%;
    line-height:4rem;
    font-weight:bold;
}

.cancel-modal .box {
    display:flex;
    flex-direction: column;
    gap:0.25rem;

    padding:1rem;
    background:#fff;
    clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 0, 100% calc(100% - 16px), calc(100% - 16px) 100%, 16px 100%, 0 calc(100% - 16px), 0 16px);
    margin-bottom:10px;
}

.cancel-modal .box p:first-child {
    line-height:2.625rem;

    text-align:center;
    font-size:1rem;
    color:#666;
    font-family: 'Pretendard';
    font-weight: 700;
}

.cancel-modal .box > div.notice {
    padding:0.5rem;
    font-family: 'Pretendard';
    
    background:#fff7f6;
}

.cancel-modal .box > div.notice li {
    color:#fe434e;
    font-size:0.875rem;
    font-weight:bold;
}

.cancel-modal .box > div.notice span {
    color:#fe434e;
}

.cancel-modal-buttons {
    display:flex;
    align-items:center;
    justify-content: center;
    gap:0.5rem;

    width:100%;
    margin-top:1rem;
}

.cancel-modal-buttons button {
    padding: 8px 16px;
    font-family: 'Pretendard';
    font-weight: 700;

    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.confirm-cancel {
    background-color: #dc3545;
    color: white;
}

.cancel-close {
    background-color: #6c757d;
    color: white;
}

/* 알림 메시지 */
.alert {
    padding: 15px;
    border: 1px solid transparent;;
}

.alert-success {
    text-align:center;
    color: #155724;
    font-family: 'Pretendard';
    font-weight: 700;
    background-color: #d4edda;
    border-color: #c3e6cb;
}

.alert-error {
    text-align:center;
    color: #721c24;
    font-family: 'Pretendard';
    font-weight: 700;
    background-color: #f8d7da;
    border-color: #f5c6cb;
}

/* 로딩 및 빈 상태 */
.loading,
.no-data {
    text-align: center;
    padding: 40px;
    color: #666;
}



/* 즐겨찾기 메뉴 스타일 */

.favorite-menu-header {
    display: flex;
    align-items: center;
    padding: 12px;
    cursor: pointer;
    background: linear-gradient(to bottom, #fb5e53, #ff454e);
    transition: all 0.3s ease;
}

.favorite-menu-header:hover {
    background: linear-gradient(to bottom, #fb5e53, #ff454e);
    transform: translateY(-1px);
}

.favorite-menu-icon {
    margin-right: 10px;
    color: #ffe663;
    font-size: 16px;
}

.favorite-menu-title {
    flex: 1;
    font-weight: 600;
    color: #fff;
}

.favorite-menu-count {
    margin-right: 10px;
    color: #eee;
    font-size: 14px;
}

.favorite-toggle-icon {
    color:#fff;
    transition: transform 0.3s ease;
}

.favorite-toggle-icon.expanded {
    transform: rotate(180deg);
}

.favorite-submenu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background: #f8f9fa;
}

.favorite-submenu.expanded {
    max-height: 400px;
}

.favorite-league-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    background: white;
    cursor: pointer;
    transition: all 0.2s ease;
}

.favorite-league-item:hover {
    background: #fcf1ee;
}

.favorite-league-item + .favorite-league-item {
    border-top:1px solid #efefef;
}

.favorite-league-item:last-child {
    border-bottom:2px solid #eee;
}

.favorite-league-name {
    display: flex;
    align-items: center;
    flex: 1;

    line-height:100%;
}

.favorite-league-icon {
    display: inline-flex;
    align-items: center;

    margin-right: 8px;
    width:1rem;
    height:1rem;
}

.favorite-league-icon img {
    width:100%;
}

.favorite-league-name > span {
    font-size:14px;
}

.favorite-league-count {
    color: #fff;
    font-size: 12px;
    background: #ff6958;
    padding: 1px 8px 3px;
    border-radius: 12px;
}

.favorite-empty {
    text-align: center;
    color: #999;
    padding: 20px;
    font-style: italic;
}

.favorite-league-item.active {
    background: #fcf1ee !important;
    border-left: 3px solid #ff454e;
    font-weight: 600;
}

.favorite-league-item.active .favorite-league-name {
    color: #ff454e;
}





/*보너스추가*/

/* 보너스 정보 표시 */
.bonus-info-display {
    background: linear-gradient(135deg, #ff6b6b, #feca57);
    border-radius: 5px;
    padding: 0;
    margin: 0 10px;
    color: #fff;
    font-weight:bold;
    border:1px solid #ff6b6b;
    box-shadow: 0 1px 0 #ff6b6b;
    animation: slideInBonus 0.5s ease-out;
}

.bonus-info-content {
    display: flex;
    flex-direction: column;
}

.bonus-header {
    display: flex;
    align-items: center;
    padding:0.425rem 0.75rem;
    gap: 8px;
    font-weight: bold;
}

.bonus-details {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding:7px 10px;
    color:#666;
    background:#fff;
    border-radius:0 0 5px 5px;
}

.bonus-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
}

.bonus-highlight {
    color: #e32e2a;
    font-size: 14px;
    font-weight:bold;
}

/* 다음 보너스 안내 */
.next-bonus-info {
    background: linear-gradient(135deg, #fb5e53, #ff454e);
    padding: 8px 12px;
    margin-top:12px;
    color: #fff;
}

.next-bonus-content {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
}

.next-bonus-content i {
    color: #fff;
    animation: bounce 2s infinite;
}

@keyframes slideInBonus {
    0% {
        opacity: 0;
        transform: translateY(-20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-4px); }
    60% { transform: translateY(-2px); }
}



/* 새로운 베팅 히스토리 레이아웃 스타일 */
.bet-history-sport + .list-sport-pageing {
    margin-top:0;
}

.bet-detail td {
    padding:0.25rem !important;
    color:#666;
}

.bet-detail td > div {
    line-height:100%;
}

.bet-detail td > div + div {
    margin-top:0.25rem;
}

.bet-history-item {
    background: #fff;
    border: 1px solid #ddd;
    padding: 0;
}


.bet-history-item + .bet-history-item {
    margin-top:0.75rem;
}

.bet-summary {
    background: #f8f9fa;
    padding:0.75rem 1rem 0.5rem;
    border-bottom: 1px solid #eee;
}

.bet-summary-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 15px;
}

.bet-summary-left {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
    min-width: 300px;
}

.bet-summary-right {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
    min-width: 300px;
    align-items: flex-end;
}

.bet-info-item {
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: space-between;
    width: 100%;
    font-size: 14px;
}

.info-label {
    font-weight: bold;
    color: #555;
    min-width: 80px;
    font-size: 13px;
}

.bet-number {
    font-weight: bold;
    color: #666;
    font-size: 14px;
}

.bet-date {
    color: #333;
    font-size: 14px;
}

.bet-amount {
    font-weight: bold;
    color: #dc3545;
    font-size: 14px;
}

.bet-market {
    color: #666;
    font-size: 12px;
    font-weight:bold;
}

.bet-odds-info {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

.original-odds {
    color: #666;
    position: relative;
}

.original-odds::after {
    content: "→";
    margin:0 4px;
    color: #999;
}

.bonus-badge {
    background: #28a745;
    color: white;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 12px;
}

.total-odds {
    font-weight: bold;
    color: #333;
}

.bet-payout {
    font-weight: bold;
    color: #007bff;
    font-size: 16px;
}

.bet-status {
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
}

.bet-summary-footer {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #dee2e6;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.settled-info {
    color: #666;
    font-size: 13px;
}

.bet-count {
    color: #666;
    font-size: 13px;
    font-weight:bold;
    background: #e9ecef;
    padding: 2px 8px;
    border-radius: 4px;
}

.bet-status {
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
}

.status-pending {
    background: #ffc107;
    color: #333;
}

.status-won {
    background: #dc3545;
    color: white;
}

.status-lost {
    background: #aaa;
    color: white;
}

.status-canceled {
    background: #6c757d;
    color: white;
}

.bet-actions {
    display: flex;
    gap: 5px;
}

.cancel-btn, .detail-btn {
    padding: 5px 10px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
}

.cancel-btn {
    background: #dc3545;
    color: white;
}

.detail-btn {
    background: #007bff;
    color: white;
}

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

.bet-details-table th,
.bet-details-table td {
    padding: 10px;
    text-align: left;
    border-bottom: 1px solid #eee;
    font-size: 13px;
    text-align:center !important;
}

.bet-details-table th {
    background: #f8f9fa;
    font-weight: bold;
    color: #333;
}

.bet-details-table tr:last-child td {
    border-bottom: none;
}

.settlement-waiting {
    color: #ffc107;
    font-weight: bold;
}

.settlement-won {
    color: #28a745;
    font-weight: bold;
}

.settlement-lost {
    color: #dc3545;
    font-weight: bold;
}

.settlement-canceled {
    color: #6c757d;
    font-weight: bold;
}

.text-left {
    text-align: left !important;
}

/* 반응형 스타일 */
@media (max-width: 768px) {
    
}

/* 페이징 스타일 */

.no-data {
    text-align: center;
    padding: 40px;
    color: #666;
    font-size: 16px;
}

.loading {
    text-align: center;
    padding: 40px;
    font-size: 16px;
}

/* 알림 스타일 */
.alert {
    padding: 10px 15px;
    margin-bottom: 15px;
    border-radius: 4px;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.bet-summary-footer {
    padding-top:0.5rem;
    margin-top:0.5rem;
}

/* 즐겨찾기 */
.favorite-league-main {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap:0.25rem;
    flex: 1;
    cursor: pointer;
    padding: 2px 0;
}

.favorite-star-remove.active {
    color: #ffc107;
}

.favorite-star-remove.active:hover {
    color: #dc3545;
}


.favorite-star {
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.2s ease;
    color: #ccc;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right:0.425rem;
}

.favorite-star:hover {
    background-color: #e9ecef;
    color: #ffc107;
    transform: scale(1.1);
}

.favorite-star.active {
    color: #ffc107;
}

.favorite-star.active:hover {
    color: #e0a800;
}

/* 모바일에서 터치 영역 확대 */
@media (max-width: 768px) {
    .favorite-star {
        width: 24px;
        font-size: 16px;
    }
}

/* 로딩 상태 */
.favorite-star-remove.loading {
    padding:0 !important;
    width:auto !important;
    height:auto !important;
    opacity: 0.7;
    pointer-events: none;
}

.favorite-star-remove.loading i {
    animation: spin 1s linear infinite;
}

/* 로딩 상태 스타일 */
.favorite-star.loading {
    padding:0 !important;
    width:auto !important;
    height:auto !important;
    opacity: 0.5;
    pointer-events: none;
}

.favorite-star.loading i {
    animation: spin 1s linear infinite;
}

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