/**
 * Sports KR Page Styles - Frontend Type2
 * Gold Theme Compatible
 */

/* 모바일 보유머니/포인트 바 - 페이지 상단 */
.mobile-money-bar {
    display: none;
    gap: 0.5rem;
    padding: 0.75rem;
    background: linear-gradient(135deg, #d4af37 0%, #b8942d 100%);
    border-radius: 8px;
    margin-bottom: 1rem;
}

.mobile-money-bar .money-box {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: rgba(0, 0, 0, 0.25);
    border-radius: 6px;
    padding: 0.75rem 1rem;
    color: #fff;
    text-decoration: none;
    transition: background 0.2s;
}

.mobile-money-bar .money-box:hover {
    background: rgba(0, 0, 0, 0.4);
}

.mobile-money-bar .money-box i {
    font-size: 1.1rem;
}

.mobile-money-bar .money-label {
    font-size: 0.75rem;
    opacity: 0.9;
}

.mobile-money-bar .money-value {
    font-size: 0.95rem;
    font-weight: 700;
}

.mobile-money-bar .point-box .money-value {
    color: #90EE90;
}

/* 모바일/태블릿에서 표시 */
@media (max-width: 1024px) {
    .mobile-money-bar {
        display: flex !important;
    }
}

/* Main Menu (MENU 박스) */
.main-menu-item:hover {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.15), rgba(212, 175, 55, 0.05)) !important;
    border-color: var(--gold-primary) !important;
    transform: translateY(-1px);
}

.main-menu-item.active {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.25), rgba(212, 175, 55, 0.1)) !important;
    border-color: var(--gold-primary) !important;
    border-width: 2px !important;
}

.main-menu-item.active span {
    color: var(--gold-primary) !important;
}

[data-theme="dark"] .main-menu-item:hover {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.2), rgba(212, 175, 55, 0.1)) !important;
}

[data-theme="dark"] .main-menu-item.active {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.3), rgba(212, 175, 55, 0.15)) !important;
}

/* Sports Filter Grid - 항상 한 줄로 표시 */
.sports-filter-grid {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 0.5rem;
    padding-bottom: 0.5rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
}

.sports-filter-grid::-webkit-scrollbar {
    height: 4px;
}

.sports-filter-grid::-webkit-scrollbar-track {
    background: var(--bg-main);
    border-radius: 2px;
}

.sports-filter-grid::-webkit-scrollbar-thumb {
    background: var(--gold-primary);
    border-radius: 2px;
}

.sport-filter-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 0.75rem 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    cursor: pointer;
    flex: 1 0 auto;
    min-width: 80px;
    max-width: 120px;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-card);
}

.sport-filter-card:hover {
    border-color: var(--gold-primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-card-hover);
}

.sport-filter-card.active {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.15), rgba(212, 175, 55, 0.05));
    border-color: var(--gold-primary);
    border-width: 2px;
}

[data-theme="dark"] .sport-filter-card.active {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.2), rgba(212, 175, 55, 0.1));
}

.sport-filter-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.sport-filter-content h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--gold-dark);
    margin: 0;
}

[data-theme="dark"] .sport-filter-content h3 {
    color: var(--gold-primary);
}

.sport-filter-content p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin: 0;
}

.sport-count {
    background: var(--bg-main);
    color: var(--text-primary);
    font-weight: 700;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.9rem;
    border: 1px solid var(--border-color);
}

.sport-filter-card.active .sport-count {
    background: var(--gold-primary);
    color: #fff;
    border-color: var(--gold-primary);
}

[data-theme="dark"] .sport-filter-card.active .sport-count {
    background: var(--gold-primary);
    color: #000;
}

/* Bonus Info Section */
.bonus-info {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.05), transparent);
    border-left: 3px solid var(--gold-primary);
}

[data-theme="dark"] .bonus-info {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.1), transparent);
}

.bonus-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border-color);
}

.bonus-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.bonus-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem;
    background: var(--bg-main);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    cursor: pointer;
    transition: all 0.2s ease;
}

.bonus-item:hover {
    border-color: var(--gold-primary);
    background: rgba(255, 193, 7, 0.1);
}

.bonus-item.on_active {
    border-color: var(--gold-primary);
    background: rgba(255, 193, 7, 0.2);
    box-shadow: 0 0 8px rgba(255, 193, 7, 0.3);
}

.bonus-item.on_active .bonus-value {
    color: #fff;
    text-shadow: 0 0 6px var(--gold-primary);
}

.bonus-label {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.bonus-value {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--gold-dark);
}

[data-theme="dark"] .bonus-value {
    color: var(--gold-primary);
}

/* Filter Buttons */
.filter-btn {
    padding: 0.6rem 1.25rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s;
}

.filter-btn:hover {
    background: var(--bg-main);
    color: var(--text-primary);
    border-color: var(--gold-primary);
}

.filter-btn.active {
    background: var(--gold-primary);
    color: #fff;
    border-color: var(--gold-primary);
    font-weight: 600;
}

[data-theme="dark"] .filter-btn.active {
    color: #000;
}

/* Matches Loading */
.matches-loading {
    text-align: center;
    padding: 3rem 0;
    color: var(--text-secondary);
}

.matches-loading i {
    display: block;
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--gold-primary);
}

/* Rule Content */
.rule-content {
    font-size: 0.85rem;
    line-height: 1.7;
    color: var(--text-secondary);
}

.rule-content h1,
.rule-content h2,
.rule-content h3 {
    color: var(--text-primary);
    margin-top: 1rem;
    margin-bottom: 0.5rem;
}

.rule-content p {
    margin-bottom: 0.75rem;
}

.rule-content ul,
.rule-content ol {
    padding-left: 1.5rem;
    margin-bottom: 0.75rem;
}

.rule-content li {
    margin-bottom: 0.35rem;
}

.rule-content strong {
    color: var(--gold-dark);
    font-weight: 600;
}

[data-theme="dark"] .rule-content strong {
    color: var(--gold-primary);
}

/* Market Tab Buttons */
.market-tab-btn {
    flex: 1;
    min-width: 60px;
    padding: 0.5rem;
    font-size: 0.8rem;
    border-radius: var(--radius-sm);
    background: var(--bg-main);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s;
}

.market-tab-btn:hover {
    background: var(--bg-secondary);
    border-color: var(--gold-primary);
    color: var(--text-primary);
}

.market-tab-btn.active {
    background: var(--gold-primary);
    border-color: var(--gold-primary);
    color: #fff;
    font-weight: 600;
}

[data-theme="dark"] .market-tab-btn.active {
    color: #000;
}

/* Close Button */
.close-btn {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--bg-main);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s;
}

.close-btn:hover {
    background: #ff4757;
    color: #fff;
    border-color: #ff4757;
}

/* Login Required Overlay */
.login-required-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    z-index: 9998;
}

/* Responsive */
@media (max-width: 768px) {
    /* 페이지 전체 가로 스크롤 방지 */
    html, body {
        overflow-x: hidden !important;
        max-width: 100vw !important;
        width: 100% !important;
    }

    /* 모든 주요 컨테이너 너비 제한 */
    .main-content,
    .main-center,
    .content-wrapper,
    .section-header,
    .header-actions,
    .header {
        max-width: 100vw !important;
        width: 100% !important;
        overflow-x: hidden !important;
        box-sizing: border-box !important;
    }

    .header-actions {
        flex-wrap: wrap !important;
        gap: 0.3rem !important;
        justify-content: flex-end;
    }

    /* 모바일: 종목 필터 가로 스크롤 */
    .sports-filter-grid {
        display: flex !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        gap: 0.4rem !important;
        padding: 0.5rem 0.5rem !important;
        margin: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        -webkit-overflow-scrolling: touch !important;
        scrollbar-width: none !important;
        -ms-overflow-style: none !important;
        scroll-behavior: smooth;
    }

    .sports-filter-grid::-webkit-scrollbar {
        display: none !important;
        height: 0 !important;
    }

    .sport-filter-card {
        flex: 0 0 auto !important;
        min-width: 60px !important;
        width: 60px !important;
        max-width: 60px !important;
        padding: 0.4rem 0.2rem !important;
        gap: 0.2rem !important;
    }

    .sport-filter-content {
        gap: 0.2rem !important;
    }

    .sport-filter-content img {
        width: 18px !important;
        height: 18px !important;
    }

    .sport-filter-content h3 {
        font-size: 0.6rem !important;
    }

    .sport-filter-content p {
        font-size: 0.55rem !important;
        white-space: nowrap !important;
    }

    .sport-count {
        font-size: 0.6rem !important;
        padding: 0.1rem 0.3rem !important;
    }

    .bonus-grid {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }

    .bonus-item {
        flex-direction: row;
        justify-content: space-between;
        padding: 0.5rem 0.75rem;
    }

    .filter-btn {
        padding: 0.5rem 0.75rem;
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .sport-filter-card {
        min-width: 55px !important;
        width: 55px !important;
        max-width: 55px !important;
    }

    .sport-filter-content h3 {
        font-size: 0.55rem !important;
    }

    .sport-filter-content p {
        font-size: 0.5rem !important;
    }
}
img {
  vertical-align: middle;
}
/* 입금 */
.green-button3 {
  background-color: #a2ddff;
  border: 1px solid #a2ddff;
  color: #000;
  padding: 1rem 1.2rem;
  border-radius: 0.6rem;
}
.green-button2,
.green-button2:active,
.green-button2:focus,
.green-button2:hover {
  background-color: #179c2d;
  border: 1px solid #179c2d;
}
.green-button3:active,
.green-button3:focus,
.green-button3:hover {
  background-color: #a2ddff;
  border: 1px solid #a2ddff;
  color: #000;
}
.el-button {
  font-weight: 300;
}

/* popup */
@-webkit-keyframes fade {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}
@-webkit-keyframes popupDimbg {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 0.4;
  }
}
.scroll-off {
  overflow: hidden;
}
.screen-out {
  position: absolute !important;
  width: 0 !important;
  height: 0 !important;
  line-height: 0 !important;
  overflow: hidden !important;
  text-indent: -9999px !important;
}
.popup__section {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2000;
}
.popup__section.is-open {
  display: block;
}
.popup__dim {
  background: #000;
  opacity: 0;
}
.is-open .popup__dim {
  opacity: 0.4;
  animation: popupDimbg 0.5s;
}
.popup__dim {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}
.popup__inner {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 90%;
  max-width: 420px;
}

.popup__container__group {
  position: relative;
  display: flex;
  flex-direction: column;
  width: calc(100% - 40px);
  max-width: 980px;
  max-height: 60%;
  background-color: rgb(45, 52, 58);
  border-radius: 20px;
  overflow: hidden;
  animation: fade 0.5s;
}
.popup__container__group {
  max-height: 80%;
}
.popup__header__group {
  height: 77px;
  padding: 24px;
  flex-shrink: 0;
}
.popup__header__title {
  font-size: 20px;
  font-weight: 700;
  color: #222;
  line-height: 29px;
  letter-spacing: -0.8px;
}
.popup__header__close {
  width: 24px;
  height: 24px;
  background: url(/img/icon_close.png) no-repeat center/contain;
  position: absolute;
  top: 24px;
  right: 24px;
}
.popup__contents__group {
  position: relative;
  width: 100%;
  margin: 0 auto;
  padding: 0 24px;
  overflow-y: auto;
  max-height: calc(80vh - 174px);
  margin-bottom: 40px;
}
.popup__button__group {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  position: relative;
  flex-shrink: 0;
  height: 56px;
}
.popup__button__group > button + button {
  margin-left: 10px;
}
.alert {
  display: none;
  margin-top: 10px;
  margin-left: 25px;
  color: #f04c23;
  font-size: 18px;
  line-height: 1;
}
.alert.on,
.alert2.on {
  display: block;
}

