.game-card, .popup-content {
    box-shadow : 0 0 15px rgba(0, 0, 0, .2);
  }
  .nav-menu, .popup-content button {
    transition : background-color .3s;
  }
  .bar, .nav-menu {
    white-space : nowrap;
  }
  body {
    max-width : 1140px;
    font-family : Roboto, sans-serif;
    background-color : #212121;
    color : #fff;
    margin : auto;
    padding : 10px;
  }
  .header {
    display : flex;
    flex-direction : column;
    align-items : center;
    text-align : center;
    margin-bottom : 20px;
  }
  .header img.logo {
    max-width : 150px;
    margin-bottom : 20px;
  }
  .header img.banner {
    max-width : 100%;
    margin-bottom : 20px;
    border-radius: 10px;
  }
  .logo-container {
    display : flex;
    align-items : center;
    justify-content : space-between;
    width : 100%;
  }
  .rtp-update {
    text-align : right;
    font-size : .85em;
    color : #fc0;
  }
  .header .buttons a, .nav-menu {
    color : #fff;
    text-decoration : none;
    text-align : center;
  }
  .header .buttons {
    display : grid;
    grid-template-columns : 1fr 1fr;
    gap : 20px;
    width : 100%;
    margin : 0 auto 20px;
  }
  .header .buttons a {
    background-color : #2F3645;
    padding : 10px 20px;
    border-radius : 5px;
    font-weight : 700;
  }
  .header .buttons a.daftar, .header .search button {
    background-color : #2F3645;
    color : #fff;
  }
  .header .search {
    display : grid;
    grid-template-columns : 1fr auto;
    gap : 10px;
    width : 100%;
    margin : 0 auto 20px;
  }
  .header .search input {
    padding : 10px;
    border-radius : 5px;
    border : none;
    width : 100%;
  }
  .header .search button, .nav-menu {
    padding : 10px 20px;
    font-weight : 700;
  }
  .header .search button {
    border-radius : 5px;
    border : none;
    cursor : pointer;
    width : 100%;
  }
  .nav-wrapper {
    border : 12px solid #2F3645;
    overflow-x : auto;
    max-width : 100%;
    margin : 0 auto;
    scrollbar-width : thin;
    scrollbar-color : #000000 #2F3645;
  }
  .game-card img {
    cursor: pointer;
}

  .nav-container {
    display : grid;
    grid-template-rows : repeat(2, auto);
    grid-auto-flow : column;
    gap : 10px;
    background-color : #2F3645;
    width : max-content;
  }
  .nav-menu {
    margin : 5px 0;
    border-radius : 20px;
    background-color : #000000;
  }
  .nav-menu:hover {
    background-color : #2F3645;
  }
  .nav-wrapper::-webkit-scrollbar {
    height : 8px;
  }
  .nav-wrapper::-webkit-scrollbar-track {
    background : #2F3645;
  }
  .nav-wrapper::-webkit-scrollbar-thumb {
    background-color : #000000;
    border-radius : 10px;
    border : 2px solid #2F3645;
  }
  .nav-wrapper::-webkit-scrollbar-thumb:hover {
    background-color : #2F3645;
  }
  .container {
    width : 100%;
    max-width : 1140px;
    margin : auto;
    display : grid;
    grid-template-columns : repeat(auto-fit, minmax(200px, 1fr));
    gap : 15px;
  }
  .game-card {
    background : #000000;
    padding : 10px;
    border-radius : 12px;
    text-align : center;
  }
  .game-card img {
    width : 100%;
    border-top-left-radius : 12px;
    border-top-right-radius : 12px;
  }
  .game-title {
    background : #2F3645;
    min-height : 24px;
    font-size : .7em;
    font-weight : 700;
    padding : 5px;
    color : #fc0;
    text-transform : uppercase;
    text-align : center;
    align-content : center;
  }
  .progress-bar-container {
    background : #144714;
    border-radius : 8px;
    overflow : hidden;
    margin : 10px 0;
    position : relative;
  }
  .progress-bar {
    height : 18px;
    text-align : right;
    padding-right : 10px;
    color : transparent;
    line-height : 18px;
    border-radius : 8px 0 0 8px;
    font-size : .9em;
    width : 0;
    transition : width 1s ease-in-out;
    background-image : linear-gradient(135deg, rgba(255, 255, 255, .2) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, .2) 50%, rgba(255, 255, 255, .2) 75%, transparent 75%, transparent);
    background-size : 40px 40px;
    animation : 1s linear infinite moveBackground;
  }
  @keyframes moveBackground {
    0% { background-position : 0 0; }
    100% { background-position : 40px 40px; }
  }
  .bar-chart .bar, .pola-slot-table .pola-result .success, .progress-bar.green {
    background-color : #4caf50;
  }
  .progress-bar.orange {
    background-color : #ff9800;
  }
  .pola-slot-table .pola-result .fail, .progress-bar.red {
    background-color : #f44336;
  }
  .progress-bar-text {
    position : absolute;
    top : 0;
    left : 0;
    width : 100%;
    height : 100%;
    display : flex;
    align-items : center;
    justify-content : center;
    color : #fff;
    font-weight : 700;
    font-size : .85em;
  }
  .game-info {
    min-height : 114px;
    background : #2F3645;
    padding : 10px;
    border-radius : 8px;
    margin-top : 10px;
  }
  .game-info p, .pola-slot {
    margin : 5px 0;
    font-size : .8em;
  }
  .gacor-time {
    color : #fc0;
    font-weight : 700;
  }
  .pola-slot {
    min-height : 84px;
    color : #fff;
    display : flex;
    justify-content : center;
    align-items : center;
    text-align : center;
    flex-direction : column;
  }
  .pola-slot-table {
    width : 100%;
    border-collapse : collapse;
  }
  .pola-slot-table td {
    padding : 5px;
    text-align : left;
    font-size : .8em;
  }
  .pola-slot-table .pola-value {
    text-align : right;
    font-weight : 700;
  }
  .pola-slot-table .pola-result, .popup-content {
    text-align : center;
  }
  .pola-slot-table .pola-result span {
    display : inline-block;
    width : 16px;
    height : 16px;
    border-radius : 50%;
  }
  .pola-unavailable {
    color : #f44;
    font-weight : 700;
  }
  @media screen and (max-width : 1024px) {
    .container {
      grid-template-columns : repeat(auto-fit, minmax(150px, 1fr));
      gap : 10px;
    }
    .game-card {
      padding : 10px;
    }
    .game-title {
      font-size : .9em;
    }
    .progress-bar, .progress-bar-text {
      font-size : .8em;
    }
    .progress-bar {
      height : 16px;
    }
    .game-info p, .pola-slot {
      font-size : .75em;
    }
  }
  @media screen and (max-width : 768px) {
    .container {
      grid-template-columns : repeat(auto-fit, minmax(120px, 1fr));
    }
    .game-card {
      padding : 8px;
    }
    .game-title {
      font-size : .8em;
    }
    .progress-bar, .progress-bar-text {
      font-size : .75em;
    }
    .progress-bar {
      height : 14px;
    }
    .game-info p, .pola-slot {
      font-size : .7em;
    }
  }
  .popup {
    display : none;
    position : fixed;
    z-index : 9;
    left : 0;
    top : 0;
    width : 100%;
    height : 100%;
    overflow : auto;
    background-color : rgba(0, 0, 0, .4);
    justify-content : center;
    align-items : center;
  }
  .popup-container {
    padding : 20px;
    border : none;
    width : auto;
  }
  .popup-content {
    background-color : #fff;
    border-radius : 8px;
    padding : 20px;
    max-width : 400px;
    margin : auto;
  }
  .popup-content h2 {
    font-size : 24px;
    margin-bottom : 20px;
    color : #333;
  }
  .popup-content input[type=number] {
    width : 100%;
    padding : 10px;
    margin-bottom : 15px;
    border-radius : 5px;
    border : 1px solid #ccc;
    font-size : 16px;
    box-sizing : border-box;
    background-color : #f9f9f9;
    transition : border-color .3s;
  }
  .popup-content button, .popup-content button:hover {
    background-color : #2F3645;
  }
  .popup-content input[type=number]:focus {
    border-color : #2F3645;
    outline : 0;
  }
  .popup-content button {
    width : 100%;
    color : #fff;
    padding : 10px;
    border-radius : 5px;
    border : none;
    font-size : 16px;
    cursor : pointer;
  }
  .simulation-result-container {
    margin-top : 20px;
    border-top : 1px solid #eee;
  }
  .simulation-result-container p {
    font-size : 16px;
    color : #333;
    margin : 10px 0;
  }
  .close {
    color : #aaa;
    float : right;
    font-size : 28px;
    font-weight : 700;
  }
  .close:focus, .close:hover, .simulasi-button {
    color : #fff;
    text-decoration : none;
    cursor : pointer;
  }
  .simulasi-button {
    background-color : #2F3645;
    padding : 5px 10px;
    border-radius : 5px;
    font-weight : 700;
    margin-top : 10px;
    display : inline-block;
  }
  .simulation-result-container {
    text-align : center;
    padding : 20px;
  }
  .probability-text {
    font-weight : 700;
    color : #4caf50;
  }
  .winning-amount-text {
    font-weight : 700;
    color : #ff9800;
  }
  .explanation {
    line-height : 1.5;
    margin-top : 20px;
    text-align : left;
    color : #555;
    font-size : .9em;
  }
  .bar-chart {
    margin-top : 20px;
    width : 100%;
    background-color : #f1f1f1;
    border-radius : 8px;
    overflow : hidden;
    position : relative;
    height : 30px;
  }
  .bar {
    height : 100%;
    color : #fff;
    text-align : right;
    padding-right : 10px;
    line-height : 30px;
    border-radius : 8px 0 0 8px;
    transition : width .4s ease-in-out;
  }
  .header-container {
    display : flex;
    justify-content : space-between;
    align-items : center;
    margin-bottom : 20px;
    padding : 10px;
    background-color : #2F3645;
    border-radius : 5px;
  }
  .running-text {
    flex : 1;
    color : #fc0;
    font-weight : 700;
    padding-right : 20px;
  }
  .filter-container {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-align: left;
    white-space: nowrap;
  }
  .filter-container select {
    padding: 8px 30px 8px 12px;
    font-size: 14px;
    border-radius: 5px;
    border: 1px solid #3a3a50;
    color: #fff;
    cursor: pointer;
    appearance: none;-webkit-appearance: none;-moz-appearance: none;
    background: #2F3645;
  }
  .filter-container select:hover {
    border-color : #4caf50;
  }
  .filter-container select:focus {
    border-color : #4caf50;
    box-shadow : 0 0 5px rgba(76, 175, 80, .5);
    outline : 0;
  }
  .filter-container::after {
    content: "▼";
    font-size: 12px;
    color: #fc0;
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
  }

  /* === KOMPONEN BARU === */

  /* Ticker */
  .ticker-bar{background:linear-gradient(90deg,#1a1a1a,#2F3645,#1a1a1a);padding:8px 0;overflow:hidden;margin-bottom:15px;border-radius:5px;border:1px solid #333}
  .ticker-track{display:flex;animation:tickerScroll 35s linear infinite;white-space:nowrap;gap:50px}
  .ticker-item{font-size:12px;font-weight:600;color:#fc0}
  @keyframes tickerScroll{0%{transform:translateX(0)}100%{transform:translateX(-50%)}}

  /* Live Badge */
  .live-badge{display:flex;align-items:center;gap:6px;font-size:11px;color:#00e676;font-weight:700;text-transform:uppercase;letter-spacing:1px}
  .live-dot{width:8px;height:8px;background:#00e676;border-radius:50%;display:inline-block;animation:livePulse 1.5s infinite}
  @keyframes livePulse{0%,100%{opacity:1;box-shadow:0 0 0 0 rgba(0,230,118,.4)}50%{opacity:.7;box-shadow:0 0 0 6px rgba(0,230,118,0)}}

  /* Stats Bar */
  .stats-bar{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;margin-bottom:15px}
  .stat-box{background:#2F3645;border-radius:8px;padding:12px;text-align:center;border:1px solid #3a3a50}
  .stat-val{font-size:20px;font-weight:900;color:#fc0}
  .stat-label{font-size:10px;color:#888;text-transform:uppercase;letter-spacing:1px;margin-top:2px}
  @media(max-width:600px){.stats-bar{grid-template-columns:1fr 1fr}}

  /* Game Status Badge */
  .game-img-wrapper{position:relative}
  .game-status-badge{position:absolute;top:8px;right:8px;padding:3px 10px;border-radius:12px;font-size:10px;font-weight:800;text-transform:uppercase;z-index:2}
  .status-gacor{background:rgba(0,230,118,.9);color:#000}
  .status-normal{background:rgba(255,204,0,.9);color:#000}
  .status-dingin{background:rgba(255,23,68,.9);color:#fff}

  /* Jam Gacor */
  .jam-gacor-info{padding:0 5px;margin:6px 0;font-size:11px;color:#888}
  .jam-value{color:#fc0;font-weight:700}

  /* Pola Header */
  .pola-header{font-size:9px;color:#666;text-transform:uppercase;letter-spacing:1px;margin-bottom:4px;font-weight:700}
  .pola-result .warning{display:inline-block;width:16px;height:16px;border-radius:50%;background:#ffea00}

  /* Marquee text */
  .marquee-text{display:inline-block;white-space:nowrap;animation:marqueeMove 20s linear infinite}
  @keyframes marqueeMove{0%{transform:translateX(100%)}100%{transform:translateX(-100%)}}

  /* HOT Badge */
  .hot-badge{background:#ff1744;color:#fff;font-size:8px;padding:1px 5px;border-radius:6px;margin-left:3px;font-weight:800;vertical-align:top}

  /* Sort Bar */
  .sort-bar{display:flex;align-items:center;gap:10px;margin-bottom:15px;padding:0 5px}
  .sort-bar select{background:#2F3645;color:#fff;border:1px solid #444;padding:8px 12px;border-radius:5px;font-size:12px;cursor:pointer}
  .game-count{font-size:12px;color:#888}

  /* Footer */
  .site-footer{margin-top:30px;border-top:1px solid #333;padding:25px 0}
  .footer-grid{display:grid;grid-template-columns:2fr 1fr 1fr;gap:24px;margin-bottom:16px}
  .footer-brand{font-size:18px;font-weight:900;color:#fc0;margin-bottom:6px}
  .footer-desc{font-size:12px;color:#666;line-height:1.7}
  .footer-title{font-size:11px;font-weight:700;color:#fc0;text-transform:uppercase;letter-spacing:1px;margin-bottom:8px}
  .footer-links{list-style:none;padding:0;margin:0}
  .footer-links li{margin-bottom:5px}
  .footer-links a{font-size:12px;color:#666;text-decoration:none;transition:color .2s}
  .footer-links a:hover{color:#fff}
  .footer-copy{text-align:center;font-size:11px;color:#444;padding-top:12px;border-top:1px solid #333}
  .footer-disclaimer{text-align:center;font-size:10px;color:#444;margin-top:6px}
  @media(max-width:600px){.footer-grid{grid-template-columns:1fr}}

  /* Sticky Bottom Mobile */
  .sticky-bottom{display:none;position:fixed;bottom:0;left:0;right:0;background:#2F3645;border-top:2px solid #fc0;padding:8px 16px;z-index:100;gap:8px}
  .sticky-btn{flex:1;text-align:center;padding:10px;border-radius:5px;font-weight:700;font-size:13px;color:#fff;text-decoration:none}
  .sticky-btn.masuk{background:#444}
  .sticky-btn.daftar{background:linear-gradient(135deg,#fc0,#ff6b6b);color:#000}
  @media(max-width:768px){.sticky-bottom{display:flex}body{padding-bottom:65px}}
  
/* === Pola A — Bet Progression (unique per game) === */
.pola-a{background:#1a1a1a;border-radius:6px;padding:10px;margin-top:6px;font-size:11px}
.pola-a-title{font-size:9px;color:#fc0;text-transform:uppercase;letter-spacing:1px;margin-bottom:8px;font-weight:700}
.pola-a-step{display:flex;align-items:center;gap:6px;margin-bottom:6px;color:#ccc;font-size:11px;line-height:1.4}
.pola-a-num{background:#fc0;color:#000;min-width:18px;height:18px;border-radius:50%;display:inline-flex;align-items:center;justify-content:center;font-weight:900;font-size:10px;flex-shrink:0}
.pola-a-bet{color:#fc0;font-weight:700}
.pola-a-x{color:#00e676;font-weight:700}
