
  /* =============================================
     WhatsApp & Channel Talk
  ============================================= */

  /*
  #lotto-info, #quick-total, #live-rolling, #winner-marquee, 
  #winning-tickets-slider, #recommended-videos, #usage-guide, #customer-center {
      visibility: hidden;
  }
*/

  #site-loader {
      position: fixed;
      top: 0; left: 0;
      width: 100%; height: 100%;
      background-color: #ffffff; /* 사이트 배경색에 맞게 조절 */
      z-index: 100000; /* 모든 요소보다 위에 */
      display: flex;
      align-items: center;
      justify-content: center;
      transition: opacity 0.5s ease;
  }

    /* 단순한 로딩 스피너 애니메이션 */
  .loader-spinner {
      width: 50px;
      height: 50px;
      border: 5px solid #f3f3f3;
      border-top: 5px solid #e11d48; /* 메가로또 포인트 컬러 */
      border-radius: 50%;
      animation: spin 1s linear infinite;
  }

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

  /* 3. 로딩 완료 시 보여주기 */
  /*
  body.is-loaded #lotto-info, 
  body.is-loaded #quick-total, 
  body.is-loaded #live-rolling, 
  body.is-loaded #winner-marquee, 
  body.is-loaded #winning-tickets-slider, 
  body.is-loaded #recommended-videos, 
  body.is-loaded #usage-guide, 
  body.is-loaded #customer-center {
      visibility: visible;
  }
  */
  .wa-wing{
    position: fixed;
    right: 16px;
    bottom: 16px;
    z-index: 99998;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border-radius: 999px;
    color: #fff;
    text-decoration: none;
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    border: 1px solid rgba(255,255,255,.22);
    transform: translateZ(0);
    transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
  }
  .wa-wing:hover{
    transform: translateY(-1px);
    box-shadow: 0 10px 20px rgba(0,0,0,.22);
    filter: saturate(1.03);
  }
  .wa-wing__icon{
    width: 38px; height: 38px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center; justify-content: center;
    background: rgba(255,255,255,.18);
    border: 1px solid rgba(255,255,255,.22);
    box-shadow: inset 0 0 0 1px rgba(0,0,0,.06);
  }
  .wa-wing__text{ display:flex; flex-direction:column; line-height:1.05; }
  .wa-wing__text strong{ font-size:13px; font-weight:900; letter-spacing:.2px; }
  .wa-wing__text em{ font-style:normal; font-size:12px; opacity:.95; font-weight:700; }
  @media (max-width: 520px){
    .wa-wing{ padding:10px; border-radius:999px; }
    .wa-wing__text{ display:none; }
  }
  @media (max-width: 768px){
    body.has-bottom-nav .wa-wing{ bottom:76px; }
  }

  .footer-warning-row{ display:flex; align-items:flex-start; gap:12px; }
  .footer-warning .wm-link{ flex:0 0 auto; display:block; line-height:0; }
  .footer-warning .wm-link img{ width:46px; height:auto; display:block; }
  .footer-warning-text p{ margin:0; }
  .footer-warning-text p + p{ margin-top:6px; }

  /* =============================================
     Live Rolling
  ============================================= */
  #live-rolling .main-rolling-wrap{
    display:grid;
    grid-template-columns: 1fr 1fr;
    gap:16px; margin:0;
  }
  @media (max-width: 980px){
    #live-rolling .main-rolling-wrap{ grid-template-columns:1fr; }
  }
  #live-rolling .rolling-box{
    display:flex; flex-direction:column; min-height:0;
    background:#fff; border-radius:14px;
    box-shadow:0 0 15px rgba(162,162,162,.35);
    overflow:hidden; text-align:center;
    border:1px solid rgba(255,255,255,.08);
    position:relative;
  }
  #live-rolling .rolling-box[data-accent="withdraw"]{ --live-accent:#22c55e; }
  #live-rolling .rolling-box[data-accent="winner"]{  --live-accent:#f97316; }
  #live-rolling .rolling-box::after{
    content:""; position:absolute;
    top:0; left:0; right:0; height:4px;
    background:#9f1239;
  }
  #live-rolling .cs-section-title{
    display:flex; align-items:center; gap:10px;
    padding:14px 16px 10px; border-bottom:1px solid #eee;
  }
  #live-rolling .cs-section-title h3{ margin:0; font-size:16px; font-weight:800; }
  #live-rolling .live-badge{
    margin-left:auto;
    display:inline-flex; align-items:center; gap:6px;
    padding:4px 10px; border-radius:999px;
    font-weight:900; font-size:17px; color:#e11d48;
    background:rgba(225,29,72,.10); border:1px solid rgba(225,29,72,.25);
    animation:liveBlink 1s ease-in-out infinite;
  }
  #live-rolling .live-badge::before{
    content:""; width:8px; height:8px; border-radius:50%;
    background:#e11d48; box-shadow:0 0 0 rgba(225,29,72,.6);
    animation:livePulse 1.1s ease-out infinite;
  }
  @keyframes liveBlink{ 0%,100%{opacity:1} 50%{opacity:.55} }
  @keyframes livePulse{
    0%{box-shadow:0 0 0 0 rgba(225,29,72,.55)}
    70%{box-shadow:0 0 0 8px rgba(225,29,72,0)}
    100%{box-shadow:0 0 0 0 rgba(225,29,72,0)}
  }
  #live-rolling .Winner-rolling-list-head{
    display:grid; grid-template-columns:1fr 1fr 1fr 1fr 1.2fr;
    gap:8px; padding:10px 16px;
    font-weight:700; font-size:12px; color:#64748b;
    background:#fafafa; border-bottom:1px solid #eee; align-items:center;
  }
  #live-rolling .rolling-list-wrap{ height:400px; overflow:hidden; }
  #live-rolling ul{ margin:0; padding:0; list-style:none; }
  #live-rolling .Winner-rolling-list li{
    display:grid; grid-template-columns:1fr 1fr 1fr 1fr 1.2fr;
    gap:8px; padding:10px 16px;
    border-bottom:1px solid #f1f5f9; font-size:13px; align-items:center;
  }
  #live-rolling .win-amt em{ font-style:normal; opacity:.8; }
  #live-rolling .win-amt--hot{
    background-color:var(--surface-color); color:#fff;
    padding:4px 8px; border-radius:999px;
    display:inline-block; width:max-content;
  }
  #live-rolling .blink-effect{ animation:rgBlink 1.1s ease-in-out infinite; }
  @keyframes rgBlink{ 0%,100%{opacity:1} 50%{opacity:.45} }
  #live-rolling.content-section{
    background-color:var(--surface-color); padding:28px 0 40px; position:relative;
  }
  #live-rolling.content-section::before{
    content:""; position:absolute; top:0; left:0; right:0; height:3px;
    background:linear-gradient(90deg,rgba(255,255,255,.0),rgba(255,255,255,.35),rgba(255,255,255,.0));
  }
  #live-rolling .Winner-rolling-list li.hot-row{
    background:linear-gradient(90deg,#f97316,#e11d48,#a855f7,#22c55e,#f97316) !important;
    background-size:300% 100% !important;
    animation:hotShine 2.2s linear infinite !important;
    border-bottom-color:rgba(255,255,255,.25) !important;
  }
  #live-rolling .Winner-rolling-list li.hot-row span{
    color:#fff !important; font-weight:800 !important;
    text-shadow:0 1px 2px rgba(0,0,0,.25) !important;
  }
  @keyframes hotShine{
    0%  {background-position:0% 50%}
    100%{background-position:100% 50%}
  }

  /* =============================================
     Misc / Sidebar
  ============================================= */
  .quick-nav-icon-wrapper .quick-nav-icon-img{
    width:100%; height:100%; object-fit:contain; display:block;
  }
  .sidebar-box.cs-box{
    position:relative; overflow:hidden;
    display:flex; align-items:center; justify-content:space-between; gap:14px;
    padding:18px; border-radius:14px; color:#fff;
    background:linear-gradient(135deg,#6f2bff 0%,#a14bff 100%);
    box-shadow:0 8px 20px rgba(0,0,0,.12);
  }
  .sidebar-box.cs-box .cs-ribbon{
    position:absolute; left:-40px; top:12px; transform:rotate(-45deg);
    padding:6px 46px; font-size:12px; font-weight:800; letter-spacing:.5px;
    background:rgba(255,255,255,.22); border:1px solid rgba(255,255,255,.22);
  }
  .sidebar-box.cs-box .cs-text p{ margin:0 0 6px; font-size:12px; opacity:.95; }
  .sidebar-box.cs-box .phone-number{ font-size:22px; font-weight:900; letter-spacing:.5px; margin-bottom:6px; }
  .sidebar-box.cs-box .cs-hours{ font-size:12px; opacity:.9; line-height:1.35; }
  .sidebar-box.cs-box .cs-icon{
    flex:0 0 auto; width:44px; height:44px; border-radius:999px;
    display:flex; align-items:center; justify-content:center;
    font-size:18px; font-weight:900;
    background:radial-gradient(circle at 30% 30%,rgba(255,255,255,.55),rgba(255,255,255,.18));
    box-shadow:0 10px 18px rgba(0,0,0,.18); border:1px solid rgba(255,255,255,.25);
  }

  /* Live layout */
  #live-rolling .live-layout{
    display:grid; grid-template-columns:minmax(0,1fr) 340px;
    gap:16px; align-items:stretch;
  }
  #live-rolling .live-side{ display:flex; flex-direction:column; gap:14px; }
  #live-rolling .live-banner{
    display:block; border-radius:14px; overflow:hidden;
    box-shadow:0 0 15px rgba(162,162,162,.25);
  }
  #live-rolling .live-banner img{ width:100%; height:auto; display:block; }
  @media (max-width:980px){ #live-rolling .live-layout{grid-template-columns:1fr} }

  /* Lotto info */
  #lotto-info .grid-container{
    display:grid; grid-template-columns:minmax(0,1fr) 340px;
    gap:16px; align-items:stretch;
  }
  #lotto-info .lotto-cards-container{ min-width:0; }
  #lotto-info .sidebar{ display:flex; flex-direction:column; gap:14px; height:100%; min-width:0; }
  #lotto-info .sidebar-banner-fill{
    flex:1; min-height:180px; border-radius:14px; overflow:hidden;
    box-shadow:0 0 15px rgba(162,162,162,.25); background:#fff;
  }
  #lotto-info .sidebar-banner-fill .swiper,
  #lotto-info .sidebar-banner-fill .swiper-wrapper,
  #lotto-info .sidebar-banner-fill .swiper-slide{ height:100%; }
  #lotto-info .sidebar-banner-fill img{
    width:100%; height:100%;
    object-fit:contain !important; object-position:center; display:block;
  }
  #lotto-info a.sidebar-banner-fill{ display:block; }
  #lotto-info .sidebar-banner-fill .swiper-slide > a{ display:block; width:100%; height:100%; }
  @media (max-width:980px){
    #lotto-info .grid-container{grid-template-columns:1fr}
    #lotto-info .sidebar-banner-fill{flex:none; height:160px;}
  }
  @media (max-width:620px){
    #live-rolling .rolling-list-wrap{height:300px}
  }
  @media (max-width:420px){
    #lotto-info .countdown-timer .time-box{flex:1 1 calc(50% - 8px)}
  }

  /* Hours grid */
  .sidebar .promo-box .hours2{
    margin:6px 0 0;
    display:grid; grid-template-columns:auto 1fr;
    column-gap:10px; row-gap:2px;
  }
  .sidebar .promo-box .hours2 .k{ opacity:.85; font-weight:300; font-size:11px; }
  .sidebar .promo-box .hours2 .v{ font-weight:700; font-size: 13px; font-variant-numeric:tabular-nums; white-space:nowrap; }

  /* =============================================
    leftBttnBox
  ============================================= */