.popup-sm .popup__container__group {
  max-width: 400px;
}
/* popup 끝 */
@media all and (max-width: 767px) {
  /* popup */
  .popup__container__group {
    width: 100%;
    max-height: 90%;
    border-radius: 20px 20px 0 0;
    animation-name: popupYmove;
  }
  @-webkit-keyframes popupYmove {
    0% {
      opacity: 0;
      transform: translateY(50%);
    }
    100% {
      opacity: 0.4;
      transform: translateY(0);
    }
  }

  .popup__inner {
    align-items: flex-end;
  }
  .popup-sm .popup__container__group {
    max-width: initial;
    animation-name: popupYmove;
    width: calc(100% - 32px);
    border-radius: 20px;
  }
  .popup__inner.popup-sm {
    align-items: center;
  }
  /* popup 끝 */
}
.main-center .alert-info {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
}
.main-center .alert-info > div {
  display: flex;
  align-items: center;
  height: 4.5rem;
}
.deposit .red-button1 img {
  height: 80%;
}
.cost-btns {
  display: flex;
  align-items: center;
}
.cost-btns button {
  display: flex;
  align-items: center;
  justify-content: center;
}
.cost-btns > * {
  flex: 1;
}
.main-left .sidebar {
  width: 100%;
  margin-top: 1rem;
  font-size: 1.2rem;
}
a,
a:focus,
a:hover {
  cursor: pointer;
}
.sidebar .sub-menu > li > a.text-theme-orange13 {
  font-weight: 400;
}
.table-coupon-tr > div > div {
  width: 100%;
}
@media all and (max-width: 1500px) {
  .deposit {
    flex-direction: column;
  }
  .deposit > div:nth-child(1) {
    width: 100% !important;
    padding: 0 !important;
  }
  .deposit > div:nth-child(2) {
    width: 100% !important;
  }
  .deposit > div > .el-row {
    padding-left: 2rem !important;
    padding-right: 2rem !important;
  }
  .table-history-orange13 .table-header > div:nth-child(1),
  .table-history-orange13 .table-header > div:nth-child(3),
  .table-history-orange13 .table-history-tr > div:nth-child(1),
  .table-history-orange13 .table-history-tr > div:nth-child(3) {
    width: 8rem !important;
  }
  .table-history-orange13 .only-pc {
    display: none !important;
  }
  .table-history-orange13 .word-keep {
    width: 100%;
  }
  .live-game-cont,
  .slot-game-cont {
    width: 50%;
  }
}
@media all and (max-width: 1300px) {
  .event-wrap .col-md-12 > div:nth-child(1) {
    width: 100%;
  }
  .event-wrap .col-md-12 > div:nth-child(2) {
    display: none;
  }
  .event-wrap .collapse {
    display: block !important;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out;
  }

  .collapse.show2 {
    max-height: 1400px;
  }
  /* 출석체크 */
  .attendancew-wrap .position-absolute {
    position: relative;
    text-align: center;
    margin-bottom: 4rem;
  }
}
@media (max-width: 950px) {
  .main-center {
    width: 100%;
  }
  .cost-btns {
    flex-wrap: wrap;
  }
  .cost-btns > * {
    flex: none;
    width: calc(25% - 0.4rem);
  }
  .wallet-type img {
    display: none;
  }
  .casino-banner-orange13 {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 2rem 0;
  }
  .casino-banner-text-orange13 {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .game-search {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 !important;
    border-radius: 0 !important;
  }
}

/* 언어 선택 */
.language-selector {
  display: flex;
  align-items: center;
  margin: 0 1rem;
}

.language-selector .lang-select {
  width: 150px;
  height: 40px;
  padding: 0.8rem 1.2rem;
  background-color: #2a2a2a;
  border: 1px solid #444;
  border-radius: 0.5rem;
  color: #fff;
  font-size: 1.4rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 0.8rem center;
  background-size: 1.4rem;
  padding-right: 3rem;
  line-height: 1.4;
}

.language-selector .lang-select:hover {
  background-color: #333;
  border-color: #555;
}

.language-selector .lang-select:focus {
  background-color: #2a2a2a;
  border-color: #179c2d;
  box-shadow: 0 0 0 2px rgba(23, 156, 45, 0.2);
}

.language-selector .lang-select option {
  background-color: #2a2a2a;
  color: #fff;
  padding: 1rem;
  font-size: 1.4rem;
}

/* 모바일 언어 선택 */
.language-selector.mobile {
  margin: 0 0.5rem;
}

.language-selector.mobile .lang-select {
  width: 80px;
  height: 36px;
  padding: 0.6rem 0.8rem;
  padding-right: 2.2rem;
  font-size: 1.2rem;
  background-size: 1rem;
}

/* 구글 번역 배너 숨기기 */
.goog-te-banner-frame {
  display: none !important;
}

body {
  top: 0 !important;
}

.skiptranslate {
  display: none !important;
}

/* 모바일 반응형 */
@media all and (max-width: 767px) {
  .language-selector {
    margin: 0 0.5rem;
  }

  .language-selector .lang-select {
    padding: 0.3rem 0.6rem;
    font-size: 1rem;
  }
}

/* 로그인/회원가입 모달 스타일 - 기존 디자인 따름 */

/* 로그인 모달 */
.login-modal-container {
  position: relative;
  width: 100%;
  max-width: 400px;
  background: #ffffff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
  max-height: 90vh;
  overflow-y: auto;
  margin: 0 auto;
}

/* 회원가입 모달 */
.signup-modal-container {
  position: relative;
  width: 100%;
  max-width: 460px;
  background: #ffffff;
  border-radius: 10px;
  padding: 20px;
  max-height: 90vh;
  overflow-y: auto;
  margin: 0 auto;
}

/* 다크 테마 - 로그인/회원가입 모달 */
[data-theme="dark"] .login-modal-container {
  background: #131417;
}

[data-theme="dark"] .signup-modal-container {
  background: #1a1a1a;
}

/* 닫기 버튼 */
.login-modal-container .modal-close {
  position: absolute;
  right: 15px;
  top: 15px;
  width: 30px;
  height: 30px;
  background: rgba(0, 0, 0, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 20px;
  color: #333;
  border: none;
  transition: all 0.3s ease;
  z-index: 10;
}

[data-theme="dark"] .login-modal-container .modal-close {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.signup-modal-container .modal-close {
  position: absolute;
  right: 15px;
  top: 15px;
  width: 24px;
  height: 24px;
  background: none;
  border: none;
  color: #333;
  font-size: 24px;
  cursor: pointer;
  padding: 0;
  line-height: 1;
}

[data-theme="dark"] .signup-modal-container .modal-close {
  color: #fff;
}

.modal-close:hover {
  transform: rotate(90deg);
}

.login-modal-container .modal-close:hover {
  background: rgba(0, 0, 0, 0.2);
}

[data-theme="dark"] .login-modal-container .modal-close:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* 헤더 */
.login-modal-header,
.signup-modal-header {
  text-align: center;
  margin-bottom: 25px;
}

.signup-modal-header {
  padding: 10px 0 20px;
}

.login-modal-logo,
.signup-modal-logo {
  max-width: 200px;
  height: auto;
}

.signup-modal-logo {
  height: 35px;
  max-width: none;
}

.login-modal-title,
.signup-modal-title {
  display: block;
  color: #333;
  font-size: 18px;
  margin-top: 10px;
  font-weight: 700;
}

[data-theme="dark"] .login-modal-title,
[data-theme="dark"] .signup-modal-title {
  color: #fff;
}

.login-modal-subtitle,
.signup-modal-subtitle {
  display: none;
}

/* 폼 */
.login-modal-form,
.signup-modal-form {
  width: 100%;
}

.login-modal-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

/* Form Group */
.modal-form-group {
  margin-bottom: 12px;
}

.modal-form-group label {
  display: block;
  color: #333;
  font-size: 13px;
  margin-bottom: 6px;
  font-weight: bold;
}

[data-theme="dark"] .modal-form-group label {
  color: #d3cece;
}

/* Alert & Error Messages */
.modal-alert {
  padding: 10px 15px;
  border-radius: 4px;
  margin-bottom: 15px;
  font-size: 13px;
  display: none;
}

.modal-alert-danger {
  background: rgba(255, 68, 68, 0.15);
  border: 1px solid #ff4444;
  color: #ff6b6b;
}

.modal-alert-success {
  background: rgba(68, 255, 68, 0.15);
  border: 1px solid #44ff44;
  color: #6bff6b;
}

.modal-error-message {
  color: #ff6b6b;
  font-size: 12px;
  margin-top: 4px;
  display: none;
}

.modal-error-message.show {
  display: block;
}

.modal-form-input.error,
.modal-form-select.error {
  border-color: #ff4444 !important;
}

/* Input & Select */
.modal-form-input,
.modal-form-select {
  width: 100%;
  height: 40px;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 4px;
  color: #333;
  padding: 0 12px;
  font-size: 13px;
  box-sizing: border-box;
}

[data-theme="dark"] .modal-form-input,
[data-theme="dark"] .modal-form-select {
  background: #1c1c1c;
  border: 1px solid #2a2a2a;
  color: #fff;
}

.login-modal-form .modal-form-input {
  padding: 12px 15px;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-size: 14px;
  background: #fff;
  color: #000;
}

.modal-form-input::placeholder {
  color: #666;
}

.login-modal-form .modal-form-input::placeholder {
  color: #999;
}

.modal-form-input:focus,
.modal-form-select:focus {
  outline: none;
  border-color: #8f6855;
}

.modal-form-select {
  cursor: pointer;
}

.modal-form-select option {
  background: #fff;
  color: #333;
}

[data-theme="dark"] .modal-form-select option {
  background: #1c1c1c;
  color: #fff;
}

/* Input with Button */
.modal-input-with-button {
  display: flex;
  gap: 6px;
}

.modal-input-with-button .modal-form-input {
  flex: 1;
}

.modal-check-btn {
  min-width: 80px;
  height: 40px;
  background: #8f6855;
  color: #fff;
  border: none;
  border-radius: 4px;
  font-size: 13px;
  cursor: pointer;
  padding: 0 12px;
}

.modal-check-btn:hover {
  filter: brightness(0.85);
}

/* Form Row */
.modal-form-row {
  display: flex;
  gap: 6px;
  margin-bottom: 12px;
}

.modal-form-row > * {
  flex: 1;
}

/* Form Options (로그인 상태 유지) */
.modal-form-options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 15px;
  font-size: 13px;
}

.modal-remember-me {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #999;
  cursor: pointer;
}

.modal-remember-me input[type="checkbox"] {
  width: 14px;
  height: 14px;
  cursor: pointer;
}

.modal-forgot-password {
  color: #8f6855;
  text-decoration: none;
  font-size: 13px;
}

.modal-forgot-password:hover {
  text-decoration: underline;
}

/* Buttons */
.modal-login-button {
  position: relative;
  padding: 12px;
  text-align: center;
  border-radius: 8px;
  color: #fff;
  border: none;
  cursor: pointer;
  background-color: #8f6855;
  width: 100%;
  font-size: 14px;
  margin-top: 10px;
}

.modal-signup-button {
  width: 100%;
  max-width: 280px;
  height: 42px;
  background: #8f6855;
  color: #fff;
  border: none;
  border-radius: 4px;
  font-size: 14px;
  cursor: pointer;
  display: block;
  margin: 0 auto;
}

.modal-login-button:hover,
.modal-signup-button:hover {
  filter: brightness(0.85);
}

/* Divider */
.modal-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 15px 0;
  color: #666;
  font-size: 13px;
}

.modal-divider::before,
.modal-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #ddd;
}

[data-theme="dark"] .modal-divider::before,
[data-theme="dark"] .modal-divider::after {
  background: #2a2a2a;
}

/* Signup/Login Link */
.modal-signup-link,
.modal-login-link {
  text-align: center;
  font-size: 13px;
  color: #999;
  margin-top: 15px;
}

.modal-signup-link a,
.modal-login-link a {
  color: #8f6855;
  text-decoration: none;
  margin-left: 8px;
}

.modal-signup-link a:hover,
.modal-login-link a:hover {
  text-decoration: underline;
}

/* Footer (회원가입) */
.signup-modal-form .modal-signup-button {
  margin-top: 20px;
}

