/* ========================================
   STYLE PAITON TABLE (PAITO WARNA)
   ======================================== */

.pw-wrapper {
  font-size: 14px;
  padding: 0px !important;
}

.pw-wrapper.dark-mode {
  color: #e0e0e0;
}

.pw-card {
  background-color: #fafafa;
  border: 2px solid #fff;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border-radius: 6px;
  transition: all 0.3s ease;
  margin-bottom: 15px;
}

.pw-wrapper.dark-mode .pw-card {
  background: #1e1e1e;
  border: 1px solid #333;
}

.pw-toolbar {
  padding: 12px;
  border-radius: 6px;
  position: sticky;
  top: 0px;
  z-index: 1020;
  margin-bottom: 15px;
}

.pw-toolbar.mode-putih {
  background-color: #fafafa;
  border: 2px solid #fff;
  transition: all 0.3s ease;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.pw-toolbar.mode-hitam {
  background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
  border: 1px solid #444;
}

.pw-toolbar .form-control {
  height: auto;
  padding: 6px 8px;
  font-size: 14px;
}

.pw-toolbar.mode-putih .form-control {
  background: #fff;
  color: #333;
  border-color: #ddd;
}

.pw-toolbar.mode-hitam .form-control {
  background: #2c2c2c;
  color: #fff;
  border-color: #555;
}

.pw-table-wrap {
  overflow-x: auto;
}

#pw-table {
  width: auto;
  border-collapse: collapse;
  text-align: center;
  font-size: 13px;
  min-width: 220px;
  background: #fff;
}

.pw-wrapper.dark-mode #pw-table {
  background: #1e1e1e;
}

#pw-table td,
#pw-table th {
  border: 1px solid #d1d1d1;
  padding: 0;
  width: 22px;
}

.pw-wrapper.dark-mode #pw-table td,
.pw-wrapper.dark-mode #pw-table th {
  border-color: #333;
}

#pw-table .head td {
  background-color: #EBE8E8;
  color: #222;
  font-weight: 600;
  font-size: 12px;
  padding: 3px 0px;
}

.pw-wrapper.dark-mode #pw-table .head td {
  background: linear-gradient(0deg, rgba(10, 10, 10, 1) 0%, rgba(64, 64, 64, 1) 100%);
  color: #fff;
}

#pw-table .asu {
  font-weight: bold;
  color: #333;
  cursor: default;
}

.pw-wrapper.dark-mode #pw-table .asu {
  color: #ddd;
}

#pw-table .asux {
  font-weight: normal;
  color: #888;
  background: #f8f9fa;
  cursor: default;
}

.pw-wrapper.dark-mode #pw-table .asux {
  background: #252525;
  color: #aaa;
}

/* Paito List View */
#pw-table.list-view {
  width: auto;
  border-collapse: collapse;
  text-align: center;
  font-size: 13px;
  min-width: 220px;
  background: #fff;
}

#pw-table.list-view th {
  background: #343a40;
  color: #fff;
  padding: 5px;
  width: auto;
  font-size: 12px;
}

#pw-table.list-view td {
  padding: 0;
  width: auto;
  min-width: 24px;
  font-size: 15px;
}

#pw-table.list-view td.tgl-col,
#pw-table.list-view td.hri-col {
  padding: 0px 6px;
  font-size: 12px;
  background-color: #f9f9f9;
  color: #666666;
}

#pw-table.list-view td.psr-col {
  padding: 0px 6px;
  font-size: 12px;
  background-color: #f9f9f9;
  color: #383838;
}

.pw-wrapper.dark-mode #pw-table.list-view td.tgl-col {
  background-color: #252525;
}

.pw-wrapper.dark-mode #pw-table.list-view td.hri-col {
  background-color: #252525;
}

.pw-wrapper.dark-mode #pw-table.list-view td.psr-col {
  background-color: #252525;
  color: #9e9e9e;
}

/* Paito Zebra Striping */
#pw-table:not(.list-view) tr:nth-last-child(5n + 1) {
  background: #EBE8E8 !important;
}

.pw-wrapper.dark-mode #pw-table:not(.list-view) tr:nth-last-child(5n + 1) {
  background: rgba(255, 255, 255, 0.09) !important;
}

#pw-table.list-view tbody tr:nth-child(odd) {
  background-color: #EBE8E8;
}

.pw-wrapper.dark-mode #pw-table.list-view tbody tr:nth-child(odd) {
  background-color: #252525;
}