/* === 좌측 배너 영역 모바일/pc 구분 === */
/* 모바일에서 숨김 */
.evt-banner-pc {
    display: block !important;
}
@media (max-width: 768px) {
    .evt-banner-pc {
        display: none !important;
    }
}
#leftBttnBox,
#leftBttnBoxPc {
	width: auto;
	height: auto;
	position:fixed;
	left: -10px;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	z-index: 999;
}
#evtDockPro, #manualBttn, #appDw {transform: translateX(0); transition: transform 260ms ease; }
#evtDockPro:hover, #manualBttn:hover, #appDw:hover {transform: translateX(6px);}
.leftMenuArrow {display: none;}

@media (max-width:768px){
#leftBttnBox, #leftBttnBoxPc {transition: transform 400ms cubic-bezier(0.4, 0, 0.2, 1);}
#leftBttnBox.hidden {transform: translateX(calc(-100% - -17px));}
.leftMenuArrow {
    width: 34px;
	height:auto;
	background: #fff;
	border: 1px solid #e1e1e1;
	border-radius: 0 8px 8px 0;
	box-shadow: 0 4px 8px rgba(0,0,0,.1);
	color: #555;
	cursor: pointer;
	display: flex;
	font-size: 13px;
	font-weight: bold;
	align-items: center;
	gap: 4px;
    flex-direction: row-reverse;
    justify-content: center;
    transition: left 260ms ease;
    padding: 0.825rem 0 0.5rem;
	position:fixed;
	left: 0px;
	overflow: hidden;
	z-index:999;
	writing-mode: vertical-rl;
    text-orientation: mixed;
}
.leftMenuArrow i {
	color: #008f28;
    display: block;
    font-size: 24px;
}
.leftMenuArrow span {
	min-height: 40px;
	text-align: center;
}
}
  /* =============================================
    APP DOWNLOAD
  ============================================= */
  #evtDockPro,
  #manualBttn,
  #appDw {
	display:block;
    width:44px; height:auto; z-index:999;
    transition:all 260ms ease;
	border: 1px solid #e1e1e1;
	border-radius:8px;
	box-shadow:0 4px 8px rgba(0,0,0,.1);
	overflow: hidden;
  }
 #manualBttn a,
 #appDw a {
	width:100%; height:auto;
	background: rgba(255,255,255,.88);
	color: #555;
	display:flex;
	font-size:.9rem;
	line-height: 14px;
    writing-mode: vertical-rl;
    text-orientation: mixed;
	flex-direction: row;
    justify-content: space-evenly;
    align-items: center;
	padding: 0.825rem 0;
 }
  #manualBttn a i,
  #manualBttn a span,
  #appDw a i,
  #appDw a span {
	width: 100%;
	height: auto;
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding-left: 0.5rem;
 }
  #manualBttn a span,
  #appDw a span {
   font-weight: bold;
	padding-top: 0.825rem;
 }
