/**
 * CC Casino (테마8) — 네온 그린 / 다크 / 육각 프로바이더 / 3열 입출금
 * rich6 style.css·game-cards 미사용 전제
 */
:root {
  --cc8-neon: #39ff14;
  --cc8-neon-dim: #22c55e;
  --cc8-neon-glow: rgba(57, 255, 20, 0.45);
  --cc8-black: #050505;
  --cc8-panel: #0f0f0f;
  --cc8-bar: #121212;
  --cc8-line: #1f3320;
  --cc8-gold: #f5c518;
  --cc8-blue: #38bdf8;
  --cc8-muted: rgba(255, 255, 255, 0.65);
}

.cc8-body {
  margin: 0;
  padding: 0;
  background: var(--cc8-black);
  color: #e8e8e8;
  font-family: "Noto Sans KR", system-ui, sans-serif;
}

.cc8-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 14px;
  box-sizing: border-box;
}

/* —— 상단 —— */
.cc8-top-strip {
  background: linear-gradient(180deg, #0a0a0a 0%, #111 100%);
  border-bottom: 1px solid var(--cc8-line);
}

.cc8-top-strip .cc8-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 10px;
  padding-bottom: 10px;
}

.cc8-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #fff;
}

.cc8-brand img {
  max-height: 42px;
  width: auto;
  filter: drop-shadow(0 0 8px var(--cc8-neon-glow));
}

.cc8-brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.cc8-brand-text strong {
  font-size: 1.15rem;
  letter-spacing: 0.08em;
  color: var(--cc8-neon);
  text-shadow: 0 0 12px var(--cc8-neon-glow);
}

.cc8-brand-text span {
  font-size: 0.7rem;
  color: var(--cc8-muted);
  letter-spacing: 0.35em;
}

.cc8-top-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.cc8-ghost {
  border: 1px solid var(--cc8-line);
  background: rgba(57, 255, 20, 0.06);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  padding: 7px 14px;
  border-radius: 999px;
  cursor: pointer;
  text-decoration: none;
  transition: box-shadow 0.2s, border-color 0.2s, color 0.2s;
}

.cc8-ghost:hover {
  border-color: var(--cc8-neon);
  color: var(--cc8-neon);
  box-shadow: 0 0 14px var(--cc8-neon-glow);
}

.cc8-ghost-primary {
  background: linear-gradient(135deg, #1a3d1a 0%, #0f2f0f 100%);
  border-color: var(--cc8-neon-dim);
  color: var(--cc8-neon);
}

.cc8-userinfo {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 12px;
  font-size: 12px;
}

.cc8-userinfo > span,
.cc8-userinfo > a,
.cc8-userinfo > button {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #fff;
}

.cc8-userinfo .cc8-bal {
  color: var(--cc8-blue);
  font-weight: 700;
}

.cc8-userinfo .cc8-pt {
  color: var(--cc8-gold);
  font-weight: 700;
}

/* 메인 네비 */
.cc8-header-bottom {
  background: var(--cc8-bar);
  border-bottom: 2px solid #000;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.65);
}

.cc8-header-bottom .cc8-inner {
  position: relative;
  min-height: 48px;
}

.cc8-main-nav {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: nowrap;
  width: 100%;
}

.cc8-main-nav > li {
  flex: 1 1 auto;
  min-width: 0;
  border-right: 1px solid #1a1a1a;
}

.cc8-main-nav > li:last-child {
  border-right: none;
}

.cc8-main-nav a,
.cc8-main-nav button {
  display: block !important;
  width: 100%;
  color: rgba(255, 255, 255, 0.92) !important;
  font-size: 12px;
  font-weight: 600;
  min-height: 48px;
  line-height: 1.2;
  padding: 8px 4px;
  text-align: center;
  text-decoration: none;
  background: transparent;
  border: none;
  cursor: pointer;
  box-sizing: border-box;
}

.cc8-nav-sub {
  display: block;
  font-size: 9px;
  font-weight: 400;
  color: var(--cc8-muted);
  margin-top: 2px;
}

.cc8-main-nav a:hover,
.cc8-main-nav button:hover {
  background: rgba(57, 255, 20, 0.12);
  color: var(--cc8-neon) !important;
}

.cc8-main-nav a.active,
.cc8-main-nav button.active {
  background: linear-gradient(180deg, rgba(57, 255, 20, 0.2) 0%, transparent 100%);
  color: var(--cc8-neon) !important;
  box-shadow: inset 0 -2px 0 var(--cc8-neon);
}

.cc8-body .left-menu-btn.mobile {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 30;
  filter: invert(1);
}

@media (min-width: 992px) {
  .cc8-body .left-menu-btn.mobile {
    display: none !important;
  }
}

@media (max-width: 991.98px) {
  .cc8-header-bottom .sidebar-left.main-menu {
    display: none;
    flex-direction: column;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: #0c0c0c;
    border: 1px solid var(--cc8-line);
    z-index: 100;
    max-height: 72vh;
    overflow-y: auto;
  }

  .cc8-header-bottom .sidebar-left.main-menu.rich-mobile-open,
  .cc8-header-bottom .sidebar-left.main-menu.active {
    display: flex;
  }

  .cc8-main-nav > li {
    width: 100%;
    border-right: none;
    border-bottom: 1px solid #1a1a1a;
  }

  .cc8-main-nav a,
  .cc8-main-nav button {
    text-align: left;
    padding-left: 16px;
  }
}

/* 히어로 */
.cc8-hero {
  position: relative;
  min-height: 220px;
  background:
    linear-gradient(90deg, rgba(5, 5, 5, 0.92) 0%, rgba(5, 5, 5, 0.55) 45%, rgba(5, 5, 5, 0.35) 100%),
    url("/public/custom/type_8/images/hero-reference-a.png") center center / cover no-repeat;
  border-bottom: 1px solid var(--cc8-line);
}

.cc8-hero .cc8-inner {
  position: relative;
  z-index: 1;
  padding: 36px 14px 32px;
  max-width: 1240px;
}

.cc8-hero h1 {
  margin: 0 0 10px;
  font-size: clamp(1.5rem, 4vw, 2.35rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.25;
  text-shadow: 0 0 24px rgba(57, 255, 20, 0.35);
}

.cc8-hero h1 em {
  font-style: normal;
  color: var(--cc8-neon);
}

.cc8-hero p {
  margin: 0;
  font-size: 1rem;
  color: var(--cc8-muted);
  max-width: 520px;
}

.cc8-hero-glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse 70% 50% at 70% 40%, rgba(57, 255, 20, 0.12), transparent 55%);
}

