*{box-sizing:border-box}
html,body{margin:0;padding:0}
body{
  min-height:100vh;
  background:linear-gradient(to bottom,#fff 0%,#fff 70%,#fff3ed 82%,#ff8b43 100%);
  color:#111;
  font-family:"Times New Roman",serif;
}
.topbar{height:50px;background:#172a17;border-bottom:7px solid #0b160b;box-shadow:0 1px 4px rgba(0,0,0,.5)}
.topbar-inner{width:780px;height:43px;margin:auto}
.page{width:800px;margin:0 auto;padding:0 10px 8px}
.hero-wrap{width:782px;height:295px;margin:0 auto 3px;border-left:1px solid #777;border-right:1px solid #777;background:#111;overflow:hidden}
.hero-slider{position:relative;width:772px;height:288px;margin:0 auto;overflow:hidden}
.hero-slider img{position:absolute;inset:0;width:772px;height:288px;object-fit:cover;opacity:0;transition:opacity .45s ease}
.hero-slider img.active{opacity:1}
.jackpots{width:752px;height:55px;margin:0 auto 1px;display:grid;grid-template-columns:repeat(3,1fr);gap:2px;overflow:hidden}
.jackpots a{display:block;height:54px;overflow:hidden;background:#000}
.jackpots img{width:100%;height:54px;object-fit:cover;display:block}
.info-grid{width:766px;margin:0 auto;display:grid;grid-template-columns:1fr 1fr 218px;gap:7px;align-items:start}
.history-card{height:174px;border-radius:18px 18px 11px 11px;overflow:hidden;background:#eee;box-shadow:0 2px 2px rgba(0,0,0,.2)}
.card-title{height:58px;background:linear-gradient(#ffad4a,#ff8c25);font:bold 27px/58px Impact,"Arial Narrow",sans-serif;white-space:nowrap;padding-left:10px}
.badge{display:inline-flex;width:39px;height:39px;margin-right:10px;vertical-align:-5px;align-items:center;justify-content:center;background:#fff;border:3px solid #333;clip-path:polygon(50% 0,100% 25%,100% 75%,50% 100%,0 75%,0 25%);font:700 25px Arial}
.history-lines div{height:22px;border-bottom:2px solid #f47d18;background:#e9e9e9}
.cs-card{height:174px;overflow:hidden;background:#fff}
.cs-card img{display:block;width:218px;height:174px;object-fit:cover}
.trust{width:766px;margin:3px auto 0;text-align:center;height:85px;position:relative}
.trust-icons{display:block;width:756px;height:42px;object-fit:cover;object-position:center top;margin:0 auto}
.payment{display:block;width:560px;height:39px;object-fit:cover;margin:-1px auto 0}
.copyright{text-align:center;font-size:15px;margin:0 auto 30px;width:766px}
.content-box{
  width:852px;
  max-width:100%;
  margin:0 auto;
  padding:7px 16px 10px;
  border:1px solid #fff;
  background:linear-gradient(#ff9b54,#ff6d16);
  color:#111;
  text-align:center;
  line-height:1.15;
}
.content-box h1,.content-box h2{font-weight:bold;margin:0 0 2px}
.content-box h1{font-size:25px}
.content-box h2{font-size:22px;margin-top:8px}
.content-box p{font-size:15px;margin:0 0 5px}
@media(max-width:840px){
  .topbar{height:42px}
  .page{width:100%;padding:0 4px}
  .hero-wrap{width:100%;height:auto;border:0}
  .hero-slider{width:100%;height:auto;aspect-ratio:772/288}
  .hero-slider img{width:100%;height:100%}
  .jackpots,.info-grid,.trust,.copyright{width:96%}
  .jackpots{height:auto;grid-template-columns:1fr 1fr 1fr}
  .jackpots a,.jackpots img{height:auto;aspect-ratio:250/54}
  .info-grid{grid-template-columns:1fr 1fr}
  .cs-card{grid-column:1/-1;width:218px;justify-self:center}
  .content-box{width:96%}
}
@media(max-width:560px){
  .info-grid{grid-template-columns:1fr}
  .cs-card{grid-column:auto}
  .history-card{height:150px}
  .card-title{font-size:23px}
  .trust{height:auto}
  .trust-icons{width:100%;height:auto}
  .payment{width:88%;height:auto}
}

.faq-section,.feedback-section{
  width:852px;
  max-width:100%;
  margin:14px auto 0;
  padding:10px 16px 14px;
  border:1px solid #fff;
  background:linear-gradient(#fff7ef,#ffe2cd);
  text-align:left;
}
.faq-section>h2,.feedback-section>h2{
  margin:0 0 9px;
  text-align:center;
  font-size:24px;
}
.faq-list details{
  margin:5px 0;
  border:1px solid #e27825;
  background:#fff;
}
.faq-list summary{
  cursor:pointer;
  padding:8px 10px;
  font-size:17px;
  font-weight:bold;
  background:linear-gradient(#ffb05b,#ff9130);
}
.faq-list p{
  margin:0;
  padding:8px 10px;
  font-size:15px;
  line-height:1.3;
}
.feedback-note{
  margin:0 auto 10px;
  max-width:760px;
  text-align:center;
  font-size:14px;
  line-height:1.3;
}
.feedback-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:8px;
}
.feedback-card{
  background:#fff;
  border:1px solid #e27825;
  padding:10px;
  text-align:center;
  min-height:150px;
}
.feedback-card .stars{
  font-family:Arial,sans-serif;
  letter-spacing:2px;
  font-size:17px;
}
.feedback-card h3{
  margin:5px 0;
  font-size:18px;
}
.feedback-card p{
  margin:0 0 7px;
  font-size:14px;
  line-height:1.25;
}
.feedback-card span{
  font-size:11px;
  font-style:italic;
}
@media(max-width:560px){
  .faq-section,.feedback-section{width:96%;padding:9px}
  .feedback-grid{grid-template-columns:1fr}
}

/* Footer tambahan dengan palet yang menyatu dengan desain klasik oranye website */
.classic-footer{
  width:852px;
  max-width:100%;
  margin:18px auto 0;
  padding:24px 0 16px;
  display:grid;
  grid-template-columns:1fr 1fr 1fr;
  gap:0;
  background:linear-gradient(180deg,#fffaf6 0%,#ffe8d7 100%);
  border-top:2px solid #e27825;
  border-bottom:1px solid #e27825;
  font-family:"Times New Roman",serif;
}
.footer-column{
  min-height:350px;
  padding:0 24px;
  border-right:1px solid #e6a06c;
}
.footer-column:last-child{border-right:0}
.footer-column h3{
  margin:0;
  color:#a94d12;
  font:bold 25px "Arial Narrow",Arial,sans-serif;
  letter-spacing:.2px;
}
.footer-subtitle{
  color:#8d684f;
  font-size:14px;
  margin-top:2px;
}
.footer-rule{
  border-top:1px dotted #c98a5d;
  margin:19px 0 22px;
}
.service-item{margin-bottom:26px}
.service-label{
  color:#9a4a14;
  font-weight:bold;
  font-size:18px;
}
.service-meta{
  color:#8b6c5a;
  font-size:14px;
  position:relative;
  min-height:44px;
}
.service-meta strong{
  position:absolute;
  right:35px;
  top:-12px;
  font:44px Arial,sans-serif;
  color:#b96b35;
}
.service-meta span{
  position:absolute;
  right:0;
  top:8px;
  font:20px Arial,sans-serif;
  color:#8b6c5a;
}
.service-bar{
  height:13px;
  margin-top:3px;
  background:#e5c9b5;
  border-radius:9px;
  overflow:hidden;
}
.service-bar i{
  display:block;
  height:100%;
  background:#e27825;
  border-radius:9px;
}
.product-item{
  padding:0 0 18px;
  margin-bottom:20px;
  border-bottom:1px dotted #c98a5d;
}
.product-item:last-child{border-bottom:0}
.product-item h4{
  margin:0 0 3px;
  color:#9a4a14;
  font:bold 19px "Arial Narrow",Arial,sans-serif;
}
.product-item p{
  margin:0;
  color:#745f51;
  font-size:14px;
  line-height:1.45;
}
.support-link{
  height:48px;
  margin:0 0 12px;
  padding:0 9px 0 18px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  background:linear-gradient(90deg,#fff8f1,#ffe1cb);
  border:1px solid #e2a071;
  border-radius:25px;
  color:#8f470f;
  font-weight:bold;
  font-size:15px;
  box-shadow:0 1px 2px rgba(100,45,10,.12);
}
.support-link b{
  width:35px;
  height:35px;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius:50%;
  background:#e27825;
  color:#fff;
  font:bold 19px Arial,sans-serif;
}
.support-connected{
  margin-top:27px;
  padding-top:25px;
  border-top:1px dotted #c98a5d;
}
.support-connected h4{
  margin:0 0 12px;
  color:#9a4a14;
  font:bold 18px "Arial Narrow",Arial,sans-serif;
}
.facebook-round{
  width:42px;
  height:42px;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius:50%;
  background:#e27825;
  color:#fff;
  font:bold 30px Arial,sans-serif;
}
@media(max-width:760px){
  .classic-footer{
    width:96%;
    grid-template-columns:1fr;
  }
  .footer-column{
    min-height:auto;
    padding:18px 20px;
    border-right:0;
    border-bottom:1px solid #e6a06c;
  }
  .footer-column:last-child{border-bottom:0}
}

.auth-buttons{
  width:766px;
  max-width:96%;
  margin:-20px auto 25px;
  display:flex;
  justify-content:center;
  align-items:center;
  gap:10px;
}
.auth-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:145px;
  height:42px;
  padding:0 28px;
  border:2px solid #8d3f0c;
  border-radius:5px;
  color:#fff;
  text-decoration:none;
  font:bold 18px Arial,sans-serif;
  letter-spacing:.5px;
  box-shadow:0 2px 3px rgba(0,0,0,.22);
  transition:filter .15s ease,transform .15s ease;
}
.auth-btn:hover{filter:brightness(1.08);transform:translateY(-1px)}
.auth-btn.register{
  background:linear-gradient(#ffad4a,#e96f10);
}
.auth-btn.login{
  background:linear-gradient(#d8782a,#a94d12);
}
@media(max-width:560px){
  .auth-buttons{width:96%;margin:-12px auto 20px}
  .auth-btn{min-width:0;flex:1;height:40px;font-size:16px;padding:0 14px}
}

/* Tombol DAFTAR & LOGIN ukuran besar */
.auth-buttons{
  width:766px;
  max-width:96%;
  margin:-18px auto 28px;
  display:flex;
  justify-content:center;
  align-items:center;
  gap:18px;
}
.auth-btn{
  min-width:230px;
  width:230px;
  height:62px;
  padding:0 30px;
  border:3px solid #7e3609;
  border-radius:8px;
  color:#fff;
  text-decoration:none;
  font:bold 25px Arial,sans-serif;
  letter-spacing:1px;
  text-shadow:0 1px 1px rgba(0,0,0,.45);
  box-shadow:0 3px 5px rgba(0,0,0,.28), inset 0 1px rgba(255,255,255,.35);
}
@media(max-width:560px){
  .auth-buttons{
    width:96%;
    gap:10px;
    margin:-10px auto 22px;
  }
  .auth-btn{
    min-width:0;
    width:auto;
    flex:1;
    height:54px;
    font-size:21px;
    padding:0 10px;
  }
}

/* Navigasi paling atas */
.top-nav{
  width:100%;
  height:68px;
  background:#fff;
  border-top:1px solid #d9d9d9;
  border-bottom:1px solid #d9d9d9;
  box-shadow:0 1px 2px rgba(0,0,0,.04);
  font-family:Arial,Helvetica,sans-serif;
}
.top-nav-inner{
  width:100%;
  max-width:1660px;
  height:100%;
  margin:0 auto;
  padding:0 22px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
}
.top-nav a{
  color:#111;
  text-decoration:none;
  white-space:nowrap;
  font-size:18px;
  font-weight:700;
  line-height:1;
}
.top-nav a:hover{
  color:#e27825;
}
.top-nav .alternative-login{
  color:#ff0808;
}
.top-nav .alternative-login:hover{
  color:#c40000;
}
@media(max-width:1100px){
  .top-nav{
    height:auto;
    min-height:68px;
    overflow-x:auto;
  }
  .top-nav-inner{
    width:max-content;
    min-width:100%;
    justify-content:flex-start;
    padding:0 20px;
    gap:38px;
  }
}
@media(max-width:560px){
  .top-nav a{font-size:15px}
  .top-nav-inner{gap:25px}
}

/* Perbaikan posisi teks navigasi: benar-benar di tengah secara vertikal */
.top-nav{
  height:68px;
  display:flex;
  align-items:center;
}
.top-nav-inner{
  height:68px;
  display:flex;
  align-items:center;
}
.top-nav a{
  display:flex;
  align-items:center;
  height:100%;
  line-height:1;
  padding-top:2px;
}
@media(max-width:1100px){
  .top-nav{height:68px;min-height:68px}
  .top-nav-inner{height:68px;min-height:68px}
}

/* Logo clickable di kiri atas */
.top-nav-inner{
  justify-content:flex-start;
  gap:0;
}
.top-logo{
  display:flex !important;
  align-items:center;
  justify-content:center;
  height:100%;
  min-width:142px;
  margin-right:28px;
  color:#111 !important;
  text-decoration:none !important;
  font:bold 21px Arial,Helvetica,sans-serif;
  letter-spacing:.2px;
  flex:0 0 auto;
}
.top-logo:hover{
  color:#e27825 !important;
}
.top-nav-inner > a:not(.top-logo){
  margin-right:34px;
}
.top-nav-inner > a:last-child{
  margin-right:0;
}
@media(max-width:1100px){
  .top-nav-inner{
    justify-content:flex-start;
    width:max-content;
    min-width:100%;
  }
  .top-logo{
    min-width:142px;
    margin-right:28px;
  }
  .top-nav-inner > a:not(.top-logo){
    margin-right:34px;
  }
}
@media(max-width:560px){
  .top-logo{
    min-width:120px;
    margin-right:20px;
    font-size:18px;
  }
  .top-nav-inner > a:not(.top-logo){
    margin-right:25px;
  }
}

/* Logo DewaQQ pada navigasi atas */
.top-logo{
  min-width:170px !important;
  width:170px;
  margin-right:28px !important;
  padding:0 !important;
}
.top-logo img{
  display:block;
  width:160px;
  height:auto;
  max-height:56px;
  object-fit:contain;
}
.top-logo:hover{
  color:inherit !important;
}
@media(max-width:560px){
  .top-logo{
    min-width:135px !important;
    width:135px;
    margin-right:20px !important;
  }
  .top-logo img{
    width:128px;
    max-height:50px;
  }
}

/* Mobile navigation drawer */
.mobile-menu-toggle{
  display:none;
}
.mobile-nav-drawer{
  display:none;
}
@media(max-width:760px){
  .top-nav{
    height:68px;
    min-height:68px;
    overflow:visible;
    position:relative;
  }
  .top-nav-inner{
    display:none !important;
  }
  .mobile-menu-toggle{
    display:flex;
    position:absolute;
    left:14px;
    right:14px;
    top:10px;
    height:48px;
    align-items:center;
    padding:0 18px;
    border:1px solid #b95d18;
    border-radius:28px;
    background:linear-gradient(180deg,#ffab4c,#e77716);
    color:#fff;
    font:700 14px Arial,Helvetica,sans-serif;
    cursor:pointer;
    box-shadow:0 2px 4px rgba(0,0,0,.22);
    z-index:1002;
  }
  .mobile-menu-toggle .menu-icon{
    font-size:16px;
    margin-right:9px;
  }
  .mobile-menu-toggle .menu-action{
    margin-left:auto;
    font-size:23px;
    line-height:1;
    transform:rotate(0deg);
  }
  .mobile-nav-drawer{
    position:absolute;
    top:68px;
    left:0;
    right:0;
    z-index:1001;
    display:flex;
    flex-direction:column;
    background:#fffaf5;
    border-bottom:2px solid #e27825;
    box-shadow:0 5px 12px rgba(0,0,0,.2);
    max-height:0;
    overflow:hidden;
    opacity:0;
    transition:max-height .25s ease,opacity .2s ease;
  }
  .mobile-nav-drawer.open{
    max-height:500px;
    opacity:1;
  }
  .mobile-nav-drawer a{
    padding:15px 20px;
    color:#6f330d;
    text-decoration:none;
    font:700 16px Arial,Helvetica,sans-serif;
    border-bottom:1px solid #edc8ac;
  }
  .mobile-nav-drawer a:hover{
    background:#ffe2c8;
  }
  .mobile-nav-drawer .alternative-login{
    color:#d40000;
  }
}

/* Logo BandarQQ terbaru */
.top-logo{
  min-width:170px !important;
  width:170px;
  margin-right:28px !important;
}
.top-logo img{
  display:block;
  width:160px;
  height:auto;
  max-height:58px;
  object-fit:contain;
}
@media(max-width:560px){
  .top-logo{
    min-width:135px !important;
    width:135px;
    margin-right:20px !important;
  }
  .top-logo img{
    width:128px;
    max-height:50px;
  }
}

/* ===== Production pages ===== */
.site-page{
  width:852px; max-width:96%; margin:20px auto 35px;
  padding:20px; background:#fffaf5; border:1px solid #e27825;
  box-shadow:0 2px 7px rgba(0,0,0,.12); font-family:"Times New Roman",serif;
}
.site-page h1{margin:0 0 12px;text-align:center;color:#9a4a14;font-size:30px}
.site-page h2{color:#9a4a14;font-size:23px;margin:18px 0 7px}
.site-page p,.site-page li{font-size:16px;line-height:1.5}
.site-page .lead{text-align:center;color:#6e584a}
.page-links{display:flex;gap:12px;justify-content:center;flex-wrap:wrap;margin:20px 0}
.page-links a,.form-btn{
  display:inline-flex;align-items:center;justify-content:center;min-width:180px;height:48px;
  padding:0 22px;border-radius:7px;border:2px solid #8b3e0b;
  background:linear-gradient(#ffad4a,#e87816);color:#fff;text-decoration:none;
  font:bold 18px Arial,sans-serif;box-shadow:0 2px 4px rgba(0,0,0,.18)
}
.simple-form{max-width:500px;margin:20px auto}
.simple-form label{display:block;margin:12px 0 5px;color:#6d421f;font:bold 15px Arial,sans-serif}
.simple-form input,.simple-form textarea{
  width:100%;padding:12px;border:1px solid #d29a70;border-radius:5px;
  background:#fff;font:16px Arial,sans-serif
}
.simple-form textarea{min-height:120px;resize:vertical}
.form-note{font-size:13px!important;color:#806a5b;text-align:center}
.faq-page details{margin:8px 0;border:1px solid #e1a06c;background:#fff}
.faq-page summary{padding:12px;cursor:pointer;font:bold 17px Arial,sans-serif;background:#ffe4cd;color:#8f460f}
.faq-page details p{padding:10px 12px;margin:0}
.breadcrumb{width:852px;max-width:96%;margin:12px auto 0;color:#765a49;font:14px Arial,sans-serif}
.breadcrumb a{color:#a94d12;text-decoration:none}
.not-found{text-align:center;padding:50px 15px}
.not-found .code{font:bold 76px Arial,sans-serif;color:#e27825}
.contact-grid{display:grid;grid-template-columns:1fr 1fr;gap:15px}
.contact-card{padding:15px;background:#fff;border:1px solid #e1a06c}
.contact-card h3{margin:0 0 8px;color:#9a4a14}
.site-footer-mini{text-align:center;margin-top:18px;padding-top:12px;border-top:1px dotted #c98a5d;font-size:14px}
@media(max-width:560px){
  .site-page{padding:14px}
  .site-page h1{font-size:25px}
  .contact-grid{grid-template-columns:1fr}
  .page-links a,.form-btn{width:100%}
}

/* Production polish: CTA, accessibility, page cards and responsive refinements */
.auth-btn:focus,.top-nav a:focus,.mobile-menu-toggle:focus,
.page-links a:focus,.form-btn:focus,.faq-list summary:focus{
  outline:3px solid #ffb86b;
  outline-offset:2px;
}
.hero-slider img{will-change:opacity}
.page-links a.external-link{cursor:pointer}
@media(prefers-reduced-motion:reduce){
  .hero-slider img,.mobile-nav-drawer,.auth-btn{transition:none!important}
}

/* Performance / stability */
img{max-width:100%;height:auto}
.hero-slider{contain:layout paint}
.banner-grid{contain:layout}
@media(prefers-reduced-motion:reduce){
  *,*::before,*::after{scroll-behavior:auto!important;animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}
}

.editorial-content{
  width:852px;max-width:96%;margin:20px auto 25px;
  background:#fffaf5;border:1px solid #e27825;
  box-shadow:0 2px 7px rgba(0,0,0,.10);
  font-family:"Times New Roman",serif;
}
.editorial-inner{padding:22px}
.editorial-inner h2{
  margin:0 0 9px;color:#9a4a14;font-size:25px;
}
.editorial-inner p{
  margin:0 0 17px;color:#5f5148;font-size:16px;line-height:1.55;
}
.editorial-grid{
  display:grid;grid-template-columns:repeat(3,1fr);gap:14px;margin:18px 0 24px;
}
.editorial-grid article{
  padding:15px;background:#fff;border:1px solid #e1a06c;
}
.editorial-grid h3{margin:0 0 6px;color:#9a4a14;font-size:19px}
.editorial-grid p{margin:0;font-size:15px}
@media(max-width:700px){
  .editorial-grid{grid-template-columns:1fr}
  .editorial-inner{padding:16px}
}