#manualBttn a i,
#appDw a i {
    border-bottom: 1px solid #ddd;
	padding-bottom: 0.825rem;
}
#manualBttn a i::before,
#appDw a i::before {
    display: block;
	color: #008f28;
}
 #manualBttn:hover a span,
 #appDw:hover a span {color: #008f28;}

  /* =============================================
     EVENT DOCK
  ============================================= */
#evtDockPro{margin: 1rem 0;}
  #evtDockPro .evt-dock__btn {
    width:100%; height:100%;
	background:rgba(255,255,255,.92);
	border-radius:8px;
	border: none;
    display: flex;
    padding:0.825rem; cursor:pointer;
    overflow:hidden;
	outline: unset;
	align-items: center;
    flex-direction: column;
	justify-content: space-evenly;
  }
#evtDockPro .evt-dock__hint,
#evtDockPro i {padding-left: 0.6rem;}
#evtDockPro .evt-dock__hint {
    width: 100%;
	align-items: center;
    background: rgba(255,255,255,.88);
    color: #555;
	display: flex;
    font-size:.9rem;
    font-weight: 900;
    writing-mode: vertical-rl;
    text-orientation: mixed;
	font-family: 'Noto Sans KR';
	padding-bottom: 0.825rem;
}
  #evtDockPro i {
	width: 100%;
	color: #ffa000;
  	border-top: 1px solid #eee;
	display: flex;
	font-size: 1rem;
	padding-top: 0.825rem;
	justify-content: center;	
}
#evtDockPro:hover .evt-dock__hint {color: #ffa000;}

  /* =============================================
     EVENT MODAL
  ============================================= */
  #evtModal{
    position:fixed; inset:0; z-index:99999;
    visibility:hidden; pointer-events:none;
  }
  #evtModal.is-open{ visibility:visible; pointer-events:auto; }

  #evtModal .evt-modal__backdrop{
    position:absolute; inset:0;
    background:rgba(2,6,23,.55); opacity:0;
    transition:opacity 380ms ease;
  }
  #evtModal.is-show .evt-modal__backdrop{ opacity:1; }

  /* Panel — PC에서 작게 (400px) */
  #evtModal .evt-modal__panel{
    position:fixed; left:50%; top:50%;
    width:min(400px, 92vw);
    max-height:80vh;
    border-radius:18px; overflow:hidden;
    background:#fff;
    box-shadow:0 28px 72px rgba(0,0,0,.32);
    border:1px solid rgba(15,23,42,.08);
    transform:translate3d(-50%,-50%,0) scale(1);
    opacity:1; filter:none;
    will-change:transform,opacity,filter;
    transition:
      transform 520ms cubic-bezier(.22,1,.36,1),
      opacity   360ms ease,
      filter    360ms ease;
  }
  #evtModal.mode-center:not(.is-show) .evt-modal__panel{
    transform:translate3d(-50%,-50%,0) scale(.94);
    opacity:0; filter:blur(6px);
  }
  #evtModal.mode-slide:not(.is-show) .evt-modal__panel{
    transform:translate3d(-62%,-50%,0) scale(.94);
    opacity:0; filter:blur(6px);
  }
  #evtModal.is-show .evt-modal__panel{
    transform:translate3d(-50%,-50%,0) scale(1);
    opacity:1; filter:blur(0);
  }

  /* Close X */
  #evtModal .evt-modal__close{
    position:absolute; top:10px; right:10px;
    width:34px; height:34px; border-radius:999px;
    border:1px solid rgba(15,23,42,.12);
    background:rgba(255,255,255,.92);
    font-size:18px; line-height:1; font-weight:900; cursor:pointer;
    box-shadow:0 4px 12px rgba(0,0,0,.12);
    display:flex; align-items:center; justify-content:center;
    color:#334155; z-index:2;
    transition:background .15s, transform .15s;
  }
  #evtModal .evt-modal__close:hover{ background:#fff; transform:scale(1.08); }

  /* Image wrap */
  #evtModal .evt-modal__imgwrap{
    display:block; width:100%;
    max-height:calc(80vh - 56px);
    overflow:auto; overscroll-behavior:contain; background:#fff;
  }
  #evtModal .evt-modal__imgwrap img{
    width:100%; height:auto; display:block; object-fit:contain;
  }

  /* Footer — 오늘하루 | 닫기 버튼 2분할 */
  #evtModal .evt-modal__footer{
    display:flex; align-items:stretch; height:56px;
    border-top:1px solid rgba(15,23,42,.07);
    background:#f8fafc; overflow:hidden;
  }
  #evtModal .evt-footer__hide{
    flex:1;
    display:flex; align-items:center; justify-content:center; gap:8px;
    background:none; border:none;
    border-right:1px solid rgba(15,23,42,.08);
    font-size:13px; font-weight:700; color:#64748b;
    cursor:pointer; letter-spacing:-.1px;
    transition:background .18s, color .18s; padding:0 16px;
  }
  #evtModal .evt-footer__hide:hover{ background:#f1f5f9; color:#334155; }
  #evtModal .evt-footer__hide .fh-icon{
    width:22px; height:22px; border-radius:999px;
    border:2px solid #cbd5e1;
    display:flex; align-items:center; justify-content:center;
    flex-shrink:0; color:transparent;
    transition:border-color .18s, background .18s;
  }
  #evtModal .evt-footer__hide.is-checked .fh-icon{
    border-color:#6366f1; background:#6366f1; color:#fff;
  }
  #evtModal .evt-footer__hide.is-checked{ color:#4f46e5; }
  #evtModal .evt-footer__close{
    flex:1;
    display:flex; align-items:center; justify-content:center; gap:7px;
    background:none; border:none;
    font-size:13px; font-weight:800; color:#1e293b;
    cursor:pointer; letter-spacing:-.1px;
    transition:background .18s; padding:0 16px;
  }
  #evtModal .evt-footer__close:hover{ background:#f1f5f9; }
  #evtModal .evt-footer__close svg{ opacity:.55; flex-shrink:0; }

  body.evt-lock{ overflow:hidden; }

  /* 이벤트 모달 내 Swiper */