/* 마퀴 */
.cc8-marquee-wrap {
  background: #0a0a0a;
  border-bottom: 1px solid var(--cc8-line);
}

.cc8-marquee {
  max-width: 1240px;
  margin: 0 auto;
  padding: 8px 14px;
  color: #ff4d4d;
  font-size: 13px;
  font-weight: 600;
  overflow: hidden;
  white-space: nowrap;
}

.cc8-marquee span {
  display: inline-block;
  animation: cc8-marquee 28s linear infinite;
}

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

/* 3대 카테고리 필 */
.cc8-games-zone {
  scroll-margin-top: 72px;
}

.cc8-pill-row {
  padding: 18px 0 8px;
}

.cc8-pill-row .cc8-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.cc8-pill {
  flex: 1 1 200px;
  max-width: 360px;
  min-height: 72px;
  border-radius: 999px;
  border: 2px solid var(--cc8-line);
  background: linear-gradient(180deg, #141414 0%, #0a0a0a 100%);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-decoration: none;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.15s;
}

.cc8-pill .cc8-pill-kr {
  font-size: 1.05rem;
}

.cc8-pill .cc8-pill-en {
  font-size: 0.72rem;
  color: var(--cc8-muted);
  font-weight: 500;
}

.cc8-pill:hover {
  border-color: var(--cc8-neon-dim);
  box-shadow: 0 0 20px var(--cc8-neon-glow);
}

.cc8-pill.category-btn.active,
.cc8-pill.category-btn.casino-link.active,
.cc8-pill.category-btn.slot-link.active {
  border-color: var(--cc8-neon);
  background: linear-gradient(135deg, #153919 0%, #0a1f0c 50%, #050805 100%);
  color: var(--cc8-neon);
  box-shadow: 0 0 28px var(--cc8-neon-glow), inset 0 0 20px rgba(57, 255, 20, 0.08);
}

.cc8-pill-sports.cc8-pill-disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

/* 게임 그리드 영역 */
.cc8-provider-stage {
  position: relative;
  padding: 8px 0 28px;
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(57, 255, 20, 0.06), transparent 55%),
    linear-gradient(180deg, #080808 0%, #030303 100%);
}

.cc8-provider-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.12;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80' viewBox='0 0 80 80'%3E%3Cg fill='none' stroke='%2339ff14' stroke-width='0.5'%3E%3Cpath d='M40 5 L70 22.5 L70 57.5 L40 75 L10 57.5 L10 22.5 Z'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 100px 100px;
  pointer-events: none;
}

.cc8-body .providers-section {
  margin: 0 !important;
  position: relative;
  z-index: 2;
}

.cc8-body .providers-panel {
  width: 100% !important;
  margin: 0 !important;
}

.cc8-body .providers-section .game-grid {
  padding: 12px 0 8px !important;
}

.cc8-body .providers-section .game-grid .row {
  margin-left: -8px;
  margin-right: -8px;
  justify-content: center;
}

.cc8-body .providers-section .game-grid .row > [class*="col"] {
  padding: 10px 8px;
}

@media (min-width: 992px) {
  .cc8-body .providers-section .game-grid .row > [class*="col"] {
    flex: 0 0 20%;
    max-width: 20%;
  }
}

/* 육각 + 네온 카드 */
.cc8-body .providers-section .image-container {
  position: relative;
  border-radius: 0 !important;
  overflow: visible !important;
  background: radial-gradient(circle at 50% 30%, #1a1f1a 0%, #0a0a0a 70%) !important;
  border: none !important;
  box-shadow: 0 0 0 2px rgba(57, 255, 20, 0.35), 0 12px 40px rgba(0, 0, 0, 0.75) !important;
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  aspect-ratio: 1 / 1.12;
  max-width: 168px;
  margin: 0 auto;
}

.cc8-body .providers-section .image-container::before {
  content: "";
  position: absolute;
  inset: -3px;
  z-index: -1;
  background: linear-gradient(135deg, var(--cc8-neon), var(--cc8-neon-dim), #166534);
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  opacity: 0.55;
  filter: blur(4px);
}

.cc8-body .providers-section .image-container .main-image {
  border-radius: 0 !important;
  object-fit: cover;
  height: 100%;
  clip-path: polygon(50% 2%, 98% 26%, 98% 74%, 50% 98%, 2% 74%, 2% 26%);
}

.cc8-body .providers-section .image-container .logo-image {
  position: absolute;
  bottom: 10%;
  left: 50%;
  transform: translateX(-50%);
  width: 42% !important;
  max-height: 22% !important;
  object-fit: contain;
  border-radius: 4px !important;
  filter: drop-shadow(0 2px 6px #000);
}

.cc8-body .providers-section .image-container .overlay {
  background: linear-gradient(180deg, transparent 35%, rgba(0, 0, 0, 0.88) 100%) !important;
}

.cc8-body .providers-section .image-container .name {
  font-size: 11px !important;
  color: #fff !important;
  text-shadow: 0 0 8px var(--cc8-neon-glow);
}

.cc8-body .providers-section .image-container .play {
  color: var(--cc8-neon) !important;
  filter: drop-shadow(0 0 6px var(--cc8-neon-glow));
}

.cc8-body .providers-section .image-container .logo-text {
  display: none;
}

/* 슬롯 배너 col */
.cc8-body .providers-section .provider-banner {
  position: relative;
}

.cc8-body .providers-section .provider-banner .image-container {
  max-width: 156px;
}

/* 3열 공지 / 입금 / 출금 */
.cc8-live-boards {
  padding: 8px 0 24px;
  background: #060606;
  border-top: 1px solid var(--cc8-line);
  border-bottom: 1px solid #000;
}

.cc8-triple {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 12px;
}

@media (max-width: 991.98px) {
  .cc8-triple {
    grid-template-columns: 1fr;
  }
}

.cc8-panel {
  background: var(--cc8-panel);
  border: 1px solid var(--cc8-line);
  border-radius: 10px;
  overflow: hidden;
  min-height: 200px;
}

.cc8-panel-stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: transparent;
  border: none;
  min-height: auto;
}

.cc8-panel-block {
  background: var(--cc8-panel);
  border: 1px solid var(--cc8-line);
  border-radius: 10px;
  overflow: hidden;
  flex: 1;
}

.cc8-panel-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  font-size: 14px;
  font-weight: 800;
  border-bottom: 1px solid #1a1a1a;
}

.cc8-head-notice {
  color: #c084fc;
}

.cc8-head-event {
  color: #f472b6;
}

.cc8-head-dep {
  color: var(--cc8-blue);
}

.cc8-head-wd {
  color: var(--cc8-gold);
}

.cc8-panel-body {
  padding: 0;
  max-height: 280px;
  overflow: auto;
}

.cc8-panel-stack .cc8-panel-body {
  max-height: 160px;
}

.cc8-panel-stack .list-group-item {
  background: transparent;
  border-color: #222;
  color: #ddd;
  font-size: 12px;
  padding: 8px 10px;
}

.cc8-more {
  display: block;
  text-align: center;
  font-size: 12px;
  padding: 6px;
  color: var(--cc8-muted);
  text-decoration: none;
}

.cc8-more:hover {
  color: var(--cc8-neon);
}

.cc8-live-table {
  width: 100%;
  font-size: 12px;
  border-collapse: collapse;
}

.cc8-live-table thead th {
  background: #0a0a0a;
  color: var(--cc8-muted);
  font-weight: 600;
  padding: 8px 6px;
  border-bottom: 1px solid #222;
}

.cc8-live-table tbody td {
  padding: 7px 6px;
  border-bottom: 1px solid #1a1a1a;
}

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

.cc8-td-id {
  color: #fff;
  font-weight: 600;
}

.cc8-amt-in {
  color: var(--cc8-blue);
  font-weight: 800;
  text-align: right;
}

.cc8-amt-out {
  color: var(--cc8-gold);
  font-weight: 800;
  text-align: right;
}

.cc8-table-empty {
  color: var(--cc8-muted);
  font-size: 12px;
}

/* 잭팟 */
.cc8-jackpot-bar {
  margin: 20px auto;
  max-width: 1240px;
  padding: 16px 16px 20px;
  text-align: center;
  background: radial-gradient(ellipse at center, #2a1f08 0%, #0d0a03 65%);
  border: 1px solid #5c4a1a;
  border-radius: 12px;
  box-shadow: inset 0 0 40px rgba(245, 197, 24, 0.08);
}

.cc8-jackpot-label {
  font-size: 11px;
  letter-spacing: 0.25em;
  color: #d4a20f;
  margin-bottom: 6px;
}

.cc8-jackpot-val {
  font-family: Oswald, "Noto Sans KR", sans-serif;
  font-size: clamp(1.75rem, 5vw, 2.5rem);
  font-weight: 700;
  color: var(--cc8-gold);
  text-shadow: 0 0 20px rgba(245, 197, 24, 0.45);
}

/* 소셜 버튼 */
.cc8-social-row {
  padding: 8px 0 28px;
}

.cc8-social-row .cc8-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.cc8-social-btn {
  flex: 1 1 200px;
  max-width: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 16px;
  border-radius: 10px;
  font-weight: 800;
  font-size: 14px;
  text-decoration: none;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: transform 0.15s, box-shadow 0.2s;
}

.cc8-social-btn:hover {
  transform: translateY(-2px);
  color: #fff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
}

.cc8-soc-tg {
  background: linear-gradient(135deg, #229ed9 0%, #0b6a9c 100%);
}

.cc8-soc-ch {
  background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
}

.cc8-soc-domain {
  background: linear-gradient(135deg, #166534 0%, #052e16 100%);
  border-color: var(--cc8-neon-dim);
}

/* 푸터 파트너 */
.cc8-partner-footer {
  background: #0a0a0a;
  border-top: 1px solid var(--cc8-line);
  padding: 20px 0 12px;
}

.cc8-partner-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  justify-content: center;
  align-items: center;
  filter: grayscale(0.35) brightness(0.85);
  opacity: 0.9;
}

.cc8-partner-grid img {
  height: 28px;
  width: auto;
  object-fit: contain;
}

.cc8-copy-footer {
  text-align: center;
  padding: 16px 12px 28px;
  font-size: 12px;
  color: var(--cc8-muted);
  border-top: 1px solid #111;
}

/* 스크롤 탑 */
.cc8-scroll-top.scroll-top {
  background: var(--cc8-bar) !important;
  border: 1px solid var(--cc8-line) !important;
  color: var(--cc8-neon) !important;
}

.cc8-casino-glow > a {
  animation: cc8-menu-pulse 1.2s ease-in-out infinite alternate;
}

@keyframes cc8-menu-pulse {
  from {
    text-shadow: 0 0 6px var(--cc8-neon-glow);
  }
  to {
    text-shadow: 0 0 14px var(--cc8-neon-glow);
    color: var(--cc8-neon) !important;
  }
}

/* 로딩 스피너 (리치 CSS 제거 시) */
.widget-loadingspinner {
  display: none;
  position: fixed;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.35);
  z-index: 99999;
}
.widget-loadingspinner.show {
  display: block;
}
.widget-loadingspinner .lds-ring {
  display: inline-block;
  position: fixed;
  top: 50%;
  left: 50%;
  width: 80px;
  height: 80px;
  transform: translate(-50%, -50%);
}
.widget-loadingspinner .lds-ring div {
  box-sizing: border-box;
  display: block;
  position: absolute;
  width: 64px;
  height: 64px;
  margin: 8px;
  border: 8px solid var(--cc8-neon);
  border-radius: 50%;
  animation: cc8-lds-ring 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;
  border-color: var(--cc8-neon) transparent transparent transparent;
}
.widget-loadingspinner .lds-ring div:nth-child(1) {
  animation-delay: -0.45s;
}
.widget-loadingspinner .lds-ring div:nth-child(2) {
  animation-delay: -0.3s;
}
.widget-loadingspinner .lds-ring div:nth-child(3) {
  animation-delay: -0.15s;
}
@keyframes cc8-lds-ring {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}
