/*
Theme Name: SunwinPerfect
Theme URI: https://sunwinperfect.com
Description: Lightweight custom theme for SunwinPerfect
Version: 1.0.0
Author: VXNQR
Text Domain: sunwinperfect
*/

/* === RESET & BASE === */
*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth;-webkit-text-size-adjust:100%}
body{
  font-family:'Inter',system-ui,-apple-system,sans-serif;
  background:#0a0301;
  color:#fff;
  line-height:1.7;
  font-size:16px;
  overflow-x:hidden;
}
img{max-width:100%;height:auto;display:block}
a{color:#ffd1b5;text-decoration:none;transition:color .2s}
a:hover{color:#fffbb7}
table{width:100%;border-collapse:collapse;margin:1.5em 0}
th,td{padding:12px 16px;text-align:left;border:1px solid rgba(255,209,181,.15)}
th{background:rgba(255,209,181,.1);color:#ffd1b5;font-weight:600;font-size:.95em}
td{font-size:.93em}
tr:nth-child(even){background:rgba(255,255,255,.03)}
h1,h2,h3,h4,h5,h6{line-height:1.3;font-weight:700}
h1{font-size:clamp(1.6rem,4vw,2.2rem);margin-bottom:.8em}
h2{font-size:clamp(1.3rem,3vw,1.7rem);margin:1.8em 0 .6em;color:#ffd1b5}
h3{font-size:clamp(1.1rem,2.5vw,1.35rem);margin:1.4em 0 .5em;color:#ffe9a4}
p{margin-bottom:1em}
ul,ol{margin:0 0 1em 1.5em}
li{margin-bottom:.4em}
strong{color:#ffd1b5}
blockquote{border-left:3px solid #ffd1b5;padding:1em 1.5em;margin:1.5em 0;background:rgba(255,209,181,.05);border-radius:0 8px 8px 0}

/* === LAYOUT === */
.container{max-width:1100px;margin:0 auto;padding:0 16px}
.section{padding:2.5em 0}

/* === TOP WARNING BAR === */
.top-warning{
  background:linear-gradient(90deg,#1a0a00,#2a1200,#1a0a00);
  text-align:center;
  padding:10px 16px;
  font-size:.85em;
  color:#ff9966;
  border-bottom:1px solid rgba(255,153,102,.2);
}
.top-warning strong{color:#ffcc00}

/* === HEADER === */
.site-header{
  background:rgba(10,3,1,.95);
  backdrop-filter:blur(10px);
  position:sticky;top:0;z-index:200;
  border-bottom:1px solid rgba(255,209,181,.1);
}
.header-inner{
  display:flex;align-items:center;justify-content:space-between;
  padding:12px 16px;max-width:1100px;margin:0 auto;
}
.site-logo{display:flex;align-items:center;gap:10px}
.site-logo img{height:48px;width:auto}
.site-logo-text{
  font-size:1.6rem;font-weight:800;
  background:linear-gradient(90deg,#ffd1b5,#fffbb7,#fff);
  -webkit-background-clip:text;-webkit-text-fill-color:transparent;
  background-clip:text;
  letter-spacing:1px;
}
.header-nav{display:flex;gap:8px;align-items:center}
.btn{
  display:inline-block;padding:10px 24px;border-radius:8px;
  font-weight:600;font-size:.9em;cursor:pointer;
  border:none;text-align:center;transition:all .2s;
}
.btn-primary{
  background:linear-gradient(90deg,#ffd1b5,#fffbb7 70%,#fff);
  color:#0a0301;
}
.btn-primary:hover{transform:translateY(-1px);box-shadow:0 4px 20px rgba(255,209,181,.3)}
.btn-outline{
  border:1px solid rgba(255,209,181,.4);
  color:#ffd1b5;background:transparent;
}
.btn-outline:hover{background:rgba(255,209,181,.1)}
.btn-sm{padding:8px 16px;font-size:.85em}

.main-page{
  background-color:#0c0402;
  min-height:100vh;
}
.main-inner{
  display:flex;
  flex-direction:column;
  align-items:center;
  width:1585px;
  max-width:100%;
  margin:0 auto;
  position:relative;
  background-size:cover;
  background-position:50% 0%;
  background-repeat:no-repeat;
  padding-bottom:40px;
}

/* === LOGO BOX (center, relative, z-index 9) === */
.logo-box{
  position:relative;
  width:375px;
  max-width:100%;
  text-align:center;
  z-index:9;
  margin:5px auto 0;
  padding:0;
}
.main-logo{
  max-width:280px;
  margin:0 auto 4px;
  filter:drop-shadow(0 0 30px rgba(255,180,100,.3));
}
.title-img{
  max-width:200px;
  margin:0 auto 4px;
}
.slogan-img{
  max-width:220px;
  margin:0 auto;
}
.sparkle{
  position:absolute;
  width:30px;height:30px;
  animation:sparkle-anim 2s ease-in-out infinite;
  pointer-events:none;
}
.sparkle-1{top:10%;left:5%}
.sparkle-2{top:5%;right:5%;animation-delay:.5s}
.sparkle-3{bottom:30%;left:0;animation-delay:1s}
.sparkle-4{bottom:25%;right:0;animation-delay:1.5s}
@keyframes sparkle-anim{
  0%,100%{opacity:.3;transform:scale(.8)}
  50%{opacity:1;transform:scale(1.1)}
}

/* === BANNER LEFT — FIXED SIDEBAR === */
.banner-left{
  position:fixed;
  left:79px;
  top:144px;
  width:335px;
  height:705px;
  z-index:100;
  display:block;
}

/* Banner slider */
.banner-left-slide{
  position:relative;
  border-radius:12px;
  overflow:hidden;
  background:#0a0301;
}
.phishing-slide{
  position:relative;
  width:100%;
}
.slide-item{
  display:none;
}
.slide-item.active{
  display:block;
}
.slide-item img{
  width:100%;
  height:auto;
  display:block;
  border-radius:12px;
}
.slider-dots{
  position:absolute;bottom:8px;left:50%;
  transform:translateX(-50%);
  display:flex;gap:5px;z-index:2;
}
.dot{
  width:8px;height:8px;
  border-radius:50%;
  background:rgba(255,255,255,.4);
  cursor:pointer;
  transition:all .2s;
}
.dot.active{
  background:#ffd1b5;
  width:20px;
  border-radius:4px;
}

/* Download app section */
.scan-download-app{
  background:rgba(0,0,0,.7);
  border:1px solid rgba(255,209,181,.15);
  border-radius:12px;
  padding:12px;
  backdrop-filter:blur(6px);
}
.download-heading{
  display:flex;align-items:center;gap:6px;
  margin-bottom:8px;
  font-weight:700;font-size:.9em;
  color:#ffd1b5;
}
.dl-label{
  background:linear-gradient(90deg,#ffd1b5,#fffbb7);
  -webkit-background-clip:text;-webkit-text-fill-color:transparent;
  background-clip:text;
}
.download-body{
  display:flex;align-items:center;gap:10px;
}
.qr-code-img{
  width:90px;height:auto;
  border-radius:8px;
  border:2px solid rgba(255,209,181,.2);
}
.os-buttons{
  display:flex;flex-direction:column;gap:6px;
  flex:1;
}
.os-btn{
  display:flex;align-items:center;gap:6px;
  padding:6px 10px;
  background:linear-gradient(135deg,rgba(255,209,181,.12),rgba(255,251,183,.06));
  border:1px solid rgba(255,209,181,.2);
  border-radius:8px;
  color:#fff;font-size:.8em;font-weight:600;
  transition:all .2s;
}
.os-btn:hover{
  background:linear-gradient(135deg,rgba(255,209,181,.2),rgba(255,251,183,.1));
  color:#fffbb7;
}
.os-btn img{width:18px;height:18px}

/* === BANNER RIGHT — FIXED SIDEBAR === */
.banner-right{
  position:fixed;
  top:180px;
  right:31px;
  width:340px;
  height:429px;
  z-index:100;
  display:flex;
  flex-direction:column;
  gap:10px;
}

/* Phishing stream / video */
.phishing-stream{
  border-radius:12px;
  overflow:hidden;
  background:#0a0301;
  border:1px solid rgba(255,209,181,.1);
}
.game-title{
  display:flex;
  align-items:center;
  gap:8px;
  padding:10px 12px;
  background:linear-gradient(90deg,rgba(255,50,50,.15),rgba(255,100,50,.08));
  border-bottom:1px solid rgba(255,80,50,.2);
}
.game-title h3{
  margin:0;
  font-size:.9em;
  font-weight:700;
  color:#ff6644;
}
.live-icon{
  width:38px;
  height:auto;
}
.video-wrapper{
  position:relative;
  aspect-ratio:16/10;
  background:#000;
}
.stream-poster{
  width:100%;height:100%;
  object-fit:cover;
}
.sound-controls{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  padding:6px 10px;
  background:rgba(0,0,0,.5);
}
.sound-icon{
  width:24px;height:24px;
  cursor:pointer;
  opacity:.7;
  filter:brightness(10);
  transition:opacity .2s;
}
.sound-icon:hover{opacity:1}

/* Contact / social box */
.contact-box{
  display:flex;gap:8px;justify-content:center;
  padding:8px 0;
}
.btn-social{
  width:44px;height:44px;
  display:flex;align-items:center;justify-content:center;
  background:rgba(255,209,181,.08);
  border:1px solid rgba(255,209,181,.15);
  border-radius:50%;
  cursor:pointer;
  transition:all .2s;
}
.btn-social:hover{
  background:rgba(255,209,181,.18);
  transform:scale(1.1);
}
.btn-social img{width:24px;height:24px}

/* === BG-AFTER (login form + buttons, center) === */
.bg-after{
  position:relative;
  width:100%;
  z-index:9;
  padding:101px 0 0;
  margin-top:-101px;
  text-align:center;
}
.bg-after-content{
  width:100%;
}

/* Form signup — matches original: 380px wide, 20px padding, with form-bg */
.form-signup{
  width:380px;
  max-width:100%;
  padding:20px;
  margin:5px auto 10px;
  background:url('assets/img/form-bg.webp') no-repeat center/100% 100%;
  border-radius:16px;
}
.input-wrapper{
  margin-bottom:12px;
}
.input-wrapper p{
  position:relative;
  display:flex;
  align-items:center;
  margin:0;
}
.input-icon{
  position:absolute;
  left:15px;
  width:24px;height:24px;
  opacity:.6;
  filter:brightness(10);
  pointer-events:none;
  z-index:2;
}
.input-wrapper input{
  width:100%;
  height:48px;
  padding:0 15px 0 40px;
  background:url('assets/img/input-bg.webp') no-repeat center/100% 100%;
  border:0;
  border-radius:13px;
  color:#fff;
  font-size:21px;
  outline:none;
}
.input-password input{
  padding:0 40px;
}
.input-wrapper input::placeholder{color:rgba(255,255,255,.35)}
.input-wrapper input:focus{box-shadow:0 0 0 1px rgba(255,209,181,.3)}

/* Eye toggle button — uses eye1.webp like original */
.btn-eye{
  position:absolute;right:12px;
  width:20px;height:20px;
  background:url('assets/img/eye1.webp') no-repeat center/contain;
  border:none;
  cursor:pointer;
  padding:0;
  z-index:2;
}

/* Đăng ký / Tạo tài khoản button — uses btn-register.webp image */
.btn-signup{
  margin-top:8px;
  padding:0 12px;
}
.btn-signup button{
  display:block;
  width:340px;
  max-width:100%;
  height:54px;
  margin:0 auto;
  background:url('assets/img/btn-register.webp') no-repeat 0 0/100% 100%;
  color:transparent;
  border:none;border-radius:20px;
  font-weight:700;font-size:18px;
  cursor:pointer;
  transition:all .2s;
}
.btn-signup button:hover{
  transform:translateY(-1px);
  filter:brightness(1.1);
}

/* Divider — "Hoặc" separator */
.divider{
  display:flex;align-items:center;gap:10px;
  width:340px;max-width:100%;
  margin:10px auto;
  color:rgba(255,255,255,.5);
  font-size:14px;
}
.divider img{
  flex:1;
  height:1px;
  opacity:.5;
}
.divider span{
  white-space:nowrap;
}

/* Bottom buttons: Vào web + Tạo tài khoản */
.bottom-box{
  display:flex;flex-direction:column;gap:0;
  align-items:center;
  margin-bottom:10px;
}

/* Vào Sunwin web — uses access-bg.webp */
.custom-pc{width:340px;max-width:100%}
.highlight-btn,.btn-web{
  display:block;
  width:340px;max-width:100%;
  height:54px;
  line-height:54px;
  margin:0 auto;
  background:url('assets/img/access-bg.webp') repeat 0 0/100% 100%;
  border:none;border-radius:0;
  color:#ffe5b7;
  font-weight:600;font-size:20px;
  cursor:pointer;
  transition:all .2s;
  text-align:center;
}
.highlight-btn:hover,.btn-web:hover{
  filter:brightness(1.15);
}

/* Tạo tài khoản — uses register.webp */
.register-btn{width:340px;max-width:100%}
.register-btn a,.register-btn button{
  display:block;
  width:340px;max-width:100%;
  height:54px;
  line-height:54px;
  margin:0 auto;
  background:url('assets/img/register.webp') no-repeat 0 0/100% 100%;
  border:none;border-radius:0;
  color:#ffe5b7;
  font-weight:700;font-size:20px;
  cursor:pointer;
  transition:all .2s;
  text-align:center;
  text-decoration:none;
}
.register-btn a:hover,.register-btn button:hover{
  filter:brightness(1.15);
  color:#ffe5b7;
}
.btn-icon-globe,.btn-icon-user{
  width:22px;height:22px;
  vertical-align:middle;
  margin-right:6px;
  display:inline-block;
  filter:brightness(10) opacity(.7);
}

/* Bottom warning */
.bottom-warning{
  text-align:center;
  padding:15px 16px;
  font-size:16px;
  color:rgba(255,255,255,.7);
  width:100%;
}
.bottom-warning strong{color:#ffd1b5}

/* Ramos float — top right, fixed */
.ramos-float{
  position:fixed;
  top:30px;
  right:10px;
  width:140px;
  z-index:998;
  display:block;
}
.ramos-float img{
  width:140px;
  height:auto;
}

/* =============================================
   SEO CONTENT (below the fold)
   ============================================= */
.partner{
  max-width:900px;
  margin:0 auto;
  padding:0 16px;
}
.seo-content{
  padding-top:3em;
}

/* Section images */
.section-img{
  width:100%;
  max-width:700px;
  margin:1em auto 1.5em;
  border-radius:12px;
}

/* === CONTENT SECTIONS === */
.content-block{
  background:rgba(255,255,255,.02);
  border-radius:16px;
  padding:2em;margin:2em 0;
  border:1px solid rgba(255,209,181,.06);
}
.content-block h2:first-child{margin-top:0}

/* === GAME TABLES === */
.game-table{
  overflow-x:auto;margin:1em 0 2em;
  border-radius:12px;
  border:1px solid rgba(255,209,181,.1);
}
.game-table table{margin:0;border:none}
.game-table th{
  background:linear-gradient(90deg,rgba(255,209,181,.12),rgba(255,251,183,.08));
  white-space:nowrap;
}
.game-table td{border-color:rgba(255,209,181,.08)}

/* === COMPARISON TABLE === */
.compare-table{overflow-x:auto;margin:1.5em 0}
.compare-table th:first-child{min-width:160px}
.compare-table th:nth-child(2){color:#4ade80}
.compare-table th:nth-child(3){color:#f87171}

/* === FAQ === */
.faq-item{
  background:rgba(255,255,255,.03);
  border:1px solid rgba(255,209,181,.08);
  border-radius:12px;margin:1em 0;overflow:hidden;
}
.faq-q{
  padding:1.2em 1.5em;cursor:pointer;
  font-weight:600;color:#ffd1b5;
  display:flex;justify-content:space-between;align-items:center;
}
.faq-q::after{content:'▼';font-size:.7em;transition:transform .2s}
.faq-item.open .faq-q::after{transform:rotate(180deg)}
.faq-a{
  padding:0 1.5em 1.2em;
  display:none;color:rgba(255,255,255,.85);
}
.faq-item.open .faq-a{display:block}

/* === PROMO CARDS === */
.promo-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:1.5em;margin:1.5em 0}
.promo-card{
  background:linear-gradient(135deg,rgba(255,209,181,.06),rgba(255,251,183,.03));
  border:1px solid rgba(255,209,181,.1);
  border-radius:12px;padding:1.5em;
  transition:transform .2s;
}
.promo-card:hover{transform:translateY(-3px)}
.promo-card h3{margin-top:0;font-size:1.1em}

/* === LINKED SITES === */
.linked-sites{
  display:grid;grid-template-columns:repeat(auto-fit,minmax(300px,1fr));
  gap:1.5em;margin:1.5em 0;
}
.site-card{
  background:linear-gradient(135deg,rgba(255,209,181,.08),rgba(255,251,183,.03));
  border:1px solid rgba(255,209,181,.12);
  border-radius:16px;padding:2em;
  text-align:center;transition:all .3s;
}
.site-card:hover{
  transform:translateY(-4px);
  box-shadow:0 8px 30px rgba(255,209,181,.15);
  border-color:rgba(255,209,181,.3);
}
.site-card h3{color:#fffbb7;margin-bottom:.5em}
.site-card .domain{
  font-size:1.3em;font-weight:700;
  background:linear-gradient(90deg,#ffd1b5,#fffbb7);
  -webkit-background-clip:text;-webkit-text-fill-color:transparent;
  background-clip:text;
}

/* === FOOTER === */
.site-footer{
  background:#050505;
  border-top:1px solid rgba(255,209,181,.1);
  padding:3em 0 1.5em;margin-top:3em;
}
.footer-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(200px,1fr));
  gap:2em;margin-bottom:2em;
}
.footer-col h4{
  color:#ffd1b5;font-size:.95em;
  margin-bottom:1em;text-transform:uppercase;
  letter-spacing:1px;
}
.footer-col ul{list-style:none;margin:0;padding:0}
.footer-col li{margin-bottom:.6em}
.footer-col a{color:rgba(255,255,255,.6);font-size:.9em}
.footer-col a:hover{color:#ffd1b5}
.footer-inner{max-width:1009px;margin:0 auto;padding:0 16px}
.footer-logo{margin-bottom:1em}
.footer-logo img{height:40px;width:auto}
.footer-social{display:flex;gap:1em;margin-top:.5em}
.footer-social a{
  width:36px;height:36px;
  display:flex;align-items:center;justify-content:center;
  background:rgba(255,209,181,.1);border-radius:50%;
  transition:background .2s;
}
.footer-social a:hover{background:rgba(255,209,181,.2)}
.footer-social a img{width:20px;height:20px}
.footer-bottom{
  text-align:center;padding-top:1.5em;
  border-top:1px solid rgba(255,255,255,.05);
  font-size:.8em;color:rgba(255,255,255,.35);
}
.footer-bottom p{margin-bottom:.3em}
.footer-cert{
  display:inline-flex;align-items:center;gap:.5em;
  margin:1em 0;
}
.footer-cert img{height:28px;width:auto}
.footer-links{
  display:flex;gap:16px;justify-content:center;
  flex-wrap:wrap;margin:1em 0;
}
.footer-links a{color:rgba(255,255,255,.5);font-size:.85em}
.footer-links a:hover{color:#ffd1b5}

/* === SCROLL TO TOP === */
.scroll-top{
  position:fixed;bottom:24px;right:24px;
  width:44px;height:44px;
  background:none;
  border:none;
  cursor:pointer;
  opacity:0;visibility:hidden;transition:all .3s;
  z-index:99;
  padding:0;
}
.scroll-top img{width:44px;height:44px}
.scroll-top.visible{opacity:1;visibility:visible}
.scroll-top:hover{transform:translateY(-3px)}

/* =============================================
   RESPONSIVE
   ============================================= */
@media(max-width:1600px){
  .banner-left{left:10px;top:80px;width:260px;height:auto}
  .banner-right{right:10px;width:260px}
  .ramos-float{display:none}
}
@media(max-width:1280px){
  .banner-left,.banner-right{
    position:static;
    width:100%;
    max-width:400px;
    height:auto;
    margin:10px auto;
  }
  .main-inner{
    width:100%;
    max-width:700px;
    padding:16px;
  }
  .ramos-float{display:none}
}
@media(max-width:900px){
  .main-inner{
    max-width:100%;
    padding:12px;
  }
  .logo-box{width:100%;padding:16px 0}
  .main-logo{max-width:200px}
}
@media(max-width:640px){
  .header-inner{flex-direction:column;gap:10px}
  .header-nav{width:100%;justify-content:center;flex-wrap:wrap}
  .content-block{padding:1.2em}
  th,td{padding:8px 10px;font-size:.85em}
  .btn{padding:8px 16px;font-size:.85em}
  .main-logo{max-width:160px}
  .slogan-img{max-width:150px}
  .logo-box{width:100%}
  .bg-after-content{max-width:100%}
}

/* === UTILITY === */
.text-center{text-align:center}
.text-gold{color:#ffd1b5}
.text-yellow{color:#fffbb7}
.text-muted{color:rgba(255,255,255,.5)}
.highlight-box{
  background:linear-gradient(90deg,rgba(255,209,181,.08),rgba(255,251,183,.04));
  border-left:3px solid #ffd1b5;
  padding:1em 1.5em;border-radius:0 8px 8px 0;
  margin:1.5em 0;
}