.evt-swiper-wrap {
  padding: 0 !important;   /* imgwrap 패딩 제거 */
  overflow: visible !important;
}
.evt-swiper-wrap .swiper { width: 100%; }
.evt-swiper-wrap .swiper-slide a { display: block; }
.evt-swiper-wrap .swiper-slide img { width: 100%; height: auto; display: block; }

/* 화살표 색상 보정 (흰 배경 위) */
.evt-swiper-wrap .swiper-button-prev,
.evt-swiper-wrap .swiper-button-next {
  color: #e11d48;
}
.evt-swiper-wrap .swiper-pagination-bullet-active {
  background: #e11d48;
}
/* =============================================
   Phone Number Modal
============================================= */
#phoneModal {
    position: fixed; inset: 0; z-index: 999999;
    visibility: hidden; pointer-events: none;
    display: flex; align-items: center; justify-content: center;
}
#phoneModal.is-open { visibility: visible; pointer-events: auto; }

#phoneModal .pm-backdrop {
    position: absolute; inset: 0;
    background: rgba(2, 6, 23, .60);
    opacity: 0; transition: opacity 350ms ease;
}
#phoneModal.is-show .pm-backdrop { opacity: 1; }

#phoneModal .pm-panel {
    position: relative; z-index: 1;
    width: min(460px, 92vw);
    border-radius: 20px;
    overflow: hidden;   /* ← visible → hidden 복구 */
    background: #fff;
    box-shadow: 0 28px 72px rgba(0,0,0,.28);
    border: 1px solid rgba(15,23,42,.08);
    transform: scale(.92) translateY(16px);
    opacity: 0;
    transition: transform 460ms cubic-bezier(.22,1,.36,1), opacity 340ms ease;
}