.modal-login-link {
  display: block;
  padding-top: 20px;
  border-top: 1px solid #2a2a2a;
}

/* Bank Notice */
.modal-bank-notice {
  font-size: 13px;
  color: #ff6b6b;
  margin-bottom: 6px;
}

/* Field Hint (안내 문구) */
.modal-field-hint {
  font-size: 13px;
  color: #999;
  margin-bottom: 6px;
}

/* Utility Classes */
.modal-mt-10 {
  margin-top: 6px;
}

.modal-mb-10 {
  margin-bottom: 6px;
}

/* 모달 중앙 정렬 강화 - 모든 화면 크기 */
#login-modal .popup__inner,
#signup-modal .popup__inner,
#mypage-modal .popup__inner {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  padding: 20px;
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  transform: none !important;
  width: 100% !important;
  max-width: 100% !important;
  height: 100% !important;
}

/* 모달 컨테이너 중앙 정렬 */
#login-modal .login-modal-container,
#signup-modal .signup-modal-container,
#mypage-modal .mypage-modal-container {
  margin: 0 auto !important;
  position: relative !important;
  left: auto !important;
  right: auto !important;
  transform: none !important;
}

/* 767px 미디어 쿼리 오버라이드 - align-items: flex-end 무효화 */
@media all and (max-width: 767px) {
  #login-modal .popup__inner,
  #signup-modal .popup__inner,
  #mypage-modal .popup__inner {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    padding: 15px !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    height: 100% !important;
    transform: none !important;
  }

  #login-modal .login-modal-container,
  #signup-modal .signup-modal-container {
    width: calc(100% - 30px) !important;
    max-width: 400px !important;
    margin: 0 auto !important;
  }
}

/* 모바일 반응형 */
@media (max-width: 768px) {
  #login-modal .popup__inner,
  #signup-modal .popup__inner,
  #mypage-modal .popup__inner {
    padding: 15px !important;
    align-items: center !important;
  }

  .login-modal-container,
  .signup-modal-container {
    width: calc(100% - 30px);
    max-width: 400px;
  }
}

@media (max-width: 480px) {
  #login-modal .popup__inner,
  #signup-modal .popup__inner,
  #mypage-modal .popup__inner {
    padding: 10px !important;
    align-items: center !important;
  }

  .login-modal-container,
  .signup-modal-container {
    width: calc(100% - 20px);
    padding: 20px;
    max-width: 100%;
  }

  .login-modal-container .modal-close {
    right: 10px;
    top: 10px;
    width: 25px;
    height: 25px;
    font-size: 14px;
  }

  .modal-form-row {
    flex-direction: column;
    gap: 12px;
  }

  .modal-form-options {
    flex-direction: column;
    gap: 10px;
    align-items: flex-start;
  }

  .modal-input-with-button {
    flex-direction: column;
  }

  .modal-check-btn {
    width: 100%;
  }
}

/* 왼쪽 메뉴 텍스트 길이 제한 (베트남어 대응) */
.left-line2 a {
  display: inline-flex;
  max-width: 110px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  vertical-align: middle;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  transform-origin: center center;
}