/* Paito Palette & Highlight Colors */
.pw-palette {
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
  margin-top: 10px;
}

.pw-palette-item {
  height: 26px;
  flex-grow: 2;
  min-width: 26px;
  cursor: pointer;
  border-radius: 4px;
  border: 1px solid transparent;
  transition: transform 0.2s;
}

.pw-palette-item:hover {
  transform: scale(1.1);
}

.pw-palette-item.active {
  border-color: #000;
}

.pw-wrapper.dark-mode .pw-palette-item.active {
  border-color: #fff;
}

.pw-search-wrap {
  background: #f8f9fa;
  border: 1px solid #dee2e6;
  padding: 15px;
  border-radius: 6px;
}

.pw-wrapper.dark-mode .pw-search-wrap {
  background: #1e1e1e;
  border-color: #333;
}

.pw-search-input {
  border-width: 1px !important;
  text-align: center;
  font-weight: bold;
  padding: 4px;
}

.pw-h-d1 { background-color: #dc3545 !important; color: #fff !important; }
.pw-h-d2 { background-color: #007bff !important; color: #fff !important; }
.pw-h-d3 { background-color: #28a745 !important; color: #fff !important; }
.pw-h-d4 { background-color: #fd7e14 !important; color: #fff !important; }
.pw-h-d5 { background-color: #6f42c1 !important; color: #fff !important; }
.pw-h-d6 { background-color: #17a2b8 !important; color: #fff !important; }

.pw-jl1, .pw-jl2, .pw-jl3, .pw-jl4, .pw-jl5, .pw-jl6, .pw-jl7, .pw-jl8, .pw-jl9, .pw-jl0 {
  background-color: #8c8c8c !important;
  color: #fff !important;
  font-weight: bold;
}

/* Live Result Box */
.pw-live-result {
  margin-bottom: 15px;
  transition: all 0.3s ease;
  padding: 15px;
  border-radius: 6px;
  background-color: #fafafa;
  border: 2px solid #fff;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.pw-wrapper.dark-mode .pw-live-result {
  background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
  border: 1px solid #444;
}

.pw-live-result h2 {
  font-size: 1.1rem;
  margin-bottom: 5px;
  font-weight: 700;
}

/* --- 3D BALLS --- */
.pw-balls-container{display:flex;justify-content:center;gap:8px;flex-wrap:wrap;}
.pw-ball{
    display:inline-flex;justify-content:center;align-items:center;
    width:40px;height:40px;border-radius:50%;font-size:22px;font-weight:800;
    color:#7c2d12;position:relative;cursor: pointer;
    background:radial-gradient(circle at 35% 30%,#fef3c7,#f59e0b 40%,#d97706 80%,#92400e);
    box-shadow:0 4px 12px rgba(0,0,0,0.3),inset 0 -3px 6px rgba(0,0,0,0.2),inset 0 3px 6px rgba(255,255,255,0.4);
    transform:translateY(-30px) scale(0.5);opacity:0;
    animation:pw-ball-drop .5s cubic-bezier(.34,1.56,.64,1) forwards;
    transition:transform .2s;margin-bottom:20px;margin-top:20px;
}
.pw-ball:hover{transform:translateY(-4px) scale(1.2);}
.pw-ball.void{
    background:linear-gradient(135deg,#475569,#1e293b);
    color:#94a3b8;box-shadow:0 4px 12px rgba(0,0,0,0.3),inset 0 -2px 4px rgba(0,0,0,0.3);
}
.pw-ball.pw-ball-landed{transform:translateY(0) scale(1);opacity:1;}
@keyframes pw-ball-drop{0%{transform:translateY(-30px) scale(0.5);opacity:0}60%{transform:translateY(4px) scale(1.05);opacity:1}100%{transform:translateY(0) scale(1);opacity:1}}
.pw-ball::after{
    content:'';position:absolute;top:6px;left:10px;width:12px;height:8px;
    background:radial-gradient(ellipse,rgba(255,255,255,0.6),transparent);
    border-radius:50%;transform:rotate(-20deg);
}
.pw-live-result .date {
  font-size: 0.8rem;
  font-weight: 500;
}

@media (max-width: 768px) {
  .form-group-wrapper {
    flex-direction: column;
    align-items: stretch;
  }

  .form-inline {
    justify-content: center;
    flex-wrap: wrap;
  }

  /* Adjustments for Paito on Mobile */
  #pw-table {
    font-size: 12px;
    min-width: 200px;
  }

  #pw-table td, #pw-table th {
    height: 18px;
  }

  #pw-table .head td,
  .pw-wrapper.dark-mode #pw-table .head td {
    font-weight: normal;
  }

  .head td {
    font-size: 12px;
  }

  .asu, .asux {
    min-width: 16px;
    line-height: 18px;
    font-size: 13px;
  }

  .single-view {
    padding: 0px !important;
  }

  #pw-table.list-view th {
    padding: 3px;
  }

  #pw-table.list-view td {
    padding: 0px 5px;
    font-size: 14px;
  }

  #pw-table.list-view td.tgl-col,
  #pw-table.list-view td.hri-col,
  #pw-table.list-view td.psr-col {
    padding: 0px 4px;
    font-size: 12px;
  }
}

/* ========================================
   SEO ENHANCED COMPONENTS (v3.0)
   ======================================== */

/* Breadcrumb Navigation */
.acp-breadcrumb {
  font-size: 13px;
  color: #666;
  margin-bottom: 15px;
  padding: 10px 0;
  border-bottom: 1px solid #eee;
}

.acp-breadcrumb a {
  color: #0073aa;
  text-decoration: none;
  transition: color 0.2s;
}

.acp-breadcrumb a:hover {
  color: #005177;
  text-decoration: underline;
}

.acp-breadcrumb .separator {
  margin: 0 8px;
  color: #999;
}

.pw-wrapper.dark-mode .acp-breadcrumb {
  color: #aaa;
  border-color: #333;
}

.pw-wrapper.dark-mode .acp-breadcrumb a {
  color: #5dade2;
}

.pw-wrapper.dark-mode .acp-breadcrumb a:hover {
  color: #85c1e9;
}

/* Statistics Bar */
.acp-stats-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 15px 0;
  justify-content: center;
}

.acp-stat-item {
  background: #f8f9fa;
  border: 1px solid #dee2e6;
  border-radius: 6px;
  padding: 10px 15px;
  text-align: center;
  min-width: 100px;
  transition: transform 0.2s, box-shadow 0.2s;
}

.acp-stat-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.acp-stat-item .stat-value {
  font-size: 1.2rem;
  font-weight: 700;
  color: #0073aa;
  display: block;
}

.acp-stat-item .stat-label {
  font-size: 11px;
  color: #666;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.pw-wrapper.dark-mode .acp-stat-item {
  background: #252525;
  border-color: #444;
}

.pw-wrapper.dark-mode .acp-stat-item .stat-value {
  color: #5dade2;
}

.pw-wrapper.dark-mode .acp-stat-item .stat-label {
  color: #aaa;
}

/* Related Pasaran Section */
.acp-related-section {
  margin-top: 20px;
  padding: 15px;
  background: #fafafa;
  border: 1px solid #eee;
  border-radius: 6px;
}

.acp-related-section h3 {
  font-size: 1rem;
  margin: 0 0 12px 0;
  color: #333;
}

.acp-related-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.acp-related-link {
  display: inline-block;
  padding: 6px 12px;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 12px;
  color: #333;
  text-decoration: none;
  transition: all 0.2s;
}

.acp-related-link:hover {
  background: #0073aa;
  color: #fff;
  border-color: #0073aa;
  transform: translateY(-1px);
}

.pw-wrapper.dark-mode .acp-related-section {
  background: #1e1e1e;
  border-color: #333;
}

.pw-wrapper.dark-mode .acp-related-section h3 {
  color: #fff;
}

.pw-wrapper.dark-mode .acp-related-link {
  background: #2c2c2c;
  border-color: #555;
  color: #ddd;
}

.pw-wrapper.dark-mode .acp-related-link:hover {
  background: #0073aa;
  color: #fff;
  border-color: #0073aa;
}

/* FAQ Section */
.acp-faq-section {
  margin-top: 20px;
}

.acp-faq-section h3 {
  font-size: 1rem;
  margin-bottom: 15px;
}

.acp-faq-item {
  border: 1px solid #eee;
  border-radius: 6px;
  margin-bottom: 8px;
  overflow: hidden;
  background: #fff;
  transition: box-shadow 0.2s;
}

.acp-faq-item:hover {
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.acp-faq-question {
  padding: 12px 15px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #f8f9fa;
  transition: background 0.2s;
  user-select: none;
}

.acp-faq-question:hover {
  background: #e9ecef;
}

.acp-faq-question .arrow {
  transition: transform 0.3s;
  font-size: 12px;
  flex-shrink: 0;
  margin-left: 10px;
}

.acp-faq-item.active .acp-faq-question .arrow {
  transform: rotate(180deg);
}

.acp-faq-answer {
  padding: 0 15px;
  max-height: 0;
  overflow: hidden;
  transition: all 0.3s ease;
  line-height: 1.6;
  font-size: 14px;
  color: #555;
}

.acp-faq-item.active .acp-faq-answer {
  padding: 15px;
  max-height: 500px;
}

.pw-wrapper.dark-mode .acp-faq-item {
  border-color: #333;
  background: #1e1e1e;
}

.pw-wrapper.dark-mode .acp-faq-question {
  background: #252525;
  color: #fff;
}

.pw-wrapper.dark-mode .acp-faq-question:hover {
  background: #333;
}

.pw-wrapper.dark-mode .acp-faq-answer {
  color: #ccc;
}

/* Social Share Bar */
.acp-share-bar {
  display: flex;
  gap: 8px;
  align-items: center;
  margin: 15px 0;
  flex-wrap: wrap;
}

.acp-share-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 14px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 500;
  color: #fff;
  text-decoration: none;
  transition: opacity 0.2s, transform 0.2s;
  border: none;
  cursor: pointer;
}

.acp-share-btn:hover {
  opacity: 0.85;
  transform: translateY(-1px);
}

.acp-share-btn.facebook {
  background: #1877F2;
}

.acp-share-btn.twitter {
  background: #1DA1F2;
}

.acp-share-btn.whatsapp {
  background: #25D366;
}

.acp-share-btn.telegram {
  background: #0088cc;
}

.acp-share-btn.copy-link {
  background: #6c757d;
}

/* Update Info */
.acp-update-info {
  font-size: 12px;
  color: #888;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid #eee;
}

.pw-wrapper.dark-mode .acp-update-info {
  color: #777;
  border-color: #333;
}

/* Back to Top Button */
.acp-back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 45px;
  height: 45px;
  background: #0073aa;
  color: #fff;
  border: none;
  border-radius: 50%;
  font-size: 18px;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
  z-index: 9999;
  transition: all 0.3s;
}