#phoneModal.is-show .pm-panel {
    transform: scale(1) translateY(0); opacity: 1;
}

#phoneModal .pm-header {
    background: linear-gradient(135deg, #00920c 0%, #005532 100%);
    padding: 28px 24px 22px;
    text-align: center; color: #fff;
    border-radius: 20px 20px 0 0;   /* ← 추가 */
}

#phoneModal .pm-header .pm-icon {
    font-size: 38px; margin-bottom: 10px;
    filter: drop-shadow(0 2px 6px rgba(0,0,0,.25));
}
#phoneModal .pm-header h3 {
    margin: 0 0 6px;
    font-size: 17px; font-weight: 900; line-height: 1.35;
}
#phoneModal .pm-header p {
    margin: 0; font-size: 12px; opacity: .88; font-weight: 600; line-height: 1.5;
}

#phoneModal .pm-body { padding: 20px 16px 0; }
#phoneModal .pm-label {
    display: block;
    font-size: 13px; font-weight: 800; color: #334155; margin-bottom: 8px;
}

/* ── 국가코드 + 번호 입력 래퍼 ── */
#phoneModal .pm-tel-wrap {
     display: flex; gap: 6px; align-items: stretch;
    width: 100%; box-sizing: border-box;
}
#phoneModal .pm-number-wrap { flex: 1; }
#phoneModal .pm-input {
    width: 100%; height: 48px; border-radius: 10px;
    border: 1.5px solid #e2e8f0;
    padding: 0 12px; font-size: 14px; font-weight: 700;
    color: #1e293b; outline: none; font-family: inherit;
    box-sizing: border-box;   /* ← 추가 */
    transition: border-color .18s, box-shadow .18s;
}
#phoneModal .pm-input:focus {
    border-color: #e11d48;
    box-shadow: 0 0 0 3px rgba(225,29,72,.12);
}
#phoneModal .pm-input.is-error { border-color: #f97316; }

/* ── 국가코드 선택기 ── */
#phoneModal .pm-country-wrap {
    position: relative; flex: 0 0 auto;
}
#phoneModal .pm-country-icon {
    position: absolute; left: 10px; top: 50%;
    transform: translateY(-50%);
    font-size: 13px; color: #94a3b8;
    pointer-events: none; z-index: 1;
}
#phoneModal .pm-country-arrow {
    position: absolute; right: 8px; top: 50%;
    transform: translateY(-50%);
    pointer-events: none; color: #94a3b8; font-size: 10px;
}
#phoneModal .pm-country-select {
    display: flex; align-items: center;
    height: 48px; padding: 0 22px 0 28px;
    background: #f8fafc;
    border: 1.5px solid #e2e8f0;
    color: #1e293b; border-radius: 10px;
    font-size: 13px; font-weight: 700;
    cursor: pointer; white-space: nowrap;
    width: 110px;        /* min-width → 고정 width */
    flex-shrink: 0;      /* 줄어들지 않게 */
    box-sizing: border-box;
    transition: border-color .18s, box-shadow .18s;
    user-select: none;
}

#phoneModal .pm-country-select:focus,
#phoneModal .pm-country-select[aria-expanded="true"] {
    border-color: #e11d48;
    box-shadow: 0 0 0 3px rgba(225,29,72,.12);
    outline: none;
}

/* ── 드롭다운 패널 ── */
.pm-country-dropdown {
    display: none;
    position: fixed;
    z-index: 1000000;
    width: 280px;
    max-width: calc(100vw - 24px);
    background: #fff;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 12px 36px rgba(0,0,0,.18);
    padding: 10px;
    box-sizing: border-box;
    font-family: inherit;
}
.pm-country-dropdown.open { display: block; }

.pm-country-search-wrap {
    position: relative;
    margin-bottom: 6px;
}
.pm-country-search-wrap i {
    position: absolute;
    left: 10px; top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 12px;
}
.pm-country-dropdown #pmCountrySearch {
    width: 100%;
    padding: 8px 10px 8px 28px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #1e293b;
    border-radius: 8px;
    outline: none;
    font-size: 13px;
    box-sizing: border-box;
    transition: border-color .18s;
}
.pm-country-dropdown #pmCountrySearch:focus { border-color: #e11d48; }
.pm-country-dropdown #pmCountrySearch::placeholder { color: #94a3b8; }