/* 왼쪽 메뉴 hover 애니메이션 */
.left-line2 a:hover {
  background: linear-gradient(135deg, #8f6855 0%, #a77e68 100%);
  transform: scale(1.02);
  box-shadow: 0 4px 12px rgba(143, 104, 85, 0.4);
  z-index: 10;
  border-radius: 0.4rem;
  font-weight: 500;
}

.left-line2 a:active {
  transform: scale(0.99);
  transition: all 0.1s ease;
}

/* 모바일 메뉴 텍스트 길이 제한 (베트남어 대응) */
.mobile-menu__list .left-line2 a {
  display: inline-flex;
  max-width: 110px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  vertical-align: middle;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  transform-origin: center center;
}

/* 모바일 메뉴 hover 애니메이션 */
.mobile-menu__list .left-line2 a:hover {
  background: linear-gradient(135deg, #8f6855 0%, #a77e68 100%);
  transform: scale(1.02);
  box-shadow: 0 4px 12px rgba(143, 104, 85, 0.4);
  z-index: 10;
  border-radius: 0.4rem;
  font-weight: 500;
}

.mobile-menu__list .left-line2 a:active {
  transform: scale(0.99);
  transition: all 0.1s ease;
}

/* 로그인/회원가입 버튼 텍스트 길이 제한 (베트남어 대응) */
.login-btn,
.join-btn {
  display: inline-flex;
  max-width: 110px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  vertical-align: middle;
}

/* PC 헤더 버튼 */
.pc-menu .login-btn,
.pc-menu .join-btn {
  max-width: 110px;
}

/* 모바일 헤더 버튼 */
.mobile-menu .login-btn,
.mobile-menu .join-btn {
  max-width: 90px;
}

/* 배팅 슬립 빈 상태 스타일 */
.empty-betting-slip {
  text-align: center;
  padding: 60px 20px;
  background: #000 !important;
  border-radius: 8px;
  margin: 10px 0;
    font-weight: bold;
}

.empty-betting-slip p {
  color: #999;
  font-size: 16px;
  margin: 0;
    text-align: center;
}

/* 우측 사이드바 - 잔액 표시 */
.balance-display {
  padding: 25px 20px;
  text-align: center;
  background: linear-gradient(to right, #443631, #9a6c3e);
}

.balance-display .welcome-text {
  color: rgba(255,255,255,0.9);
  margin-bottom: 20px;
  font-size: 14px;
}

.balance-display .welcome-text strong {
  font-size: 16px;
}

.balance-info-box {
  background: rgba(0,0,0,0.3);
  border-radius: 8px;
  padding: 15px;
  margin-bottom: 15px;
  border: 1px solid rgba(255,255,255,0.1);
}

.balance-item {
  margin-bottom: 12px;
}

.balance-item:last-child {
  margin-bottom: 0;
}

.balance-label {
  color: rgba(255,255,255,0.8);
  font-size: 13px;
  margin-bottom: 5px;
}

.balance-amount {
  color: #fff;
  font-size: 28px;
  font-weight: bold;
  margin: 0;
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.balance-amount span {
  font-size: 18px;
  margin-left: 3px;
}

.point-amount {
  color: #fc7604;
  font-size: 24px;
  font-weight: bold;
  margin: 0;
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.point-amount span {
  font-size: 16px;
  margin-left: 3px;
}

.frozen-notice {
  color: rgba(255,255,255,0.7);
  font-size: 12px;
  margin-top: 10px;
}

/* 배당 버튼 기본 스타일 */
.odd-btn {
  /*min-width: 22rem !important;  !* 최소 너비 고정 *!*/
  /*width: 19rem !important;      !* 너비 고정 *!*/
  display: inline-flex;
  justify-content: center;
  align-items: center;
  text-align: center;
    color:#a7a7a7 !important;
}

/* 배당 버튼 선택 상태 스타일 */
.odd-btn.selected {
  background: #8f6855 !important;
  color: #fff !important;
  border-color: #a77e68 !important;
  box-shadow: 0 0 8px rgba(143, 104, 85, 0.6);
  font-weight: bold;
}

.odd-btn.selected p {
  color: #fff !important;
}

/* Micromodal 스타일 */
.modal {
  display: none;
}

.modal.is-open {
  display: block;
}

.modal__overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.modal__container {
  background-color: #2d343a;
  padding: 30px;
  max-width: 500px;
  width: 90%;
  max-height: 80vh;
  border-radius: 8px;
  overflow-y: auto;
  box-sizing: border-box;
  position: relative;
  display: flex;
  flex-direction: column;
}

.modal__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.modal__header.header-hidden {
  display: none !important;
}

.modal__title {
  margin: 0;
  color: #fff;
  font-size: 20px;
  font-weight: 600;
}

.modal__close {
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  width: 24px;
  height: 24px;
  position: relative;
}

.modal__close:before,
.modal__close:after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 2px;
  background: #fff;
}

.modal__close:before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.modal__close:after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.modal__close:hover:before,
.modal__close:hover:after {
  background: #fc7604;
}

.modal__content {
  margin-bottom: 20px;
  line-height: 1.5;
  flex: 1;
  overflow-y: auto;
  max-height: calc(80vh - 180px);
}

.modal-message {
  color: #fff;
  font-size: 16px;
  margin: 0;
}

.modal__footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.modal__btn {
  padding: 10px 24px;
  background-color: #444;
  color: #fff;
  border: none;
  border-radius: 4px;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.modal__btn:hover {
  background-color: #555;
}

.modal__btn-primary {
  background-color: #8f6855;
}

.modal__btn-primary:hover {
  background-color: #a77e68;
}

/* 애니메이션 */
@keyframes mmfadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

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

@keyframes mmslideIn {
  from { transform: translateY(15%); }
  to { transform: translateY(0); }
}

@keyframes mmslideOut {
  from { transform: translateY(0); }
  to { transform: translateY(-10%); }
}

.micromodal-slide {
  display: none;
}

.micromodal-slide.is-open {
  display: block;
}

.micromodal-slide[aria-hidden="false"] .modal__overlay {
  animation: mmfadeIn .3s cubic-bezier(0.0, 0.0, 0.2, 1);
}

.micromodal-slide[aria-hidden="false"] .modal__container {
  animation: mmslideIn .3s cubic-bezier(0, 0, .2, 1);
}

.micromodal-slide[aria-hidden="true"] .modal__overlay {
  animation: mmfadeOut .3s cubic-bezier(0.0, 0.0, 0.2, 1);
}

.micromodal-slide[aria-hidden="true"] .modal__container {
  animation: mmslideOut .3s cubic-bezier(0, 0, .2, 1);
}

.micromodal-slide .modal__container,
.micromodal-slide .modal__overlay {
  will-change: transform;
}

/* 배팅 슬립 아이템 공백 조정 */
.right-line2-data {
  width: 100% !important;
}

.right-line2-data > div {
  padding: 5px !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

/* X 버튼과 배당을 오른쪽 끝에 붙임 */
.right-line2-data .data-right {
  margin-right: 0 !important;
  padding-right: 0 !important;
}

.right-line2-data .data-right button {
  margin-right: 0 !important;
  padding-right: 0 !important;
}

.right-line2-data .data-right p {
  margin-right: 0 !important;
}

/* 경기 목록 컨테이너 스타일 */
#matches {
  min-height: 400px;
  /*padding: 20px;*/
}

/* 경기 목록 로딩 상태 */
.matches-loading {
  text-align: center;
  padding: 40px;
  color: #888;
  font-size: 2em;
}

/* 추가 마켓 숨김 상태 */
.sports_right-hidden {
  display: none;
}

/* 배팅내역 페이지 스타일 */
.details-table th,
.details-table td {
  text-align: center;
}

.latest-bet {
  border: 2px solid #ffd700;
}

.league-icon {
  width: 12px;
  height: 12px;
  margin-right: 4px;
  vertical-align: middle;
}

.team-icon {
  width: 14px;
  height: 14px;
  margin: 0 3px;
  vertical-align: middle;
}

.empty-message {
  text-align: center;
  padding: 50px;
  color: #999;
}

/* 추가 마켓 경기 정보 박스 */
.market-match-info {
  background: #1a1a1a;
  border: 1px solid #333;
  border-radius: 8px;
  padding: 15px;
  margin-bottom: 20px;
}

.market-match-header {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 15px;
}

.market-match-header-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.market-sport-icon {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
}

.market-match-time {
  color: #fff;
  font-size: 18px;
  font-weight: 500;
}

.market-league-name {
  color: #aaa;
  font-size: 14px;
  font-weight: 400;
  text-align: center;
}

.market-match-teams {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
}

.market-team-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.market-team-icon {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.market-team-name {
  color: #fff;
  font-size: 24px;
  font-weight: 600;
}

.market-vs {
  color: #8f6855;
  font-size: 20px;
  font-weight: bold;
  margin: 0 10px;
}

/* 슬롯 페이지 배너 레이아웃 */
.slot-banner-layout {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  flex-wrap: nowrap !important;
}

.slot-banner-left {
  display: flex;
  align-items: center;
  float: none !important;
}

.slot-banner-title {
  color: #fff;
  font-size: 18px;
}

.slot-banner-right {
  margin-right: 20px;
  float: none !important;
  margin-left: auto;
}

.vendor-search-form {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
}

.vendor-count {
  color: #fff;
  font-size: 14px;
  white-space: nowrap;
}

.vendor-search-input {
  padding: 8px 15px;
  border: 1px solid #ddd;
  border-radius: 4px;
  width: 200px;
  background: #fff;
  color: #333;
}

.vendor-search-input::placeholder {
  color: #999;
}

.vendor-search-btn {
  padding: 8px 20px;
  background: #f39c12;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  white-space: nowrap;
}

.vendor-search-btn:hover {
  background: #e67e22;
}

.vendor-reset-btn {
  padding: 8px 15px;
  background: #666;
  color: white;
  border: none;
  border-radius: 4px;
  text-decoration: none;
  display: inline-block;
  white-space: nowrap;
}

.vendor-reset-btn:hover {
  background: #555;
}

/* PC: 경기목록과 프리매치 규정 반반 표시 */
@media screen and (min-width: 1025px) {
  .menu_sports .sports_left {
    width: calc(50% - 0.4rem) !important;
  }
  .menu_sports .sports_right {
    display: block !important;
    width: calc(50% - 0.4rem) !important;
  }
}

/* 모바일/태블릿: 경기목록 전체 너비 사용 */
@media screen and (max-width: 1024px) {
  .menu_sports .sports_left {
    width: 100% !important;
  }
  .menu_sports .sports_right {
    display: none !important;
  }
  /* 모바일에서 컨텐츠 패딩 제거 */
  .sports_left .contents {
    padding: 0 !important;
  }
  /* 모바일에서 첫번째 버튼 왼쪽 패딩 줄이기 */
  .sports-game-date .game-list li > button:nth-child(1) {
    padding: 0 1.2rem 0 1rem !important;
  }
  /* 모바일에서 세번째 버튼 텍스트 오른쪽 정렬 + 오른쪽 패딩 */
  .sports-game-date .game-list li > button:nth-child(3) {
    padding: 0 1rem 0 1.2rem !important;
  }
  .sports-game-date .game-list li > button:nth-child(3) > p {
    text-align: right !important;
  }
  /* 모바일에서 팀 이미지 숨기기 */
  .sports-game-date .game-list li > button img {
    display: none !important;
  }
}

/* 국내형 배당판 스타일 - 컴팩트한 레이아웃 */
/* game-list li 전체 너비 사용, 높이 고정 */
.sports-game-date .game-list li {
  gap: 0 !important;
  width: 100% !important;
  height: 42px !important;
  min-height: 42px !important;
  max-height: 42px !important;
  display: flex !important;
  align-items: stretch !important;
  margin-bottom: 1px !important;
}

/* 승무패/핸디캡/오버언더 배당 버튼 스타일 */
/* 홈/원정 버튼 - 42% 너비 */
.sports-game-date .game-list li > button:nth-child(1),
.sports-game-date .game-list li > button:nth-child(3) {
  flex: 1 1 42% !important;
  width: 42% !important;
  max-width: 42% !important;
  min-width: 0 !important;
  height: 100% !important;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #ffffff !important;
  background: linear-gradient(to top, #141518, #212126);
  border-top: 0.1rem solid #28282f;
  border-left: 0.1rem solid #28282f;
  gap: 0.5rem;
  padding: 0 10px !important;
  font-size: 12px !important;
}

/* 홈팀 버튼 - 왼쪽 여백 */
.sports-game-date .game-list li > button:nth-child(1) {
  padding-left: 1rem;
}

/* 원정팀 버튼 - 오른쪽 여백 */
.sports-game-date .game-list li > button:nth-child(3) {
  padding-right: 1rem;
}

/* 중간 버튼 (VS/무/기준점) - 16% 너비 */
.sports-game-date .game-list li > button:nth-child(2) {
  flex: 0 0 16% !important;
  width: 16% !important;
  max-width: 16% !important;
  min-width: 0 !important;
  height: 100% !important;
  color: #c9a96e !important;
  font-size: 11px !important;
  font-weight: bold;
  background: linear-gradient(to top, #1a1a1f, #252529);
  border-top: 0.1rem solid #28282f;
  border-left: 0.1rem solid #28282f;
  padding: 0 0.5rem;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
}

/* 4번째 버튼 (핸디캡/오버언더 중간) - 16% 너비 */
.sports-game-date .game-list li > button:nth-child(4) {
  flex: 0 0 16% !important;
  width: 16% !important;
  max-width: 16% !important;
  min-width: 0 !important;
  color: #ffffff !important;
  font-size: 1.3rem;
  background: linear-gradient(to top, #141518, #212126);
  border-top: 0.1rem solid #28282f;
  border-left: 0.1rem solid #28282f;
  padding: 0 0.5rem;
}

.sports-game-date .game-list li > button:nth-child(1) p,
.sports-game-date .game-list li > button:nth-child(2) p,
.sports-game-date .game-list li > button:nth-child(3) p {
  font-size: 12px !important;
  color: #ffffff !important;
  flex: 1;
  white-space: nowrap;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  max-width: 120px;
}

.sports-game-date .game-list li > button:nth-child(1) > p {
  text-align: left;
}

.sports-game-date .game-list li > button:nth-child(3) > p {
  text-align: right;
}

.sports-game-date .game-list li > button:nth-child(1) div,
.sports-game-date .game-list li > button:nth-child(3) div {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  flex-shrink: 0 !important;
  min-width: 40px !important;
}

/* 배당률 숫자 - 골드 컬러 강조 */
.sports-game-date .game-list li > button:nth-child(1) div p,
.sports-game-date .game-list li > button:nth-child(3) div p {
  white-space: nowrap !important;
  overflow: visible !important;
  text-overflow: clip !important;
  flex-shrink: 0 !important;
  color: #c9a96e !important;
  font-size: 13px !important;
  font-weight: bold !important;
}

.sports-game-date .game-list li > button:nth-child(1) {
  padding: 0 1.2rem 0 2rem;
}

.sports-game-date .game-list li > button:nth-child(3) {
  padding: 0 1rem 0 1rem;
}

.sports-game-date .game-list li > .vs-btn {
    justify-content: center;
}

/* 중지(disabled) 버튼 스타일 - 모든 버튼에 적용 */
.sports-game-date .game-list li > button:nth-child(1):disabled,
.sports-game-date .game-list li > button:nth-child(2):disabled,
.sports-game-date .game-list li > button:nth-child(3):disabled,
.sports-game-date .game-list li > button:nth-child(4):disabled {
  color: #778093 !important;
  background: #09090a !important;
  border: 0;
  position: relative;
  cursor: not-allowed;
}

/* 중지(disabled) 버튼 자물쇠 아이콘 - 모바일 */
@media (max-width: 1024px) {
  .sports-game-date .game-list li > button:nth-child(1):disabled:after,
  .sports-game-date .game-list li > button:nth-child(2):disabled:after,
  .sports-game-date .game-list li > button:nth-child(3):disabled:after,
  .sports-game-date .game-list li > button:nth-child(4):disabled:after {
    content: "";
    display: block;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 2rem;
    height: 2rem;
    background: url(/img/icon_lock2.png) no-repeat 50% 50%;
    background-size: contain;
  }
}

/* 마켓 표시자 스타일 (1승, X, 2승, H, O, U) */
.market-indicator {
  font-size: 0.9rem;
  padding: 0.1rem 0.3rem;
  border-radius: 0.2rem;
  margin-right: 0.3rem;
  font-weight: bold;
}
.indicator-1 {
  color: #42a5f5; /* 승 - 파란색 */
}
.indicator-2 {
  color: #ef5350; /* 패 - 빨간색 */
}
.indicator-x, .indicator-draw {
  color: #ffffff;
}
.indicator-h {
  color: #42a5f5; /* 핸디 H - 파란색 */
}
.indicator-o {
  color: #ef5350; /* 오버 - 빨간색 */
}
.indicator-u {
  color: #42a5f5; /* 언더 - 파란색 */
}

/* 배당 변동 화살표 */
.odds-arrow {
  font-size: 0.8rem;
  margin-left: 0.2rem;
}
.odds-arrow.odds-up {
  color: #ef5350;
}
.odds-arrow.odds-down {
  color: #42a5f5;
}

/* 배당 변경 애니메이션 */
@keyframes odds-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

/* 배당 상승 애니메이션 */
.odd-btn.odds-up {
  animation: odds-blink 0.5s ease-in-out 6;
}

.odd-btn.odds-up p,
.odd-btn.odds-up div p {
  color: #ff4444 !important;
  font-weight: bold;
}

.odd-btn.odds-up img {
  animation: odds-blink 0.5s ease-in-out 6;
}

/* 배당 하락 애니메이션 */
.odd-btn.odds-down {
  animation: odds-blink 0.5s ease-in-out 6;
}

.odd-btn.odds-down p,
.odd-btn.odds-down div p {
  color: #4444ff !important;
  font-weight: bold;
}

.odd-btn.odds-down img {
  animation: odds-blink 0.5s ease-in-out 6;
}

/* 추가 마켓 버튼 배당 상승 애니메이션 */
.s__accordion01-contents button.odds-up {
  animation: odds-blink 0.5s ease-in-out 6;
}

.s__accordion01-contents button.odds-up p,
.s__accordion01-contents button.odds-up div p {
  color: #ff4444 !important;
  font-weight: bold;
}

.s__accordion01-contents button.odds-up img {
  animation: odds-blink 0.5s ease-in-out 6;
}

/* 추가 마켓 버튼 배당 하락 애니메이션 */
.s__accordion01-contents button.odds-down {
  animation: odds-blink 0.5s ease-in-out 6;
}

.s__accordion01-contents button.odds-down p,
.s__accordion01-contents button.odds-down div p {
  color: #4444ff !important;
  font-weight: bold;
}

.s__accordion01-contents button.odds-down img {
  animation: odds-blink 0.5s ease-in-out 6;
}

/* 모바일 추가 마켓 레이어 배당 상승 애니메이션 */
.mobile-market-body button.odds-up {
  animation: odds-blink 0.5s ease-in-out 6;
}

.mobile-market-body button.odds-up p,
.mobile-market-body button.odds-up div p {
  color: #ff4444 !important;
  font-weight: bold;
}

.mobile-market-body button.odds-up img {
  animation: odds-blink 0.5s ease-in-out 6;
}

/* 모바일 추가 마켓 레이어 배당 하락 애니메이션 */
.mobile-market-body button.odds-down {
  animation: odds-blink 0.5s ease-in-out 6;
}

.mobile-market-body button.odds-down p,
.mobile-market-body button.odds-down div p {
  color: #4444ff !important;
  font-weight: bold;
}

.mobile-market-body button.odds-down img {
  animation: odds-blink 0.5s ease-in-out 6;
}

/* 모바일 전용 요소 - 데스크톱에서 숨김 */
.only-mobile {
  display: none !important;
}

@media (max-width: 992px) {
  .only-mobile {
    display: flex !important;
  }
}

/* 플로팅 버튼 닫기 */
.menu-close2 {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  height: 4.5rem;
  background: #1a1a1f;
  border: none;
  border-bottom: 2px solid #444;
  color: #fff;
  font-size: 2.5rem;
  line-height: 1;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0;
}

.menu-close2:hover {
  background: #3a3a3f;
}

/* 모바일 추가 마켓 레이어 팝업 */
.mobile-market-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9995;
}

.mobile-market-modal.is-open {
  display: block;
}

.mobile-market-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  z-index: 1;
}

.mobile-market-content {
  position: absolute;
  top: 130px;
  right: 0;
  width: 100%;
  height: calc(100% - 130px);
  background: #1a1a1f;
  z-index: 2;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.mobile-market-header {
  position: sticky;
  top: 0;
  background: #28282f;
  padding: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #444;
  z-index: 10;
}

.mobile-market-header h3 {
  color: #fff;
  font-size: 1.8rem;
  font-weight: bold;
  margin: 0;
}

.mobile-market-close {
  width: 4rem;
  height: 4rem;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 3rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.mobile-market-close:active {
  opacity: 0.7;
}

.mobile-market-body {
  padding: 1.5rem;
}

/* PC에서는 표시하지 않음 */
@media (min-width: 769px) {
  .mobile-market-modal {
    display: none !important;
  }
}

/* 모바일에서 body 스크롤 방지 */
body.mobile-market-open {
  overflow: hidden;
  position: fixed;
  width: 100%;
}

/* 모바일 마켓 팝업 내부 스타일 (기존 sports_right_line2 스타일 적용) */
.mobile-market-body .market-match-info,
.mobile-market-body .s__accordion01-wrap,
.mobile-market-body .s__accordion01,
.mobile-market-body .s__accordion01-title,
.mobile-market-body .s__accordion01-contents {
  /* 기존 스타일 상속 */
}

.mobile-market-body .s__accordion01-contents button {
  margin: 0.5rem;
  min-width: 100px;
  padding: 1rem;
  background: #2a2a2f;
  border: 1px solid #444;
  border-radius: 0.4rem;
  color: #fff;
  font-size: 1.4rem;
  cursor: pointer;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.mobile-market-body .s__accordion01-contents button:active {
  background: #3a3a3f;
}

.mobile-market-body .s__accordion01-contents button.on_active {
  background: #9a6c3e;
  border-color: #b8935e;
}

.mobile-market-body .s__accordion01-contents button p {
  color: #fff;
  margin: 0;
}

.mobile-market-body .s__accordion01-contents button div {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

/* PC 및 모바일 마켓 타이틀 - 24시간내 경기 버튼과 동일한 스타일 */
.sports_right .s__accordion01-title button,
.mobile-market-body .s__accordion01-title button {
  width: 100%;
  padding: 1.5rem;
  background: var(--main) !important;
  border: none;
  border-bottom: 1px solid #444;
  color: #fff !important;
  font-size: 1.6rem;
  text-align: left;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mobile-market-body .s__accordion01-contents {
  padding: 1rem;
  background: #1a1a1f;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
}

.mobile-market-body .s__accordion01-contents.three button {
  flex: 0 0 calc(33.333% - 1rem);
}

.mobile-market-body .s__accordion01-contents.two button {
  flex: 0 0 calc(50% - 1rem);
}

.mobile-market-body .market-match-info {
  background: #28282f;
  padding: 1.5rem;
  margin-bottom: 1rem;
  border-radius: 0.4rem;
}

.mobile-market-body .market-match-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
  color: #999;
  font-size: 1.3rem;
}

.mobile-market-body .market-sport-icon {
  width: 24px;
  height: 24px;
}

.mobile-market-body .market-match-teams {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
}

.mobile-market-body .market-team-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.mobile-market-body .market-team-name {
  color: #fff;
  font-size: 1.5rem;
  font-weight: bold;
}

.mobile-market-body .market-vs {
  color: #9a6c3e;
  font-size: 1.6rem;
  font-weight: bold;
}

/* 마이페이지 (정보수정) 스타일 */
.mypage-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem;
}

.mypage-section {
  background: #1a1a1f;
  border: 1px solid #333;
  border-radius: 8px;
  padding: 2rem;
  margin-bottom: 2rem;
}

.mypage-section h3 {
  color: #fff;
  font-size: 1.8rem;
  font-weight: bold;
  margin: 0 0 2rem 0;
  padding-bottom: 1rem;
  border-bottom: 2px solid #444;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  color: #aaa;
  font-size: 1.4rem;
  margin-bottom: 0.8rem;
  font-weight: 500;
}

.form-group input {
  width: 100%;
  padding: 1.2rem;
  background: #28282f;
  border: 1px solid #444;
  border-radius: 4px;
  color: #fff;
  font-size: 1.4rem;
  transition: all 0.3s;
}

.form-group input:focus {
  outline: none;
  border-color: #8f6855;
  box-shadow: 0 0 0 2px rgba(143, 104, 85, 0.1);
}

.form-group input:disabled {
  background: #222;
  color: #666;
  cursor: not-allowed;
}

.form-group input::placeholder {
  color: #555;
}

.bank-info-notice {
  color: #ff9800;
  font-size: 1.3rem;
  margin-top: 1rem;
  padding: 1rem;
  background: rgba(255, 152, 0, 0.1);
  border-radius: 4px;
  border-left: 3px solid #ff9800;
}

.no-bank-info {
  color: #aaa;
  font-size: 1.4rem;
  text-align: center;
  padding: 3rem;
  background: #222;
  border-radius: 4px;
}

.mypage-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-top: 3rem;
}

.mypage-buttons button {
  padding: 1.5rem 4rem;
  font-size: 1.6rem;
  font-weight: bold;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s;
  border: none;
}

.btn-primary {
  background: linear-gradient(to right, #8f6855, #a77e68);
  color: #fff;
}

.btn-primary:hover {
  background: linear-gradient(to right, #a77e68, #b88f7a);
  box-shadow: 0 4px 12px rgba(143, 104, 85, 0.3);
}

.btn-secondary {
  background: #333;
  color: #fff;
}

.btn-secondary:hover {
  background: #444;
}

@media (max-width: 768px) {
  .mypage-container {
    padding: 1rem;
  }

  .mypage-section {
    padding: 1.5rem;
  }

  .mypage-section h3 {
    font-size: 1.6rem;
  }

  .mypage-buttons {
    flex-direction: column;
  }

  .mypage-buttons button {
    width: 100%;
  }
}

/* QnA 페이지 스타일 */
.qna-table-container {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.qna-table {
  width: 100%;
  border-collapse: collapse;
  background: #2a2a2f;
  color: #fff;
  font-size: 1.6rem;
}

.qna-table th,
.qna-table td {
  padding: 15px;
  text-align: center;
  border: 1px solid #353637;
}

.qna-table th {
  background: #2a2a2f;
  font-weight: 500;
  border-bottom: 2px solid #444;
}

.qna-table th:nth-child(1) {
  width: 8%;
}

.qna-table th:nth-child(2) {
  width: 40%;
}

.qna-table th:nth-child(3) {
  width: 12%;
}

.qna-table th:nth-child(4) {
  width: 12%;
}

.qna-table th:nth-child(5) {
  width: 18%;
}

.qna-table th:nth-child(6) {
  width: 10%;
}

.qna-table td {
  background: #1f1f24;
}

.qna-table td:nth-child(1) {
  width: 8%;
}

.qna-table td:nth-child(2) {
  width: 40%;
}

.qna-table td:nth-child(3) {
  width: 12%;
}

.qna-table td:nth-child(4) {
  width: 12%;
}

.qna-table td:nth-child(5) {
  width: 18%;
}

.qna-table td:nth-child(6) {
  width: 10%;
}

.qna-toggle-btn {
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  padding: 0;
  text-align: left;
  width: 100%;
  font-size: 1.6rem;
}

.qna-toggle-btn:hover {
  color: #ffc107;
}

.qna-delete-btn {
  background: #dc3545;
  border: none;
  color: #fff;
  padding: 8px 16px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 1.4rem;
}

.qna-delete-btn:hover {
  background: #c82333;
}

.qna-status.completed {
  color: #28a745;
}

.qna-status.not-completed {
  color: #ffc107;
}

.qna-status.processing {
  color: #17a2b8;
}

.qna-read.view {
  color: #28a745;
}

.qna-read.not-view {
  color: #dc3545;
}

.qna-content-row td {
  background: #2a2a2f;
  padding: 0;
}

.qna-table .no-data td {
  padding: 50px;
  text-align: center;
  color: #999;
}

.inquiry-write-container {
  background: #2a2a2f;
  padding: 30px;
  border-radius: 8px;
  margin: 20px 0;
}

.inquiry-write-container .form-group {
  margin-bottom: 25px;
}

.inquiry-write-container label {
  display: block;
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 10px;
}

.inquiry-write-container input[type="text"],
.inquiry-write-container select,
.inquiry-write-container textarea {
  width: 100%;
  padding: 12px 15px;
  background: #1a1a1f;
  border: 1px solid #444;
  border-radius: 4px;
  color: #fff;
  font-size: 14px;
}

.inquiry-write-container textarea {
  resize: vertical;
  min-height: 200px;
  font-family: inherit;
}

.inquiry-write-container input[type="text"]:focus,
.inquiry-write-container select:focus,
.inquiry-write-container textarea:focus {
  outline: none;
  border-color: #9a6c3e;
}

.inquiry-buttons {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-top: 30px;
}

.inquiry-buttons .btn-primary,
.inquiry-buttons .btn-secondary {
  min-width: 120px;
  padding: 12px 30px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  border: none;
  transition: all 0.3s;
}

.inquiry-buttons .btn-primary {
  background: linear-gradient(to right, #9a6c3e, #c4935f);
  color: #fff;
}

.inquiry-buttons .btn-primary:hover {
  background: linear-gradient(to right, #8a5c2e, #b4834f);
}

.inquiry-buttons .btn-secondary {
  background: #444;
  color: #fff;
}

.inquiry-buttons .btn-secondary:hover {
  background: #555;
}

.qna-line1 button.quick-account-btn,
.qna-line1 button.write-btn {
  padding: 10px 20px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  border: none;
  transition: all 0.3s;
}

.qna-line1 button.quick-account-btn {
  background: linear-gradient(to right, #4a90e2, #5ba3f5);
  color: #fff;
}

.qna-line1 button.quick-account-btn:hover {
  background: linear-gradient(to right, #3a80d2, #4b93e5);
}

.qna-line1 button.write-btn {
  background: linear-gradient(to right, #9a6c3e, #c4935f);
  color: #fff;
}

.qna-line1 button.write-btn:hover {
  background: linear-gradient(to right, #8a5c2e, #b4834f);
}

.inquiry-content {
  padding: 20px;
  background: #1a1a1f;
  border-radius: 4px;
}

.inquiry-section,
.answer-section {
  margin-bottom: 20px;
  padding: 15px;
  background: #2a2a2f;
  border-radius: 4px;
}

.inquiry-section:last-child,
.answer-section:last-child {
  margin-bottom: 0;
}

.inquiry-section h4,
.answer-section h4 {
  color: #9a6c3e;
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 10px;
}

.inquiry-section p,
.answer-section p {
  color: #ddd;
  line-height: 1.6;
  white-space: pre-wrap;
  word-break: break-word;
}

.inquiry-text,
.answer-text {
  color: #ddd;
  line-height: 1.6;
  text-align: left;
  word-break: break-word;
}

.answer-text {
  white-space: normal;
}

.answer-text p {
  margin-bottom: 10px;
}

.answer-text p:last-child {
  margin-bottom: 0;
}

.answer-date {
  color: #999 !important;
  font-size: 12px;
  margin-top: 10px;
  font-style: italic;
}

.waiting-answer {
  color: #999 !important;
  font-style: italic;
}

.qna-line2 .no-data {
  text-align: center;
  padding: 40px 20px;
  color: #999;
}

/* 공지사항 페이지 스타일 */
.notice-list {
  background: #2a2a2f;
  border-radius: 8px;
  overflow: hidden;
  margin: 20px 0;
}

.notice-item {
  border-bottom: 1px solid #444;
  transition: background 0.3s;
}

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

.notice-item:hover {
  background: #333;
}

.notice-header {
  display: flex;
  align-items: center;
  padding: 20px;
  cursor: pointer;
}

.notice-important {
  background: #3a2a1f !important;
}

.notice-important .notice-title {
  color: #f39c12;
  font-weight: 600;
}

.notice-badge {
  display: inline-block;
  padding: 4px 10px;
  background: #e74c3c;
  color: #fff;
  font-size: 12px;
  border-radius: 4px;
  margin-right: 10px;
}

.notice-title {
  flex: 1;
  color: #fff;
  font-size: 15px;
}

.notice-meta {
  display: flex;
  align-items: center;
  gap: 20px;
  color: #999;
  font-size: 13px;
}

.notice-content {
  padding: 20px;
  background: #1a1a1f;
  border-top: 1px solid #444;
  color: #ddd;
  line-height: 1.8;
  white-space: pre-wrap;
  word-break: break-word;
}

/* 이벤트 페이지 스타일 */
.event-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
  margin: 20px 0;
}

.event-card {
  background: #2a2a2f;
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
  cursor: pointer;
}

.event-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.event-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  background: #1a1a1f;
}

.event-body {
  padding: 20px;
}

.event-title {
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 10px;
}

.event-period {
  color: #9a6c3e;
  font-size: 13px;
  margin-bottom: 10px;
}

.event-summary {
  color: #ddd;
  font-size: 14px;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.event-status {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 500;
  margin-top: 10px;
}

.event-status.active {
  background: #27ae60;
  color: #fff;
}

.event-status.ended {
  background: #95a5a6;
  color: #fff;
}

/* 이벤트 상세 모달 */
.event-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  z-index: 9999;
  overflow-y: auto;
}

.event-modal.active {
  display: flex;
  align-items: center;
  justify-content: center;
}

.event-modal-content {
  background: #2a2a2f;
  border-radius: 8px;
  max-width: 800px;
  width: 90%;
  margin: 20px;
  position: relative;
}

.event-modal-close {
  position: absolute;
  top: 15px;
  right: 15px;
  background: #444;
  border: none;
  color: #fff;
  font-size: 24px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s;
}

.event-modal-close:hover {
  background: #555;
}

.event-modal-image {
  width: 100%;
  max-height: 400px;
  object-fit: cover;
}

.event-modal-body {
  padding: 30px;
}

.event-modal-title {
  color: #fff;
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 15px;
}

.event-modal-period {
  color: #9a6c3e;
  font-size: 14px;
  margin-bottom: 20px;
}

.event-modal-content-text {
  color: #ddd;
  line-height: 1.8;
  white-space: pre-wrap;
  word-break: break-word;
}

/* 쪽지함 페이지 스타일 */
.message-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
  border-bottom: 2px solid #444;
}

.message-tab {
  padding: 12px 24px;
  background: transparent;
  border: none;
  color: #999;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
}

.message-tab:hover {
  color: #fff;
}

.message-tab.active {
  color: #9a6c3e;
  border-bottom-color: #9a6c3e;
}

.message-list {
  background: #2a2a2f;
  border-radius: 8px;
  overflow: hidden;
}

.message-item {
  border-bottom: 1px solid #444;
  transition: background 0.3s;
}

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

.message-item:hover {
  background: #333;
}

.message-item.unread {
  background: #2a3a2f;
}

.message-header {
  display: flex;
  align-items: center;
  padding: 20px;
  cursor: pointer;
}

.message-status {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-right: 15px;
  background: #95a5a6;
}

.message-item.unread .message-status {
  background: #27ae60;
}

.message-subject {
  flex: 1;
  color: #fff;
  font-size: 15px;
}

.message-item.unread .message-subject {
  font-weight: 600;
}

.message-meta {
  display: flex;
  align-items: center;
  gap: 20px;
  color: #999;
  font-size: 13px;
}

.message-content-wrapper {
  padding: 20px;
  background: #1a1a1f;
  border-top: 1px solid #444;
}

.message-content {
  color: #ddd;
  line-height: 1.8;
  white-space: pre-wrap;
  word-break: break-word;
  margin-bottom: 15px;
}

.message-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

.message-actions button {
  padding: 8px 16px;
  border-radius: 4px;
  border: none;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.3s;
}

.message-delete-btn {
  background: #e74c3c;
  color: #fff;
}

.message-delete-btn:hover {
  background: #c0392b;
}

@media (max-width: 768px) {
  .inquiry-buttons {
    flex-direction: column;
  }

  .inquiry-buttons .btn-primary,
  .inquiry-buttons .btn-secondary {
    width: 100%;
  }

  .event-list {
    grid-template-columns: 1fr;
  }

  .message-tabs {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .message-tab {
    white-space: nowrap;
  }

  /* QnA 모바일 스타일 */
  .qna-line1 {
    flex-direction: column;
    gap: 10px;
  }

  .qna-line1 p {
    text-align: center;
  }

  .qna-line1 div {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
  }

  .qna-line1 button {
    width: 100% !important;
  }

  .qna-line2 {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .qna-table {
    font-size: 1.4rem;
  }

  .qna-table th,
  .qna-table td {
    padding: 10px;
    font-size: 1.4rem;
  }

  .qna-toggle-btn {
    font-size: 1.4rem;
  }

  .qna-delete-btn {
    padding: 6px 12px;
    font-size: 1.2rem;
  }

  .inquiry-write-container {
    padding: 15px;
  }

  .inquiry-content {
    padding: 10px;
  }

  .inquiry-section,
  .answer-section {
    padding: 10px;
  }
}

/* Toast 알림창 스타일 */
#toast-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 9999;
  pointer-events: none;
}

.toast {
  background: rgba(0, 0, 0, 0.9);
  color: #fff;
  padding: 15px 20px;
  border-radius: 8px;
  margin-bottom: 10px;
  font-size: 1.4rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  opacity: 0;
  transform: translateX(400px);
  transition: all 0.3s ease;
  pointer-events: auto;
  min-width: 250px;
  max-width: 400px;
  word-wrap: break-word;
}

.toast.show {
  opacity: 1;
  transform: translateX(0);
}

.toast-success {
  background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
  border-left: 4px solid #1e7e34;
}

.toast-error {
  background: linear-gradient(135deg, #dc3545 0%, #e83e8c 100%);
  border-left: 4px solid #c82333;
}

.toast-warning {
  background: linear-gradient(135deg, #ffc107 0%, #ff9800 100%);
  border-left: 4px solid #e0a800;
  color: #000;
}

.toast-info {
  background: linear-gradient(135deg, #17a2b8 0%, #00bcd4 100%);
  border-left: 4px solid #117a8b;
}

/* 모바일 대응 */
@media (max-width: 768px) {
  #toast-container {
    top: 10px;
    right: 10px;
    left: 10px;
  }

  .toast {
    font-size: 1.3rem;
    padding: 12px 16px;
    min-width: auto;
    max-width: none;
  }
}

/* QnA 페이지네이션 */
.qna-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 30px;
  padding: 20px 0;
}

.qna-pagination .page-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 8px 12px;
  background: linear-gradient(to right, #443631, #9a6c3e);
  color: #fff;
  border: 1px solid #6b4423;
  border-radius: 6px;
  font-size: 1.4rem;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.qna-pagination .page-btn:hover {
  background: linear-gradient(to right, #5a4641, #ab7d4e);
  border-color: #8b6333;
}

.qna-pagination .page-btn.active {
  background: linear-gradient(to right, #6b5641, #bb8d5e);
  border-color: #9b7343;
  color: #fff;
  font-weight: bold;
  cursor: default;
  box-shadow: 0 0 10px rgba(155, 115, 67, 0.5);
}

.qna-pagination .prev-btn,
.qna-pagination .next-btn {
  background: linear-gradient(to right, #443631, #9a6c3e);
  font-weight: 500;
}

.qna-pagination .prev-btn:hover,
.qna-pagination .next-btn:hover {
  background: linear-gradient(to right, #5a4641, #ab7d4e);
}

@media (max-width: 768px) {
  .qna-pagination {
    gap: 6px;
    margin-top: 20px;
  }

  .qna-pagination .page-btn {
    min-width: 36px;
    height: 36px;
    padding: 6px 10px;
    font-size: 1.3rem;
  }
}

/* 공지사항 테이블 스타일 */
.notice-table-container {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.notice-table {
  width: 100%;
  border-collapse: collapse;
  background: #2a2a2f;
  color: #fff;
  font-size: 1.6rem;
}

.notice-table th,
.notice-table td {
  padding: 15px;
  text-align: center;
  border: 1px solid #353637;
}

.notice-table th {
  background: #2a2a2f;
  font-weight: 500;
  border-bottom: 2px solid #444;
}

.notice-table th:nth-child(1) { width: 10%; }
.notice-table th:nth-child(2) { width: 60%; }
.notice-table th:nth-child(3) { width: 15%; }
.notice-table th:nth-child(4) { width: 15%; }

.notice-table td { background: #1f1f24; }

.notice-table td:nth-child(1) { width: 10%; }
.notice-table td:nth-child(2) { width: 60%; }
.notice-table td:nth-child(3) { width: 15%; }
.notice-table td:nth-child(4) { width: 15%; }

.notice-badge {
  background: linear-gradient(to right, #dc3545, #e83e8c);
  color: #fff;
  padding: 4px 12px;
  border-radius: 4px;
  font-size: 1.3rem;
  font-weight: bold;
}

.notice-toggle-btn {
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  text-align: left;
  width: 100%;
  padding: 5px 10px;
  font-size: 1.6rem;
  transition: color 0.3s ease;
}

.notice-toggle-btn:hover {
  color: #bb8d5e;
}

.notice-content {
  padding: 20px;
  background: #16161a;
  color: #ddd;
  line-height: 1.8;
  text-align: left;
}

.notice-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 30px;
  padding: 20px 0;
}

.notice-pagination .page-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 8px 12px;
  background: linear-gradient(to right, #443631, #9a6c3e);
  color: #fff;
  border: 1px solid #6b4423;
  border-radius: 6px;
  font-size: 1.4rem;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.notice-pagination .page-btn:hover {
  background: linear-gradient(to right, #5a4641, #ab7d4e);
  border-color: #8b6333;
}

.notice-pagination .page-btn.active {
  background: linear-gradient(to right, #6b5641, #bb8d5e);
  border-color: #9b7343;
  color: #fff;
  font-weight: bold;
  cursor: default;
  box-shadow: 0 0 10px rgba(155, 115, 67, 0.5);
}

/* 이벤트 테이블 스타일 */
.event-table-container {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.event-table {
  width: 100%;
  border-collapse: collapse;
  background: #2a2a2f;
  color: #fff;
  font-size: 1.6rem;
}

.event-table th,
.event-table td {
  padding: 15px;
  text-align: center;
  border: 1px solid #353637;
}

.event-table th {
  background: #2a2a2f;
  font-weight: 500;
  border-bottom: 2px solid #444;
}

.event-table th:nth-child(1) { width: 8%; }
.event-table th:nth-child(2) { width: 45%; }
.event-table th:nth-child(3) { width: 25%; }
.event-table th:nth-child(4) { width: 12%; }
.event-table th:nth-child(5) { width: 10%; }

.event-table td { background: #1f1f24; }

.event-table td:nth-child(1) { width: 8%; }
.event-table td:nth-child(2) { width: 45%; }
.event-table td:nth-child(3) { width: 25%; }
.event-table td:nth-child(4) { width: 12%; }
.event-table td:nth-child(5) { width: 10%; }

.event-toggle-btn {
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  text-align: left;
  width: 100%;
  padding: 5px 10px;
  font-size: 1.6rem;
  transition: color 0.3s ease;
}

.event-toggle-btn:hover {
  color: #bb8d5e;
}

.event-status.active {
  color: #28a745;
  font-weight: bold;
}

.event-status.ended {
  color: #dc3545;
  font-weight: bold;
}

.event-content-image {
  padding: 20px;
  text-align: center;
  background: #16161a;
}

.event-content-image img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}

.event-content {
  padding: 20px;
  background: #16161a;
  color: #ddd;
  line-height: 1.8;
  text-align: left;
}

.event-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 30px;
  padding: 20px 0;
}

.event-pagination .page-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 8px 12px;
  background: linear-gradient(to right, #443631, #9a6c3e);
  color: #fff;
  border: 1px solid #6b4423;
  border-radius: 6px;
  font-size: 1.4rem;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.event-pagination .page-btn:hover {
  background: linear-gradient(to right, #5a4641, #ab7d4e);
  border-color: #8b6333;
}

.event-pagination .page-btn.active {
  background: linear-gradient(to right, #6b5641, #bb8d5e);
  border-color: #9b7343;
  color: #fff;
  font-weight: bold;
  cursor: default;
  box-shadow: 0 0 10px rgba(155, 115, 67, 0.5);
}

/* 쪽지함 테이블 스타일 */
.message-table-container {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.message-table {
  width: 100%;
  border-collapse: collapse;
  background: #2a2a2f;
  color: #fff;
  font-size: 1.6rem;
}

.message-table th,
.message-table td {
  padding: 15px;
  text-align: center;
  border: 1px solid #353637;
}

.message-table th {
  background: #2a2a2f;
  font-weight: 500;
  border-bottom: 2px solid #444;
}

.message-table th:nth-child(1) { width: 10%; }
.message-table th:nth-child(2) { width: 12%; }
.message-table th:nth-child(3) { width: 48%; }
.message-table th:nth-child(4) { width: 20%; }
.message-table th:nth-child(5) { width: 10%; }

.message-table td { background: #1f1f24; }

.message-table td:nth-child(1) { width: 10%; }
.message-table td:nth-child(2) { width: 12%; }
.message-table td:nth-child(3) { width: 48%; }
.message-table td:nth-child(4) { width: 20%; }
.message-table td:nth-child(5) { width: 10%; }

.message-item.unread {
  background: rgba(187, 141, 94, 0.1);
}

.message-status-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 4px;
  font-size: 1.3rem;
  font-weight: bold;
}

.message-status-badge.unread {
  background: linear-gradient(to right, #dc3545, #e83e8c);
  color: #fff;
}

.message-status-badge.read {
  background: #555;
  color: #aaa;
}

.message-toggle-btn {
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  text-align: left;
  width: 100%;
  padding: 5px 10px;
  font-size: 1.6rem;
  transition: color 0.3s ease;
}

.message-toggle-btn:hover {
  color: #bb8d5e;
}

.message-delete-btn {
  background: linear-gradient(to right, #dc3545, #e83e8c);
  color: #fff;
  border: none;
  padding: 6px 16px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 1.3rem;
  transition: all 0.3s ease;
}

.message-delete-btn:hover {
  background: linear-gradient(to right, #c82333, #d81b60);
}

.message-content {
  padding: 20px;
  background: #16161a;
  color: #ddd;
  line-height: 1.8;
  text-align: left;
}

.message-read-time {
  padding: 10px 20px;
  background: #16161a;
  color: #999;
  font-size: 1.3rem;
  text-align: right;
}

.message-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 30px;
  padding: 20px 0;
}

.message-pagination .page-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 8px 12px;
  background: linear-gradient(to right, #443631, #9a6c3e);
  color: #fff;
  border: 1px solid #6b4423;
  border-radius: 6px;
  font-size: 1.4rem;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.message-pagination .page-btn:hover {
  background: linear-gradient(to right, #5a4641, #ab7d4e);
  border-color: #8b6333;
}

.message-pagination .page-btn.active {
  background: linear-gradient(to right, #6b5641, #bb8d5e);
  border-color: #9b7343;
  color: #fff;
  font-weight: bold;
  cursor: default;
  box-shadow: 0 0 10px rgba(155, 115, 67, 0.5);
}

@media (max-width: 768px) {
  .notice-table,
  .event-table,
  .message-table {
    font-size: 1.4rem;
  }

  .notice-table th,
  .notice-table td,
  .event-table th,
  .event-table td,
  .message-table th,
  .message-table td {
    padding: 10px;
    font-size: 1.4rem;
  }

  .notice-toggle-btn,
  .event-toggle-btn,
  .message-toggle-btn {
    font-size: 1.4rem;
  }

  .notice-pagination,
  .event-pagination,
  .message-pagination {
    gap: 6px;
    margin-top: 20px;
  }

  .notice-pagination .page-btn,
  .event-pagination .page-btn,
  .message-pagination .page-btn {
    min-width: 36px;
    height: 36px;
    padding: 6px 10px;
    font-size: 1.3rem;
  }
}

/* ===== 모바일 헤더 머니/포인트 바 ===== */
.mobile-money-info {
    display: none;
    width: 100%;
    background: #000;
    padding: 8px 12px;
    gap: 10px;
    margin: 0;
}

.mobile-money-info .money-box {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: #1a1a1a;
    border-radius: 6px;
    padding: 8px 10px;
    border: none;
}

.mobile-money-info .money-box i {
    color: #f0a500;
    font-size: 14px;
}

.mobile-money-info .money-box .label {
    color: #fff;
    font-size: 14px;
    white-space: nowrap;
}

.mobile-money-info .money-box .value {
    color: #f0a500;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
}

/* 모바일에서만 표시 */
@media screen and (max-width: 768px) {
    .mobile-money-info {
        display: flex;
    }

    /* 본문 콘텐츠 상단 여백 - 머니바에 가려지지 않도록 */
    .main-contents {
        margin-top: 50px !important;
    }
}

/* ===== 모바일 메뉴 사용자 버튼 (정보수정/로그아웃) ===== */
.menu-close-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 15px;
}

.menu-user-btns {
    display: flex;
    gap: 8px;
}

.menu-user-btns a {
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 12px;
    text-decoration: none;
    font-weight: 500;
}

.menu-info-btn {
    background: #333;
    color: #fff !important;
    border: 1px solid #555;
}

.menu-logout-btn {
    background: #dc3545;
    color: #fff !important;
    border: 1px solid #dc3545;
}

/* ========================================
   로그인 필수 오버레이 스타일
   (sports_kr.php에서 통합됨)
   ======================================== */
.login-required-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 9998;
    cursor: not-allowed;
}

/* 로그인 모달을 오버레이 위로 */
#login-modal {
    z-index: 9999 !important;
}

/* ========================================
   오른쪽 영역 규정 표시 스타일
   (sports_kr.php에서 통합됨)
   ======================================== */
.sports_right_rule {
    display: block !important;
}

.sports_right_rule.hidden {
    display: none !important;
}

.sports_right_rule .rule-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    height: calc(100vh - 250px);
    color: #888;
}

.sports_right_rule .rule-content {
    padding: 15px;
    max-height: calc(100vh - 200px);
    overflow-y: auto;
    line-height: 1.7;
}

.sports_right_rule .rule-content h2 {
    font-size: 16px;
    margin-bottom: 10px;
}

.sports_right_rule .rule-content h4 {
    font-size: 14px;
    margin-top: 15px;
    margin-bottom: 8px;
}

.sports_right_rule .rule-content ul {
    padding-left: 20px;
    margin: 10px 0;
}

.sports_right_rule .rule-content li {
    margin-bottom: 6px;
    font-size: 13px;
}

.sports_right_rule .rule-content p {
    font-size: 13px;
    margin: 8px 0;
}

.sports_right_rule .rule-content hr {
    border-color: rgba(255,255,255,0.2);
    margin: 10px 0;
}

/* ========================================
   배팅슬립 열릴 때 모바일 카트 버튼 숨기기
   ======================================== */
body.betting-slip-open .mobile-betting-cart-btn {
    display: none !important;
}

/* ========================================
   새 디자인 배팅슬립 스타일
   ======================================== */

.bet-slip-container {
    background: #fff;
    border-radius: 12px;
    padding: 0;
    margin: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

/* 헤더 */
.bet-slip-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid #eee;
}

.bet-slip-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    font-weight: 700;
    color: #d4a017;
}

.bet-slip-title i {
    font-size: 18px;
    color: #d4a017;
}

.bet-slip-reset-btn {
    background: none;
    border: none;
    color: #888;
    font-size: 13px;
    cursor: pointer;
    padding: 4px 8px;
    transition: color 0.2s;
}

.bet-slip-reset-btn:hover {
    color: #333;
}

.bet-slip-close-btn {
    background: none;
    border: none;
    color: #888;
    font-size: 16px;
    cursor: pointer;
    padding: 4px 8px;
    transition: color 0.2s;
    margin-left: 5px;
}

.bet-slip-close-btn:hover {
    color: #ff4444;
}

/* 배팅 아이템 영역 - 스크롤 없이 자연스럽게 확장 */
.bet-slip-content {
    min-height: 100px;
}

.bet-slip-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    border: 2px dashed #c9c49a;
    margin: 15px;
    border-radius: 8px;
    background: #fafaf5;
}

.bet-slip-empty-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
}

.bet-slip-empty-icon i {
    font-size: 40px;
    color: #ccc;
}

.bet-slip-empty-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin: 0 0 8px 0;
}

.bet-slip-empty-desc {
    font-size: 13px;
    color: #888;
    margin: 0;
}

/* 배팅 아이템 (선택된 경기) - 라이트모드 */
.bet-slip-item {
    margin: 10px 15px;
    padding: 15px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 2px solid #d4a017;
    border-radius: 10px;
    position: relative;
}

.bet-slip-item-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 6px;
}

.bet-slip-item-league {
    font-size: 12px;
    color: #666;
    font-weight: 500;
}

.bet-slip-item-remove {
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
    padding: 2px 5px;
    font-size: 18px;
    line-height: 1;
    transition: color 0.2s;
}

.bet-slip-item-remove:hover {
    color: #ff6b6b;
}

.bet-slip-item-teams {
    margin-bottom: 8px;
}

.bet-slip-item-home,
.bet-slip-item-away {
    font-size: 13px;
    font-weight: 500;
    color: #333;
    margin-bottom: 3px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.bet-slip-item-teams .team-label {
    display: inline-block;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 600;
    min-width: 28px;
    text-align: center;
}

.bet-slip-item-teams .team-label.home {
    background: #3478f6;
    color: #fff;
}

.bet-slip-item-teams .team-label.away {
    background: #ff6b6b;
    color: #fff;
}

.bet-slip-item-selection {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.bet-slip-item-pick {
    font-size: 14px;
    font-weight: 600;
    color: #d4a017;
}

.bet-slip-item-odds {
    font-size: 16px;
    font-weight: 700;
    color: #ff8c00;
}

.bet-slip-item-odds.suspended {
    color: #999;
    font-size: 14px;
}

.bet-slip-item-odds.odds-up {
    color: #ff3b30;
}

.bet-slip-item-odds.odds-down {
    color: #007aff;
}

/* 상태 메시지 */
.bet-slip-item-status {
    margin-top: 8px;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
}

.bet-slip-item-status.deleted,
.bet-slip-item-status.stopped {
    background: rgba(255, 59, 48, 0.15);
    color: #ff3b30;
}

.bet-slip-item-status.changed {
    background: rgba(255, 149, 0, 0.15);
    color: #ff9500;
}

.bet-slip-item-status .odds-up {
    color: #ff3b30;
}

.bet-slip-item-status .odds-down {
    color: #007aff;
}

/* 중지된 아이템 */
.bet-slip-item.slip-item-stopped {
    border-color: #ff3b30;
    opacity: 0.8;
}

/* 배당 변경 아이템 */
.bet-slip-item.slip-item-changed {
    border-color: #ff9500;
}

/* 배팅금액 섹션 */
.bet-slip-amount-section {
    padding: 15px 20px;
    border-top: 1px solid #eee;
    background: #fff;
}

/* 한 줄 레이아웃: 보유 | 새로고침 | 입력박스 */
.bet-slip-amount-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.bet-slip-balance-info {
    display: flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
}

.bet-slip-balance-info .balance-label {
    font-size: 13px;
    color: #666;
    font-weight: 500;
}

.bet-slip-balance-info .balance-value {
    font-size: 14px;
    font-weight: 700;
    color: #2d8f3c;
}

.bet-slip-refresh-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: #fff;
    color: #888;
    cursor: pointer;
    transition: all 0.2s;
    flex-shrink: 0;
}

.bet-slip-refresh-btn:hover {
    border-color: #d4a017;
    color: #d4a017;
}

.bet-slip-refresh-btn i {
    font-size: 12px;
}

.bet-slip-refresh-btn.refreshing i {
    animation: spin 1s linear infinite;
}

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

.bet-slip-amount-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.bet-slip-amount-label {
    font-size: 14px;
    font-weight: 600;
    color: #9a8c5c;
}

.bet-slip-amount-header i {
    color: #888;
    font-size: 14px;
}

.bet-slip-amount-row .bet-slip-amount-input-wrapper {
    flex: 1;
    margin-bottom: 0;
}

.bet-slip-amount-input-wrapper {
    margin-bottom: 12px;
}

.bet-slip-amount-input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    text-align: right;
    color: #333;
    background: #fff;
    box-sizing: border-box;
    transition: border-color 0.2s;
}

.bet-slip-amount-input:focus {
    outline: none;
    border-color: #d4a017;
}

.bet-slip-quick-btns {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.bet-slip-quick-btns button {
    flex: 1;
    min-width: 45px;
    padding: 8px 4px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: #fff;
    font-size: 12px;
    font-weight: 500;
    color: #333;
    cursor: pointer;
    transition: all 0.2s;
}

.bet-slip-quick-btns button:hover {
    border-color: #d4a017;
    color: #d4a017;
}

.bet-slip-quick-btns button.max-btn {
    background: #d4a017;
    border-color: #d4a017;
    color: #fff;
}

.bet-slip-quick-btns button.max-btn:hover {
    background: #c49516;
    border-color: #c49516;
}

/* 배팅 정보 */
.bet-slip-info {
    padding: 15px 20px;
    background: #fafafa;
    border-top: 1px solid #eee;
}

.bet-slip-info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
}

.bet-slip-info-row .info-label {
    font-size: 13px;
    color: #666;
}

.bet-slip-info-row .info-value {
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

.bet-slip-info-row .info-value.highlight-green {
    color: #2d8f3c;
}

.bet-slip-info-row .info-value.highlight-yellow {
    color: #9a8c5c;
}

/* 배팅 버튼 */
.bet-slip-actions {
    display: flex;
    gap: 10px;
    padding: 15px 20px;
    background: #fff;
}

.bet-slip-submit-btn {
    flex: 1;
    padding: 14px 20px;
    background: #e86c5d;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    cursor: pointer;
    transition: background 0.2s;
}

.bet-slip-submit-btn:hover {
    background: #d85c4d;
}

.bet-slip-submit-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.bet-slip-cancel-btn {
    flex: 1;
    padding: 14px 20px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    color: #666;
    cursor: pointer;
    transition: all 0.2s;
}

.bet-slip-cancel-btn:hover {
    border-color: #999;
    color: #333;
}

/* 다크모드 지원 */
[data-theme="dark"] .bet-slip-container {
    background: #1a1a1a;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .bet-slip-header {
    border-bottom-color: #333;
}

[data-theme="dark"] .bet-slip-title {
    color: #fbbf24;
}

[data-theme="dark"] .bet-slip-title i {
    color: #fbbf24;
}

[data-theme="dark"] .bet-slip-reset-btn {
    color: #888;
}

[data-theme="dark"] .bet-slip-reset-btn:hover {
    color: #fff;
}

.bet-slip-close-btn {
    background: none;
    border: none;
    color: #888;
    font-size: 16px;
    cursor: pointer;
    padding: 4px 8px;
    transition: color 0.2s;
    margin-left: 5px;
}

.bet-slip-close-btn:hover {
    color: #ff4444;
}

[data-theme="dark"] .bet-slip-empty {
    border-color: #333;
    background: #222;
}

[data-theme="dark"] .bet-slip-empty-icon i {
    color: #555;
}

[data-theme="dark"] .bet-slip-empty-title {
    color: #eee;
}

[data-theme="dark"] .bet-slip-empty-desc {
    color: #888;
}

[data-theme="dark"] .bet-slip-item {
    background: linear-gradient(135deg, #4a3728 0%, #3d2e22 100%);
    border-color: #d4a017;
}

[data-theme="dark"] .bet-slip-item-league {
    color: #bbb;
}

[data-theme="dark"] .bet-slip-item-home,
[data-theme="dark"] .bet-slip-item-away {
    color: #ddd;
}

[data-theme="dark"] .bet-slip-item-pick {
    color: #d4a017;
}

[data-theme="dark"] .bet-slip-item-odds {
    color: #ff8c00;
}

[data-theme="dark"] .bet-slip-amount-section {
    background: #1a1a1a;
    border-top-color: #333;
}

[data-theme="dark"] .bet-slip-amount-label {
    color: #b8a87c;
}

[data-theme="dark"] .bet-slip-amount-input {
    background: #222;
    border-color: #444;
    color: #eee;
}

[data-theme="dark"] .bet-slip-amount-input:focus {
    border-color: #fbbf24;
}

[data-theme="dark"] .bet-slip-quick-btns button {
    background: #222;
    border-color: #444;
    color: #ddd;
}

[data-theme="dark"] .bet-slip-quick-btns button:hover {
    border-color: #fbbf24;
    color: #fbbf24;
}

[data-theme="dark"] .bet-slip-quick-btns button.max-btn {
    background: #fbbf24;
    border-color: #fbbf24;
    color: #000;
}

[data-theme="dark"] .bet-slip-info {
    background: #151515;
    border-top-color: #333;
}

[data-theme="dark"] .bet-slip-info-row .info-label {
    color: #888;
}

[data-theme="dark"] .bet-slip-info-row .info-value {
    color: #eee;
}

[data-theme="dark"] .bet-slip-info-row .info-value.highlight-green {
    color: #4ade80;
}

[data-theme="dark"] .bet-slip-info-row .info-value.highlight-yellow {
    color: #b8a87c;
}

[data-theme="dark"] .bet-slip-actions {
    background: #1a1a1a;
}

[data-theme="dark"] .bet-slip-submit-btn {
    background: #e86c5d;
}

[data-theme="dark"] .bet-slip-submit-btn:hover {
    background: #d85c4d;
}

[data-theme="dark"] .bet-slip-cancel-btn {
    background: #222;
    border-color: #444;
    color: #aaa;
}

[data-theme="dark"] .bet-slip-cancel-btn:hover {
    border-color: #666;
    color: #fff;
}

/* 반응형 */
@media (max-width: 992px) {
    .bet-slip-container {
        margin: 5px;
    }

    .bet-slip-header {
        padding: 12px 15px;
    }

    .bet-slip-amount-section {
        padding: 12px 15px;
    }

    .bet-slip-info {
        padding: 12px 15px;
    }

    .bet-slip-actions {
        padding: 12px 15px;
    }
}

/* 팀명 ellipsis - 오버플로우 방지 */
.sports-game-date .game-list li {
    overflow: hidden !important;
}

.sports-game-date .game-list li > button:nth-child(1) p,
.sports-game-date .game-list li > button:nth-child(2) p,
.sports-game-date .game-list li > button:nth-child(3) p {
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
    max-width: 100%;
}

/* 인플레이 3-way 마켓 (승무패) 스타일 */
.game-list2-line2.three-way {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 0.5rem;
}

.game-list2-line2.three-way .draw-btn {
    flex-direction: column;
    min-width: 66px;
    max-width: 88px;
    width: 8.8rem;
}

.game-list2-line2.three-way .draw-btn p {
    font-size: 0.85rem;
    color: #888;
}

.game-list2.has-draw .game-list2-line2 {
    gap: 0.3rem;
}

/* 팀 아이콘 스타일 */
.team-icon {
    width: 18px;
    height: 18px;
    object-fit: contain;
    vertical-align: middle;
    margin-right: 4px;
}

.team-icon-right {
    margin-right: 0;
    margin-left: 4px;
}

/* 헤더 BET 버튼 - 모바일에서만 표시 */
@media (max-width: 992px) {
    .header-bet-btn {
        display: flex !important;
    }
}

/* ============================================
   국내형 3줄 레이아웃 (승무패/핸디캡/언오버)
   ============================================ */

/* 경기 행 - 3줄 레이아웃 */
.match-row.domestic-3row {
    display: flex;
    align-items: stretch;
    background: var(--bg-secondary);
    border-radius: 8px;
    margin-bottom: 0.5rem;
    overflow: hidden;
}

/* 시간 컬럼 */
.match-time-col {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 80px;
    padding: 0.75rem;
    background: rgba(0, 0, 0, 0.2);
    font-size: 0.85rem;
    color: var(--text-secondary);
    text-align: center;
}

/* 3줄 배당 영역 */
.match-odds-3row {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding: 0.5rem;
}

/* 각 배당 행 */
.odds-row {
    display: flex;
    gap: 0.25rem;
    align-items: stretch;
}

/* 빈 행 */
.odds-row.empty-row {
    justify-content: center;
    align-items: center;
    min-height: 40px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 4px;
}

.empty-text {
    color: var(--text-secondary);
    font-size: 1.2rem;
}

/* 배당 버튼 */
.odds-row .odd-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.6rem 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    color: var(--text-primary);
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s;
    min-height: 40px;
}

.odds-row .odd-btn:hover:not(.disabled) {
    background: rgba(212, 175, 55, 0.15);
    border-color: var(--gold-primary);
}

.odds-row .odd-btn.selected {
    background: linear-gradient(135deg, var(--gold-primary), var(--gold-secondary));
    border-color: var(--gold-primary);
    color: #000;
}

.odds-row .odd-btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* 팀 이미지 */
.odd-btn .team-img {
    width: 20px;
    height: 20px;
    object-fit: contain;
    margin-right: 6px;
    flex-shrink: 0;
}

/* 라벨 (팀명) - PC에서는 전체 표시 */
.odd-btn .btn-label {
    flex: 1;
    text-align: left;
    white-space: nowrap;
}

/* 배당 값 */
.odd-btn .btn-odds {
    font-weight: 700;
    color: var(--gold-primary);
    margin-left: 8px;
    flex-shrink: 0;
}

.odd-btn.selected .btn-odds {
    color: #000;
}

/* VS 구분자 */
.vs-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 50px;
    font-size: 0.75rem;
    color: var(--text-secondary);
    font-weight: 600;
}

/* 라인 구분자 (핸디캡/언오버 기준점) */
.line-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 60px;
    font-size: 0.85rem;
    color: var(--gold-primary);
    font-weight: 700;
    background: rgba(212, 175, 55, 0.1);
    border-radius: 4px;
}

/* 무승부 버튼 */
.odd-btn.btn-draw {
    flex: 0 0 80px;
    justify-content: center;
}

.odd-btn.btn-draw .btn-label {
    text-align: center;
    flex: none;
}

/* 모바일 반응형 - 팀명 줄이기 */
@media (max-width: 768px) {
    .match-time-col {
        min-width: 60px;
        padding: 0.5rem;
        font-size: 0.75rem;
    }

    .match-odds-3row {
        padding: 0.35rem;
        gap: 0.2rem;
    }

    .odds-row .odd-btn {
        padding: 0.5rem;
        font-size: 0.8rem;
        min-height: 36px;
    }

    /* 모바일에서만 팀명 줄이기 */
    .odd-btn .btn-label {
        max-width: 70px;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .odd-btn .team-img {
        width: 16px;
        height: 16px;
        margin-right: 4px;
    }

    .vs-divider {
        min-width: 35px;
        font-size: 0.7rem;
    }

    .line-divider {
        min-width: 45px;
        font-size: 0.75rem;
    }

    .odd-btn.btn-draw {
        flex: 0 0 60px;
    }
}

/* 더 작은 화면 */
@media (max-width: 480px) {
    .odd-btn .btn-label {
        max-width: 55px;
        font-size: 0.75rem;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .odd-btn .btn-odds {
        font-size: 0.8rem;
    }
}

/* ============================================
   국내형 레이아웃 (3줄 배당)
   ============================================ */

/* 배당 컬럼 - 세로 정렬 */
.match-odds-col {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

/* 추가 버튼 컬럼 숨김 */
.match-more-col {
    display: none !important;
}

/* 모바일 헤더의 추가 버튼도 숨김 */
.match-mobile-header .more-markets-btn {
    display: none !important;
}