.acp-back-to-top:hover {
  background: #005f8d;
  transform: translateY(-3px);
}

.acp-back-to-top.visible {
  display: flex;
}

/* Mobile Responsive Adjustments */
@media (max-width: 768px) {
  .acp-stats-bar {
    gap: 6px;
  }
  
  .acp-stat-item {
    min-width: 80px;
    padding: 8px 10px;
  }
  
  .acp-stat-item .stat-value {
    font-size: 1rem;
  }
  
  .acp-share-bar {
    justify-content: center;
  }
  
  .acp-share-btn {
    padding: 6px 10px;
    font-size: 11px;
  }
  
  .acp-back-to-top {
    bottom: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    font-size: 16px;
  }
  
  .acp-related-link {
    padding: 5px 10px;
    font-size: 11px;
  }
  
  .acp-faq-question {
    padding: 10px 12px;
    font-size: 14px;
  }
  
  .acp-faq-answer {
    font-size: 13px;
  }
  
  .acp-breadcrumb {
    font-size: 12px;
  }
}

@media (max-width: 480px) {
  .acp-stats-bar {
    gap: 4px;
  }
  
  .acp-stat-item {
    min-width: 70px;
    padding: 6px 8px;
    flex: 1;
  }
  
  .acp-stat-item .stat-value {
    font-size: 0.9rem;
  }
  
  .acp-stat-item .stat-label {
    font-size: 9px;
  }
  
  .acp-share-btn span {
    display: none;
  }
}
    /* SEO Enhanced Components */
    .acp-breadcrumb { font-size:13px; color:#666; margin-bottom:15px; padding:10px 0; border-bottom:1px solid #eee; }
    .acp-breadcrumb a { color:#0073aa; text-decoration:none; }
    .acp-breadcrumb a:hover { text-decoration:underline; }
    .acp-breadcrumb .separator { margin:0 8px; color:#999; }
    .dark-mode .acp-breadcrumb { color:#aaa; border-color:#333; }
    .dark-mode .acp-breadcrumb a { color:#5dade2; }
    
    .acp-stats-bar { display:flex; flex-wrap:wrap; gap:10px; margin:15px 0; justify-content:center; }
    .acp-stat-item { background:#f8f9fa; border:1px solid #dee2e6; border-radius:6px; padding:10px 15px; text-align:center; min-width:100px; }
    .acp-stat-item .stat-value { font-size:1.2rem; font-weight:700; color:#0073aa; display:block; }
    .acp-stat-item .stat-label { font-size:11px; color:#666; text-transform:uppercase; letter-spacing:0.5px; }
    .dark-mode .acp-stat-item { background:#252525; border-color:#444; }
    .dark-mode .acp-stat-item .stat-value { color:#5dade2; }
    .dark-mode .acp-stat-item .stat-label { color:#aaa; }
    
    .acp-related-section { margin-top:20px; padding:15px; background:#fafafa; border:1px solid #eee; border-radius:6px;justify-content:center; }
    .acp-related-section h3 { font-size:1rem; margin:0 0 12px 0; color:#333; }
    .acp-related-grid { display:flex; flex-wrap:wrap; gap:8px; }
    .acp-related-link { display:inline-block; padding:6px 12px; background:#fff; border:1px solid #ddd; border-radius:4px; font-size:12px; color:#333; text-decoration:none; transition:all 0.2s; }
    .acp-related-link:hover { background:#0073aa; color:#fff; border-color:#0073aa; }
    .dark-mode .acp-related-section { background:#1e1e1e; border-color:#333; }
    .dark-mode .acp-related-section h3 { color:#fff; }
    .dark-mode .acp-related-link { background:#2c2c2c; border-color:#555; color:#ddd; }
    .dark-mode .acp-related-link:hover { background:#0073aa; color:#fff; }
    
    .acp-faq-section { margin-top:20px; }
    .acp-faq-item { border:1px solid #eee; border-radius:6px; margin-bottom:8px; overflow:hidden; background:#fff; }
    .acp-faq-question { padding:12px 15px; font-weight:600; cursor:pointer; display:flex; justify-content:space-between; align-items:center; background:#f8f9fa; transition:background 0.2s; }
    .acp-faq-question:hover { background:#e9ecef; }
    .acp-faq-question .arrow { transition:transform 0.3s; font-size:12px; }
    .acp-faq-item.active .acp-faq-question .arrow { transform:rotate(180deg); }
    .acp-faq-answer { padding:0 15px; max-height:0; overflow:hidden; transition:all 0.3s ease; }
    .acp-faq-item.active .acp-faq-answer { padding:15px; max-height:500px; }
    .dark-mode .acp-faq-item { border-color:#333; background:#1e1e1e; }
    .dark-mode .acp-faq-question { background:#252525; color:#fff; }
    .dark-mode .acp-faq-question:hover { background:#333; }
    
    .acp-share-bar { display:flex; gap:8px; align-items:center; margin:15px 0; flex-wrap:wrap;justify-content:center; }
    .acp-share-btn { display:inline-flex; align-items:center; gap:5px; padding:6px 14px; border-radius:4px; font-size:12px; font-weight:500; color:#fff; text-decoration:none; transition:opacity 0.2s; }
    .acp-share-btn:hover { opacity:0.85; }
    .acp-share-btn.facebook { background:#1877F2; }
    .acp-share-btn.twitter { background:#1DA1F2; }
    .acp-share-btn.whatsapp { background:#25D366; }
    .acp-share-btn.telegram { background:#0088cc; }
    .acp-share-btn.copy-link { background:#6c757d; cursor:pointer; }
    .acp-update-info { font-size:12px; color:#888; margin-top:10px; }
    .dark-mode .acp-update-info { color:#777; }
    
    .acp-back-to-top { position:fixed; bottom:30px; right:30px; width:45px; height:45px; background:#0073aa; color:#fff; border:none; border-radius:50%; font-size:18px; cursor:pointer; display:none; align-items:center; justify-content:center; box-shadow:0 4px 10px rgba(0,0,0,0.3); z-index:9999; transition:all 0.3s; }
    .acp-back-to-top:hover { background:#005f8d; transform:translateY(-3px); }
    .acp-back-to-top.visible { display:flex; }
    
    @media (max-width:768px) {
        .acp-stats-bar { gap:6px; }
        .acp-stat-item { min-width:80px; padding:8px 10px; }
        .acp-stat-item .stat-value { font-size:1rem; }
        .acp-share-bar { justify-content:center; }
        .acp-back-to-top { bottom:20px; right:20px; width:40px; height:40px; font-size:16px; }
    }