.pm-country-dropdown .pm-country-list {
    max-height: 220px;
    overflow-y: auto;
    overscroll-behavior: contain;
    margin: 0;
    padding: 0;
    list-style: none;
}
.pm-country-dropdown .pm-country-list li {
    padding: 8px 10px;
    border-radius: 7px;
    cursor: pointer;
    font-size: 13px;
    color: #1e293b;
    display: flex;             /* ← 핵심: flex로 분리 */
    align-items: center;
    gap: 8px;
}
.pm-country-dropdown .pm-country-list li:hover,
.pm-country-dropdown .pm-country-list li.active {
    background: rgba(225,29,72,.08);
}
.pm-country-dropdown .pm-country-list .cc-flag {
    font-size: 16px;
    flex-shrink: 0;
}
.pm-country-dropdown .pm-country-list .cc-name {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 13px;
    color: #334155;
}
.pm-country-dropdown .pm-country-list .cc-code {
    font-weight: 700;
    flex-shrink: 0;
    font-size: 13px;
    color: #1e293b;
}
.pm-country-dropdown .pm-country-list .no-results {
    color: #94a3b8;
    font-size: 12px;
    padding: 8px 10px;
}

@media (max-width: 520px) {
    #phoneModal .pm-country-dropdown {
        width: calc(100vw - 24px);
    }
}


#phoneModal .pm-country-dropdown.open { display: block; }

#phoneModal .pm-country-search-wrap {
    position: relative; margin-bottom: 6px;
}
#phoneModal .pm-country-search-wrap i {
    position: absolute; left: 10px; top: 50%;
    transform: translateY(-50%);
    color: #94a3b8; font-size: 12px;
}
#phoneModal #pmCountrySearch {
    width: 100%; padding: 8px 10px 8px 28px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #1e293b; border-radius: 8px;
    outline: none; font-size: 13px;
    transition: border-color .18s;
}
#phoneModal #pmCountrySearch:focus { border-color: #e11d48; }
#phoneModal #pmCountrySearch::placeholder { color: #94a3b8; }

#phoneModal .pm-country-list {
    max-height: 220px;
    overflow-y: auto;
    overscroll-behavior: contain;  /* ← 추가: 스크롤 전파 방지 */
    margin: 0; padding: 0; list-style: none;
}

#phoneModal .pm-country-list li {
    padding: 7px 10px; border-radius: 7px;
    cursor: pointer; font-size: 13px; color: #1e293b;
    display: flex; align-items: center; gap: 8px;
}
#phoneModal .pm-country-list li:hover,
#phoneModal .pm-country-list li.active {
    background: rgba(225,29,72,.08);
}
#phoneModal .pm-country-list .cc-flag { font-size: 16px; flex-shrink: 0; }
#phoneModal .pm-country-list .cc-name {
    flex: 1; overflow: hidden; text-overflow: ellipsis;
    white-space: nowrap; font-size: 12px; color: #64748b;
}
#phoneModal .pm-country-list .cc-code { font-weight: 700; flex-shrink: 0; font-size: 12px; }
#phoneModal .pm-country-list .no-results {
    color: #94a3b8; font-size: 12px; padding: 8px 10px;
}

/* ── 하단 버튼 영역 ── */
#phoneModal .pm-footer-btns {
    padding: 16px 20px 0;
}
#phoneModal .pm-submit {
    width: 100%; height: 48px;
    border-radius: 10px; border: none; cursor: pointer;
    background: linear-gradient(135deg, #00920c 0%, #005532 100%);
    color: #fff; font-size: 15px; font-weight: 900;
    box-shadow: 0 4px 12px rgba(225,29,72,.30);
    transition: filter .18s, transform .15s;
    font-family: inherit;
}
#phoneModal .pm-submit:hover { filter: brightness(1.08); transform: translateY(-1px); }
#phoneModal .pm-submit:disabled { opacity: .6; cursor: not-allowed; transform: none; }

#phoneModal .pm-error-msg {
    margin: 8px 0 0;
    font-size: 12px; font-weight: 700; color: #f97316; min-height: 18px;
}

#phoneModal .pm-footer {
    display: flex; align-items: center; justify-content: center;
    padding: 8px 20px 18px;
}
#phoneModal .pm-skip {
    background: none; border: none; cursor: pointer;
    font-size: 12px; color: #94a3b8; font-weight: 700;
    padding: 6px 10px; border-radius: 6px;
    transition: color .15s, background .15s; font-family: inherit;
}
#phoneModal .pm-skip:hover { color: #64748b; background: #f1f5f9; }

/* ── 성공 화면 ── */
#phoneModal .pm-success {
    display: none; padding: 40px 24px; text-align: center;
}
#phoneModal .pm-success .pm-success-icon { font-size: 44px; margin-bottom: 12px; }
#phoneModal .pm-success h4 {
    margin: 0 0 8px; font-size: 17px; font-weight: 900; color: #1e293b;
}
#phoneModal .pm-success p { margin: 0; font-size: 13px; color: #64748b; font-weight: 600; }

#phoneModal .pm-close {
    position: absolute;
    top: 10px; right: 10px;
    width: 32px; height: 32px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,.35);
    background: rgba(255,255,255,.20);
    color: #fff;
    font-size: 16px; font-weight: 900;
    cursor: pointer; z-index: 2;
    display: flex; align-items: center; justify-content: center;
    transition: background .15s, transform .15s;
}
#phoneModal .pm-close:hover {
    background: rgba(255,255,255,.35);
    transform: scale(1.08);
}
/* =============================================
   APP DOWNLOAD + 250 INR Badge (세로 슬림 - 컴팩트)
============================================= */
#appDwWrap {
    position: relative;
    display: flex;
    align-items: stretch;
    gap: 6px;
}
#appDwWrap #appDw {
    flex: 0 0 44px;
}

#getBonusBadge {
    position: relative;
    flex: 0 0 auto;
    width: 28px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 14px rgba(255, 87, 34, .45);
    background: linear-gradient(135deg, #ff9800 0%, #ff5722 50%, #e91e63 100%);
    background-size: 200% 200%;
    animation: bonusGradient 3s ease infinite, bonusFloatX 2.2s ease-in-out infinite;
    border: 1px solid rgba(255,255,255,.4);
    cursor: pointer;
    text-decoration: none;
}

#getBonusBadge::before {
    content: "";
    position: absolute;
    top: -50%; left: -50%;
    width: 200%; height: 200%;
    background: linear-gradient(
        45deg,
        transparent 30%,
        rgba(255,255,255,.45) 50%,
        transparent 70%
    );
    animation: bonusShine 2.8s linear infinite;
    pointer-events: none;
    z-index: 1;
}

#getBonusBadge::after {
    content: "";
    position: absolute;
    left: -5px;
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
    width: 8px;
    height: 8px;
    background: #ff9800;
    z-index: 1;
}

/* 핵심: 컨테이너에 꽉 차게, 위→아래로 자연스럽게 배치 */
#getBonusBadge .bonus-inner {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;   /* ← 가운데 정렬 */
    gap: 4px;
    padding: 6px 0;
    color: #fff;
    text-align: center;
    text-shadow: 0 1px 2px rgba(0,0,0,.3);
}

#getBonusBadge .bonus-gift {
    font-size: 0.85rem;
    line-height: 1;
    animation: bonusBounce 1.2s ease-in-out infinite;
    flex-shrink: 0;
}

/* 세로 글자 - 폭 안에 들어가도록 */
#getBonusBadge .bonus-amount {
    font-size: 0.62rem;
    font-weight: 900;
    line-height: 1;
    letter-spacing: 0.2px;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    white-space: nowrap;
    flex-shrink: 1;
    min-height: 0;
}

#getBonusBadge .bonus-label {
    font-size: 0.45rem;
    font-weight: 800;
    line-height: 1;
    letter-spacing: 0.3px;
    padding: 2px 4px;
    background: rgba(255,255,255,.2);
    border-radius: 999px;
    flex-shrink: 0;
}

#getBonusBadge:hover {
    transform: scale(1.08);
    transition: transform 0.2s ease;
}

@keyframes bonusGradient {
    0%, 100% { background-position: 0% 50%; }
    50%      { background-position: 100% 50%; }
}
@keyframes bonusShine {
    0%   { transform: translateX(-100%) translateY(-100%); }
    100% { transform: translateX(100%) translateY(100%); }
}
@keyframes bonusFloatX {
    0%, 100% { transform: translateX(0); }
    50%      { transform: translateX(3px); }
}
@keyframes bonusBounce {
    0%, 100% { transform: scale(1) rotate(-5deg); }
    50%      { transform: scale(1.2) rotate(5deg); }
}
/* =============================================
   EVENT DOCK - 화려한 그라데이션 웨이브 버전
============================================= */
#evtDockPro {
    margin: 1rem 0;
    border: 1px solid rgba(255,255,255,.4) !important;
    background: linear-gradient(135deg, 
        #009d47 0%, 
        #346bc1 25%, 
        #f093fb 50%, 
        #f5576c 75%, 
        #009d47 100%
    ) !important;
    background-size: 300% 300% !important;
    animation: evtWave 6s ease infinite;
    box-shadow: 0 4px 16px rgba(118, 75, 162, .35) !important;
    position: relative;
}

#evtDockPro::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(
        120deg,
        transparent 30%,
        rgba(255,255,255,.35) 50%,
        transparent 70%
    );
    background-size: 200% 200%;
    animation: evtShine 3s linear infinite;
    pointer-events: none;
    border-radius: 8px;
    z-index: 1;
}

#evtDockPro .evt-dock__btn {
    background: transparent !important;
    position: relative;
    z-index: 2;
}

#evtDockPro .evt-dock__hint {
    background: transparent !important;
    color: #fff !important;
    text-shadow: 0 1px 3px rgba(0,0,0,.3);
    font-weight: 900;
    letter-spacing: 0.5px;
}

#evtDockPro i {
    color: #fff !important;
    border-top: 1px solid rgba(255,255,255,.35) !important;
    text-shadow: 0 1px 3px rgba(0,0,0,.3);
    animation: evtPulse 1.5s ease-in-out infinite;
}

#evtDockPro:hover {
    box-shadow: 0 6px 20px rgba(118, 75, 162, .55) !important;
}
#evtDockPro:hover .evt-dock__hint {
    color: #fff !important;
}

@keyframes evtWave {
    0%   { background-position: 0% 50%; }
    50%  { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}
@keyframes evtShine {
    0%   { background-position: -200% -200%; }
    100% { background-position: 200% 200%; }
}
@keyframes evtPulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50%      { transform: scale(1.15); opacity: 0.85; }
}

@media (min-width: 769px) {
    .support-links-wrapper {
        display: flex !important;
        justify-content: center !important;
        flex-wrap: wrap;
        gap: 20px;
    }
}

/* ═══════════════ Quick Total v3 — Premium Clean ═══════════════ */
.quick-total-v3 {
  padding-top: 20px !important;
  padding-bottom: 40px !important;
  position: relative;
  background-color: transparent;
}

/* Header */
.qt-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  padding: 0 4px;
}
.qt-header-left {
  display: flex;
  align-items: center;
  gap: 12px;
}
.qt-pulse {
  position: relative;
  width: 12px;
  height: 12px;
  display: inline-block;
}
.qt-pulse-dot {
  position: absolute;
  inset: 0;
  background: #e11d48; /* 사이트 메인 컬러 매칭 */
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(225, 29, 72, 0.4);
}
.qt-pulse::before,
.qt-pulse::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1.5px solid rgba(225, 29, 72, 0.6);
  animation: qtPulseRing 2s cubic-bezier(0.215, 0.61, 0.355, 1) infinite;
}
.qt-pulse::after { animation-delay: 1s; }
@keyframes qtPulseRing {
  0%   { transform: scale(0.6); opacity: 1; }
  100% { transform: scale(2.2); opacity: 0; }
}
.qt-live-text {
  font-size: 15px;
  font-weight: 800;
  color: #1e293b;
  letter-spacing: 0.5px;
}
.qt-updated {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  color: #e11d48;
  padding: 6px 12px;
  background: rgba(225, 29, 72, 0.08);
  border-radius: 20px;
}
.qt-updated i {
  font-size: 11px;
}

/* Grid */
.quick-total-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

/* Card Themes */
.qt-card[data-accent="users"]    { --accent: #3b82f6; --accent-bg: rgba(59, 130, 246, 0.12); }
.qt-card[data-accent="winners"]  { --accent: #f59e0b; --accent-bg: rgba(245, 158, 11, 0.12); }
.qt-card[data-accent="winnings"] { --accent: #10b981; --accent-bg: rgba(16, 185, 129, 0.12); }
.qt-card[data-accent="deposit"]  { --accent: #8b5cf6; --accent-bg: rgba(139, 92, 246, 0.12); }

/* Card Body */
.qt-card {
  background: #ffffff;
  border-radius: 20px;
  border: 1px solid rgba(0, 0, 0, 0.04);
  box-shadow: 0 8px 24px rgba(149, 157, 165, 0.15);
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Top Color Border Effect */
.qt-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--accent);
  opacity: 0.8;
  transition: opacity 0.4s;
}

.qt-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 32px rgba(149, 157, 165, 0.25);
}
.qt-card:hover::before {
  opacity: 1;
}

/* Inner Layout */
.qt-card-inner {
  padding: 26px 22px;
  display: flex;
  align-items: center;
  gap: 18px;
}

/* Icon Wrap */
.qt-icon-wrap {
  width: 58px;
  height: 58px;
  flex-shrink: 0;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-bg);
  color: var(--accent);
  font-size: 24px;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.qt-card:hover .qt-icon-wrap {
  transform: scale(1.1) rotate(5deg);
}

/* Content */
.qt-content {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}
.qt-label {
  font-size: 12px;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.qt-value {
  font-size: 26px;
  font-weight: 800;
  color: #0f172a !important;
  -webkit-text-fill-color: currentcolor !important;
  background: none !important;
  line-height: 1.1;
  font-family: inherit !important; /* 기존 특수 폰트 제거, 사이트 기본 폰트 무조건 따라가기 */
  letter-spacing: -0.5px;
  margin-bottom: 6px;
  text-shadow: none !important;
  transition: color 0.2s;
}

.qt-card:hover .qt-value {
  color: var(--accent) !important;
  -webkit-text-fill-color: var(--accent) !important;
}

/* Trend Indicator */
.qt-trend {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 600;
  color: #94a3b8;
}
.qt-spark {
  display: block;
  width: 6px !important;
  height: 6px !important;
  min-width: 6px !important;
  min-height: 6px !important;
  max-width: 6px !important;
  max-height: 6px !important;
  flex: 0 0 6px !important; /* 플렉스박스 안에서 크기가 줄어들거나 늘어나는 것 완벽 차단 */
  border-radius: 50% !important;
  background: var(--accent);
  box-shadow: 0 0 6px var(--accent);
  animation: qtSpark 2s infinite;
}

@keyframes qtSpark {
  0%, 100% { opacity: 1; transform: scale(1);   }
  50%      { opacity: 0.4; transform: scale(1.3); }
}

/* Count Animation */
.qt-value.is-counting {
  animation: qtFlick 0.15s ease;
}
@keyframes qtFlick {
  0%   { opacity: 0.5; transform: translateY(2px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* Responsive */
@media (max-width: 1024px) {
  .quick-total-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .qt-value { font-size: 24px; }
}
@media (max-width: 540px) {
  .qt-header { margin-bottom: 16px; }
  .qt-live-text { font-size: 14px; }
  .qt-updated { font-size: 10px; padding: 5px 10px; }
  .quick-total-grid { gap: 12px; }
  .qt-card-inner { padding: 20px 16px; gap: 14px; }
  .qt-icon-wrap { width: 48px; height: 48px; font-size: 20px; border-radius: 14px; }
  .qt-value { font-size: 20px; }
  .qt-label { font-size: 11px; }
}
@media (max-width: 380px) {
  .quick-total-grid { grid-template-columns: 1fr; }
  .qt-icon-wrap { width: 54px; height: 54px; font-size: 22px; }
  .qt-value { font-size: 24px; }
}

/* Entrance Animation */
@keyframes qtFadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.qt-card {
  animation: qtFadeUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) backwards;
}
.qt-card:nth-child(1) { animation-delay: 0.05s; }
.qt-card:nth-child(2) { animation-delay: 0.15s; }
.qt-card:nth-child(3) { animation-delay: 0.25s; }
.qt-card:nth-child(4) { animation-delay: 0.35s; }