body, html {
  margin:0; padding:0;
  font-family:'Arial',sans-serif;
  background:#0a1628;
  color:#fff;
  overflow-x:hidden;
  scroll-behavior: smooth;
}
/* ===== Rainbow / Neon Text Animation ===== */
@keyframes rainbow {
  0%{background-position:0% 50%;}
  50%{background-position:100% 50%;}
  100%{background-position:0% 50%;}
}
/* Premium panel title - replaces alay rainbow */
.rainbow-text{
  background: linear-gradient(135deg, #ffffff 0%, #00d9ff 60%, #0099bb 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 700;
  font-size: 20px;
  letter-spacing: 0.5px;
  margin: 0 0 18px 0;
  text-shadow: none;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ===== Main Profile Section ===== */
.main-content{
  display:flex; flex-direction:column; align-items:stretch;
  justify-content:center;
  margin-top:80px; padding:20px; gap:20px;
  text-align:center;
}
.main-content > *:not(#about):not(.skillcard-wrap):not(.whatido-wrap) {
  align-self: center;
}
#about {
  text-align: left !important;
  width: calc(100% + 40px) !important;
  margin-left: -20px !important;
  margin-right: -20px !important;
  max-width: none !important;
  border-radius: 16px !important;
  box-sizing: border-box;
  border-left: 3px solid #00d9ff !important;
  border-right: 3px solid #00d9ff !important;
  border-top: 1px solid rgba(0,217,255,0.3) !important;
  border-bottom: 1px solid rgba(0,217,255,0.3) !important;
}

/* ===== Typing SVG Centered ===== */
.typing{
  display:block;
  margin:15px 0 25px;
filter: drop-shadow(0 0 6px #00d9ff);
}

/* ===== Stats Section ===== */
.stats-container{
  display:flex;
  justify-content:center;
  flex-wrap:wrap;
  gap:25px;
  margin-top:20px;
}
.stat-box{
  background: rgba(10, 30, 50, 0.7);
  backdrop-filter: blur(12px);
  padding:15px 25px;
  border-radius:15px;
  text-align:center;
  box-shadow:0 0 10px rgba(0,217,255,0.3);
  min-width:120px;
  transition:0.3s;
}
.stat-number{
  font-size:clamp(20px,5vw,32px);
  font-weight:bold;
  color:#00d9ff;
  text-shadow:0 0 3px rgba(0,217,255,0.4);
}
.stat-label{
  font-size:14px;
  color:#fff;
  opacity:0.85;
}
.stat-box:hover{
  transform:translateY(-3px) scale(1.05);
  box-shadow:0 0 15px rgba(0,217,255,0.35);
}

/* ===== About Section ===== */
#about{
  max-width:800px; margin:50px auto;
  background: rgba(10, 30, 50, 0.7);
  backdrop-filter: blur(12px);
  padding:25px 20px; border-radius:20px;
  box-shadow:0 0 12px rgba(0,217,255,0.25);
  line-height:1.8; text-align:left;
  font-size:16px;
}
#about p{
  margin-bottom:15px;
  text-indent: 1.5em;
}

/* ===== Skills Section ===== */
#featured-projects{
  width: calc(100% + 40px);
  margin-left: -20px;
  margin-right: -20px;
  margin-top: 50px;
  margin-bottom: 50px;
  padding: 0 12px;
  box-sizing: border-box;
}
#featured-projects h2{
  text-align:center;
  font-size:28px;
  margin-bottom:30px;
  background: #ffffff;
  -webkit-background-clip:text;
  -webkit-text-fill-color:transparent;
}
.skills-grid{
  display:flex;
  flex-direction:column;
  gap:20px;
  margin-top:25px;
}
.skill-category{
  backdrop-filter: blur(12px);
  padding:25px;
  border-radius:20px;
  box-shadow:0 0 15px rgba(0, 217, 255, 0.3);
  transition:0.3s;
  border: 1px solid rgba(255,255,255,0.1);
}
.skill-category:hover{
  transform:translateY(-3px);
}
.skill-category-header{
  display:flex;
  align-items:center;
  gap:15px;
  margin-bottom:15px;
}
.skill-category-icon{
  font-size:40px;
  transition:0.3s;
  flex-shrink:0;
}
.skill-category:hover .skill-category-icon{
  transform:scale(1.1);
}
.skill-category h3{
  font-size:22px;
  font-weight:bold;
  color:#fff;
  margin:0;
}
.skill-category p{
  font-size:14px;
  color:rgba(255,255,255,0.85);
  margin-bottom:15px;
  line-height:1.6;
}
.skill-tags{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
}
.skill-tag{
  background:rgba(0, 0, 0, 0.3);
  color:#fff;
  padding:8px 16px;
  border-radius:25px;
  font-size:13px;
  border:1px solid rgba(255, 255, 255, 0.2);
  transition:0.3s;
}
.skill-tag:hover{
  background:rgba(255, 255, 255, 0.1);
  transform:scale(1.05);
  border-color:rgba(255, 255, 255, 0.4);
}

/* Background warna berbeda untuk setiap kategori */
.skill-category:nth-child(1){
  background: rgba(0, 100, 120, 0.4);
}
.skill-category:nth-child(1) .skill-category-icon{
  color:#00d9ff;
}
.skill-category:nth-child(1):hover{
  box-shadow:0 0 25px rgba(0, 217, 255, 0.5);
}

.skill-category:nth-child(2){
  background: rgba(60, 40, 100, 0.4);
}
.skill-category:nth-child(2) .skill-category-icon{
  color:#a78bfa;
}
.skill-category:nth-child(2):hover{
  box-shadow:0 0 25px rgba(167, 139, 250, 0.5);
}

.skill-category:nth-child(3){
  background: rgba(100, 80, 20, 0.4);
}
.skill-category:nth-child(3) .skill-category-icon{
  color:#fbbf24;
}
.skill-category:nth-child(3):hover{
  box-shadow:0 0 25px rgba(251, 191, 36, 0.5);
}

.skill-category:nth-child(4){
  background: rgba(20, 80, 60, 0.4);
}
.skill-category:nth-child(4) .skill-category-icon{
  color:#34d399;
}
.skill-category:nth-child(4):hover{
  box-shadow:0 0 25px rgba(52, 211, 153, 0.5);
}

.skill-category:nth-child(5){
  background: rgba(80, 40, 80, 0.4);
}
.skill-category:nth-child(5) .skill-category-icon{
  color:#c084fc;
}
.skill-category:nth-child(5):hover{
  box-shadow:0 0 25px rgba(192, 132, 252, 0.5);
}

.skill-category:nth-child(6){
  background: rgba(20, 60, 100, 0.4);
}
.skill-category:nth-child(6) .skill-category-icon{
  color:#60a5fa;
}
.skill-category:nth-child(6):hover{
  box-shadow:0 0 25px rgba(96, 165, 250, 0.5);
}

.skill-category:nth-child(7){
  background: rgba(100, 30, 60, 0.4);
}
.skill-category:nth-child(7) .skill-category-icon{
  color:#f472b6;
}
.skill-category:nth-child(7):hover{
  box-shadow:0 0 25px rgba(244, 114, 182, 0.5);
}

.skill-category:nth-child(8){
  background: rgba(20, 80, 100, 0.4);
}
.skill-category:nth-child(8) .skill-category-icon{
  color:#22d3ee;
}
.skill-category:nth-child(8):hover{
  box-shadow:0 0 25px rgba(34, 211, 238, 0.5);
}

.skill-category:nth-child(9){
  background: rgba(70, 20, 100, 0.4);
}
.skill-category:nth-child(9) .skill-category-icon{
  color:#a855f7;
}
.skill-category:nth-child(9):hover{
  box-shadow:0 0 25px rgba(168, 85, 247, 0.5);
}

/* ===== Projects Section ===== */

/* ===== Projects Slider (Horizontal Scroll) ===== */
.projects {
  display: flex;
  gap: 25px;
  overflow-x: auto;
  padding: 20px 15px 25px;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
}

/* Scrollbar yang lebih stylish */
.projects::-webkit-scrollbar {
  height: 8px;
}
.projects::-webkit-scrollbar-thumb {
  background: linear-gradient(90deg, #00d9ff, #00b8d4);
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0, 217, 255, 0.5);
}
.projects::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(90deg, #00ffff, #00d9ff);
}
.projects::-webkit-scrollbar-track {
  background: rgba(0, 217, 255, 0.1);
  border-radius: 10px;
}

/* ===== Contact Section ===== */
.site-footer{
  background: transparent; color:#00d9ff; text-align:center;
  padding:0rem 0.5rem; margin-top:0rem; 
}
.site-footer a{
  margin:0 10px; color:#00d9ff; font-size:22px; transition:0.3s;
}
.site-footer a:hover{ color:#0ab8d1; transform:scale(1.2); }

/* ===== Responsive ===== */
@media(max-width:500px){
  .rainbow-text{ font-size:18px; }
  .typing{ width:100%; }
  #about{ font-size:14px; padding:20px; }
  .stat-box{ padding:12px 18px; min-width:100px; }
}

.apk-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
  max-height: 65vh; /* scrollable list */
  overflow-y: auto;
  padding-right: 6px;
}

.apk-list::-webkit-scrollbar {
  width: 6px;
}
.apk-list::-webkit-scrollbar-thumb {
  background: #00d9ff;
  border-radius: 10px;
}
.apk-list::-webkit-scrollbar-track {
  background: transparent;
}
.apk-item {
  display:flex;align-items:center;gap:15px;background:rgba(0,0,0,0.6);backdrop-filter:blur(10px);padding:15px 5px;border-radius:14px;
}

.apk-item img {
  width: 50px;
  height: 50px;
  border-radius: 10px;
}

.apk-item .apk-info b {
  color: #00d9ff;
  display: block;
}
.apk-item .apk-info small {
  opacity: 0.8;
  font-size: 12px;
}

.panel-grid{
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:10px;
  margin-top: 14px;
  
}
/* ===== PANEL ITEM - Premium redesign ===== */
.panel-item{
  position:relative;
  overflow:hidden;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(0,217,255,0.12);
  border-radius:18px;
  padding:20px 10px 18px;
  cursor:pointer;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:10px;
  transition: all 0.22s cubic-bezier(0.34,1.2,0.64,1);
}
.panel-item i{
  font-size:22px;
  color:#00d9ff;
  opacity: 0.9;
  transition: all 0.2s;
}
.panel-item span{
  font-size:13px;
  font-weight:600;
  letter-spacing:.3px;
  color: rgba(255,255,255,0.8);
}
.panel-item::before{
  content:"";
  position:absolute;
  top:0; left:0; right:0;
  height:1px;
  background: linear-gradient(90deg, transparent, rgba(0,217,255,0.5), transparent);
  opacity: 0;
  transition: opacity 0.2s;
}
.panel-item::after{
  content:"";
  position:absolute;
  inset:0;
  background:linear-gradient(135deg,rgba(0,217,255,0.06),transparent 60%);
  opacity:0;
  transition: opacity 0.2s;
}
.panel-item:hover::before{
  opacity: 1;
}
.panel-item:hover::after{
  opacity: 1;
}
.panel-item:hover{
  transform:translateY(-2px);
  background:rgba(0,217,255,0.07);
  border-color: rgba(0,217,255,0.3);
  box-shadow: 0 4px 20px rgba(0,217,255,0.12), 0 0 0 1px rgba(0,217,255,0.1);
}
.panel-item:hover i{
  opacity: 1;
  transform: scale(1.08);
  filter: drop-shadow(0 0 6px rgba(0,217,255,0.7));
}
.panel-item:active{
  transform:scale(0.97);
}
@keyframes scan{
  to{ transform:translateX(100%); }
}
.panel-footer{
  margin-top:20px;
  text-align:center;
  font-size:12px;
  color: rgba(255,255,255,0.35);
  letter-spacing: 0.3px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.online{
  display:inline-block;
  width:6px;height:6px;
  background:#00e676;
  border-radius:50%;
  box-shadow: 0 0 6px #00e676;
  animation: pulse-online 2s ease-in-out infinite;
}
@keyframes pulse-online {
  0%, 100% { opacity: 1; box-shadow: 0 0 6px #00e676; }
  50% { opacity: 0.6; box-shadow: 0 0 12px #00e676; }
}
#panelMenu{
  /* Additional shadow override removed - handled above */
}
.top-bar{
  position:fixed;
  top:12px;
  left:50%;
  transform:translateX(-50%);
  width:calc(100% - 32px);
  max-width:420px;

  display:flex;
  align-items:center;
  justify-content:space-between;

  background: rgba(6,14,28,0.75);
  backdrop-filter:blur(20px) saturate(1.5);
  -webkit-backdrop-filter:blur(20px) saturate(1.5);
  border: 1px solid rgba(0,217,255,0.15);
  border-radius:20px;
  padding:10px 14px;

  box-shadow: 0 4px 20px rgba(0,0,0,0.4), 0 0 0 1px rgba(0,217,255,0.06);
  z-index:10002;
}

/* Jam */
.time-box{
  display:flex;
  align-items:center;
  gap:7px;
  color:#00d9ff;
  font-size:16px;
  font-weight:700;
  letter-spacing: 0.5px;
}

.time-box i{
  font-size:14px;
  opacity: 0.7;
}

/* Tombol menu */
.menu-toggle{
  background:rgba(255,255,255,0.08);
  border:none;
  width:42px;
  height:42px;
  border-radius:14px;
  display:flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
  transition:.3s;
  box-shadow:0 0 6px rgba(0,217,255,0.2);
}

.menu-toggle i{
  font-size:20px;
  color:#00d9ff;
}

.menu-toggle:hover{
  background:rgba(0,255,255,0.2);
  box-shadow:0 0 8px rgba(0,217,255,0.3);
}
}
.project-video{
display: flex;
justify-content: center;
width:100%;
position: relative;
border-radius:16px;
overflow:hidden;
border: 1px solid rgba(0,217,255,0.15);
}

.project-video video{
width:100%;
height:100%;
display:block;
object-fit:cover;
pointer-events:none; /* TANPA CONTROL */
}

.video-overlay{
  position:absolute;
  inset:0;
  background: linear-gradient(
    to top,
    rgba(6,14,28,.7) 0%,
    rgba(6,14,28,0.1) 50%,
    transparent 100%
  );
  pointer-events:none;
}

.project-video span{
  position:absolute;
  bottom:10px;
  left:12px;
  font-weight:600;
  color:#00d9ff;
  text-shadow:0 0 8px #000;
}
    .project-video video{
  width:100%;
  height:170px;
  border-radius:16px;
  object-fit:cover;
}
.profile-banner {
  width: 100%;             /* lebar banner */
  max-width: 400px;
  height: 200px;          /* tinggi banner */
  margin: 0 auto 30px;
  background: url('https://raw.githubusercontent.com/PretyFX69/music-files2/refs/heads/main/coding.jpg') center/cover no-repeat; /* gambar background */
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  box-shadow: 0 0 5px #00d9ff;
  border:1px solid #00d9ff;
}

/* Foto profil lingkaran menonjol */
.profile-pic {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  border:1px solid #00d9ff;
  box-shadow: 0 0 12px #00d9ff;
  position: absolute;
  bottom: -20px; /* sedikit menonjol keluar */
  overflow:hidden; box-shadow:0 0 5px #00d9ff;
  
}

  .product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    padding: 10px;
  }

  .product-card {
    position: relative;
    background: linear-gradient(145deg, rgba(15,35,60,0.9), rgba(10,25,45,0.9));
    backdrop-filter: blur(15px);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0,217,255,0.15), 
                inset 0 1px 0 rgba(255,255,255,0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(0,217,255,0.2);
  }

  .product-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #00d9ff, #00ffff, #00d9ff);
    background-size: 200% 100%;
    animation: shimmer 3s linear infinite;
    opacity: 0;
    transition: opacity 0.3s;
  }

  @keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
  }

  .product-card:hover::before {
    opacity: 1;
  }

  .product-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 15px 45px rgba(0,217,255,0.3),
                0 0 60px rgba(0,217,255,0.1),
                inset 0 1px 0 rgba(255,255,255,0.2);
    border-color: rgba(0,217,255,0.5);
  }

  .product-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
    cursor: zoom-in;
    border-bottom: 2px solid rgba(0,217,255,0.3);
    transition: all 0.4s ease;
  }

  .product-card:hover img {
    transform: scale(1.05);
    filter: brightness(1.1) contrast(1.05);
  }

  .product-info {
    padding: 25px;
    text-align: left;
  }

  .product-info h3 {
    margin: 0 0 12px 0;
    font-size: 20px;
    color: #fff;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-shadow: 0 2px 8px rgba(0,217,255,0.3);
    line-height: 1.3;
  }

  .product-info p {
    font-size: 14px;
    color: rgba(255,255,255,0.85);
    line-height: 1.7;
    margin: 0 0 20px 0;
    text-align: justify;
  }

  /* Lightbox overlay */
  

  

  @media (max-width: 500px) {
    .product-card img {
      height: 140px;
    }
  }
  /* OVERLAY */
#panelOverlay{
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 10000;
}

/* POPUP MENU - Premium redesign */
#panelMenu{
  width: 92%;
  max-width: 400px;
  max-height: 85vh;

  background: rgba(6,14,28,0.92);
  border: 1px solid rgba(0,217,255,0.18);
  border-radius: 28px;

  padding: 24px 20px 20px;
  margin-top: 70px;

  overflow-y: auto;
  box-shadow:
    0 0 0 1px rgba(0,217,255,0.08),
    0 8px 32px rgba(0,0,0,0.6),
    0 0 60px rgba(0,217,255,0.12),
    inset 0 1px 0 rgba(255,255,255,0.06);
  animation: panelSlideUp .3s cubic-bezier(0.34,1.56,0.64,1);
}
/* animasi muncul */
@keyframes panelSlideUp{
  from{
    transform: translateY(20px) scale(.97);
    opacity: 0;
  }
  to{
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}
@keyframes pop{
  from{
    transform: scale(.85);
    opacity: 0;
  }
  to{
    transform: scale(1);
    opacity: 1;
  }
}
@media (min-width: 1024px){
  .top-bar{
    max-width: 900px;
    padding: 14px 20px;
  }
}
/* ===== GAMING HAMBURGER BUTTON - Premium ===== */
.gaming-toggle{
  width:40px;
  height:40px;
  background: rgba(0,217,255,0.08);
  border: 1px solid rgba(0,217,255,0.2);
  border-radius:12px;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:5px;
  cursor:pointer;
  transition: all 0.22s cubic-bezier(0.34,1.2,0.64,1);
}

.gaming-toggle span{
  width:18px;
  height:2px;
  background:#00d9ff;
  border-radius:4px;
  transition:.3s cubic-bezier(0.34,1.2,0.64,1);
}

/* Hover efek */
.gaming-toggle:hover{
  background: rgba(0,217,255,0.15);
  border-color: rgba(0,217,255,0.4);
  transform:scale(1.05);
}

/* ===== AKTIF → JADI X ===== */
.gaming-toggle.active span:nth-child(1){
  transform:translateY(7px) rotate(45deg);
}
.gaming-toggle.active span:nth-child(2){
  opacity:0;
  transform: scaleX(0);
}
.gaming-toggle.active span:nth-child(3){
  transform:translateY(-7px) rotate(-45deg);
}

.page-section.active {
  display: block;
}

/* ── Z-Tools entrance animation ── */
@keyframes ztEntranceFade {
  0%   { opacity: 0; transform: translateY(28px) scale(0.97); }
  60%  { opacity: 1; transform: translateY(-4px) scale(1.005); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes ztEntranceCard {
  0%   { opacity: 0; transform: translateY(22px); }
  100% { opacity: 1; transform: translateY(0); }
}
#ztools.zt-entering {
  animation: ztEntranceFade 0.5s cubic-bezier(0.22, 1, 0.36, 1) both;
}
#ztools.zt-entering .zt-dash-header {
  animation: ztEntranceCard 0.45s 0.08s cubic-bezier(0.22, 1, 0.36, 1) both;
}
#ztools.zt-entering .zt-dash-card:nth-child(1) { animation: ztEntranceCard 0.4s 0.12s cubic-bezier(0.22,1,.36,1) both; }
#ztools.zt-entering .zt-dash-card:nth-child(2) { animation: ztEntranceCard 0.4s 0.18s cubic-bezier(0.22,1,.36,1) both; }
#ztools.zt-entering .zt-dash-card:nth-child(3) { animation: ztEntranceCard 0.4s 0.24s cubic-bezier(0.22,1,.36,1) both; }
#ztools.zt-entering .zt-dash-card:nth-child(4) { animation: ztEntranceCard 0.4s 0.29s cubic-bezier(0.22,1,.36,1) both; }
#ztools.zt-entering .zt-dash-card:nth-child(5) { animation: ztEntranceCard 0.4s 0.34s cubic-bezier(0.22,1,.36,1) both; }
#ztools.zt-entering .zt-dash-card:nth-child(6) { animation: ztEntranceCard 0.4s 0.38s cubic-bezier(0.22,1,.36,1) both; }
#ztools.zt-entering .zt-dash-info  { animation: ztEntranceCard 0.4s 0.42s cubic-bezier(0.22,1,.36,1) both; }
#Product h2 {
  margin-top: 100px; /* turunin judul biar gak ketutup panel */
}
#projects h2 {
 margin-top: 100px; 
}


    .bg {
        position: fixed;
        inset: 0;
        background: url("https://raw.githubusercontent.com/NdikzDatabase/Database/main/Database/1762559143736-x3crbj.jpg") 
        center/cover no-repeat;
        mix-blend-mode: screen;
        opacity: 0.35;
        z-index: -3;
    }
    .grid {
        position: fixed;
        width: 200%;
        height: 200%;
        top: -20%;
        left: -50%;
        background:
          repeating-linear-gradient(#ffffff05 0px,#ffffff05 2px,transparent 2px,transparent 60px),
          repeating-linear-gradient(90deg,#ffffff05 0px,#ffffff05 2px,transparent 2px,transparent 60px);
        animation: gridmove 18s linear infinite;
        z-index: -2;
        opacity: 0.18;
    }
    @keyframes gridmove { from {transform: translateY(0);} to {transform: translateY(-300px);} }

    .container {
        width: 100%;
        max-width: 920px;
        margin: 0 auto;
        display: grid;
        grid-template-columns: 1fr 360px;
        gap: 18px;
    }

    .player {
        padding: 24px 20px 20px;
        border-radius: 24px;
        background: linear-gradient(160deg, rgba(0,30,50,0.95) 0%, rgba(0,10,30,0.98) 100%);
        border: 1px solid rgba(0,217,255,0.2);
        backdrop-filter: blur(16px);
        box-shadow: 0 0 40px rgba(0,217,255,0.15), 0 8px 32px rgba(0,0,0,0.5);
    }

    .brand { 
       text-align:center; 
       margin-top: 100px;
       margin-bottom:14px; 
       font-weight:700;
       font-size:26px; 
       color:transparent;
       display:block;
       background:linear-gradient(90deg,#ff4da6,#ffd54a,#4df5ff,#7d6bff,#ff6b6b);
      background-clip:
      text;-webkit-background-clip:text;
      animation:rainbow 6s linear infinite;background-size:300% 100%;
    }
    @keyframes rainbow { 0%{background-position:0%}50%{background-position:100%}100%{background-position:0%} }


    .cd-box { 
      text-align:center; 
      margin: 10px 0 20px;
      position: relative;
    }

    .cd {
        width: 160px !important;
        height: 160px !important;
        border-radius: 50% !important;
        margin: 0 auto;
        background-size: cover;
        background-position: center;
        border: 4px solid #00d9ff;
        box-shadow: 0 0 0 12px rgba(0,217,255,0.12), 0 0 35px rgba(0,217,255,0.6), 0 0 60px rgba(0,217,255,0.25);
        transform-origin: center;
        transition: box-shadow .35s ease;
        animation: spin 12s linear infinite;
        animation-play-state: paused;
        cursor: pointer;
        position: relative;
        clip-path: none !important;
        -webkit-tap-highlight-color: transparent;
        outline: none;
    }
    .cd::after {
      content: none;
    }
    @keyframes spin { 
      from {transform:rotate(0deg)} to {transform:rotate(360deg)} }
    .cd.playing { 
      animation-play-state: running;
      box-shadow: 0 0 0 8px rgba(0,217,255,0.12), 0 0 50px rgba(0,217,255,0.5);
      border-color: #00d9ff;
    }

    .visualizer { 
      display:flex; 
      justify-content:center;
      gap:4px; 
      margin-top:12px; 
      height:36px; align-items:flex-end; }
    .bar { 
      width:6px; 
      height:6px; 
      background:linear-gradient(135deg,#00d9ff,#00d9ff); 
      border-radius:3px; 
      transition:height .12s linear;
    }

    select, input[type="text"] {
        width:100%; 
        padding:10px 12px; 
        border-radius:10px; 
        border:none;
        background: rgba(255,255,255,0.06); 
        color:white; 
        font-size:15px; margin-bottom:12px;
    }

    .btn {
        width:100%; 
        padding:12px; 
        border-radius:10px; 
        border:none; 
        cursor:pointer;
        font-size:16px; 
        background:linear-gradient(135deg,#00CED1,#9900ff); 
        color:white; 
        box-shadow:0 0 5px #00CED1;
    }
    .controls { 
      display: flex; 
      gap: 16px; 
      margin: 16px 0 10px; 
      align-items: center; 
      justify-content: center;
    }
    .controls button { 
      background: rgba(0,217,255,0.08);
      border: 1px solid rgba(0,217,255,0.2);
      color: white;
      font-size: 20px; 
      cursor: pointer; 
      padding: 12px 16px; 
      border-radius: 50%;
      transition: all 0.2s ease;
      display: flex; align-items: center; justify-content: center;
      width: 48px; height: 48px;
    }
    .controls button:hover {
      background: rgba(0,217,255,0.2);
      border-color: #00d9ff;
      box-shadow: 0 0 12px rgba(0,217,255,0.3);
      transform: scale(1.08);
    }
    .controls button:active { transform: scale(0.95); }
    #playBtn {
      width: 64px !important;
      height: 64px !important;
      font-size: 26px !important;
      background: linear-gradient(135deg, rgba(0,217,255,0.25), rgba(0,100,180,0.3)) !important;
      border: 2px solid #00d9ff !important;
      box-shadow: 0 0 20px rgba(0,217,255,0.3) !important;
    }
    #playBtn:hover {
      box-shadow: 0 0 30px rgba(0,217,255,0.6) !important;
    }

    .yt-info { 
      text-align: center; 
      margin-top: 12px;
      padding: 0 8px;
    }
    .yt-info h2 { 
      font-size: 17px;
      font-weight: 700;
      margin-bottom: 4px; 
      white-space: nowrap; 
      overflow: hidden; 
      text-overflow: ellipsis;
      color: #fff;
      letter-spacing: 0.3px;
    }
    .yt-info p { 
      font-size: 13px; 
      color: rgba(0,217,255,0.8);
      margin: 0;
      font-weight: 500;
    }

    .yt-bar { 
      width: 100%; 
      height: 5px; 
      background: rgba(255,255,255,0.1); 
      border-radius: 10px; 
      position: relative; 
      cursor: pointer; 
      margin-top: 14px;
      transition: height 0.2s ease;
    }
    .yt-bar:hover {
      height: 7px;
    }
    .yt-bar:hover #seekThumb {
      opacity: 1;
    }
    #progress { 
      width: 0%; 
      height: 100%; 
      background: linear-gradient(90deg, #00d9ff, #00aaff); 
      border-radius: 10px; 
      transition: width .1s linear;
      box-shadow: 0 0 8px rgba(0,217,255,0.6);
      position: relative;
    }
    #seekThumb {
      position: absolute;
      right: -6px;
      top: 50%;
      transform: translateY(-50%);
      width: 14px; height: 14px;
      background: #00d9ff;
      border-radius: 50%;
      box-shadow: 0 0 8px #00d9ff;
      opacity: 0;
      transition: opacity 0.2s;
      pointer-events: none;
    }
    .time-row { 
      display: flex; 
      justify-content: space-between; 
      font-size: 12px; 
      color: rgba(255,255,255,0.6); 
      margin-top: 8px;
      padding: 0 2px;
    }
    .time-row span { font-variant-numeric: tabular-nums; }

    .playlist { 
      max-height:300px; 
      overflow:auto; 
      margin-top:12px;
      border-top:1px solid #333; 
      padding-top:10px;
      }
    .song-item { 
      padding:10px; 
      background:#111; 
      margin-bottom:8px; 
      border-radius:8px; 
      cursor:pointer; 
      display:flex; 
      justify-content:space-between; 
      align-items:center;
      }
    .song-item:hover { background:#222; }
    .song-meta { 
      display:flex; 
      flex-direction:column; 
      gap:2px; }
    .song-title { font-size:15px; }
    .song-artist { font-size:12px; opacity:0.65; }

    @media (max-width:880px){
      .container{grid-template-columns:1fr; 
      padding-bottom:40px;}
    }
    .playlist { height: calc(100vh - 250px); }
.menu-panel {
    position: absolute;
    top: 60px;      
    left: 12px;       /* biar nempel kiri */
    width: 150px;
    background: rgba(0,0,0,0.48);
    backdrop-filter: blur(10px);
    border-radius: 14px;

    /* GARIS PEMBATAS MENU */
    border: 1px solid rgba(255,255,255,0.2);

    box-shadow: 0 0 20px rgba(0,0,0,0.4);
    padding: 8px 0;
    display: none;
    z-index: 9999;
}

.menu-item {
    padding: 12px 16px;
    color: white;
    font-size: 15px;
    cursor: pointer;
    transition: 0.2s;
    border-bottom: 1px solid rgba(255,255,255,0.15); /* GARIS ANTAR ITEM */
}

.menu-item:last-child {
    border-bottom: none; /* item terakhir tanpa garis */
}

.menu-item:hover {
    background: rgba(255,255,255,0.10);
}
.menu-btn {
    background: none !important;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    color: white;
    font-size: 25px;
    cursor: pointer;
    padding: 6px;
}

.menu-btn:focus,
.menu-btn:active {
    outline: none !important;
    background: none !important;
    box-shadow: none !important;
}
.submenu {
        position: absolute;
    top: 80px;        /* supaya dekat tombol */
    left: 150px;       /* biar nempel kiri */
    width: 150px;
    background: rgba(0,0,0,0.48);
    backdrop-filter: blur(10px);
    border-radius: 14px;

    /* GARIS PEMBATAS MENU */
    border: 1px solid rgba(255,255,255,0.2);

    box-shadow: 0 0 20px rgba(0,0,0,0.4);
    padding: 8px 0;
    display: none;
    z-index: 9999;
}

.submenu-item {
    padding: 12px 16px;
    color: white;
    font-size: 15px;
    cursor: pointer;
    transition: 0.2s;
    border-bottom: 1px solid rgba(255,255,255,0.15);
}

.submenu-item:hover {
    background: rgba(255,255,255,0.1);
}
.title-wrap {
  width: 100%;
  max-width: 260px;   /* <— batas lebar text, aman buat player kamu */
  margin: 0 auto;
  overflow: hidden;
  white-space: nowrap;
  text-align: center;
  position: relative;
}

.title-scroll {
  display: inline-block;
  white-space: nowrap;
}

.scrolling {
  animation: scroll-title 20s linear infinite;
  padding-left: 100%;
}

@keyframes scroll-title {
  0% { transform: translateX(0); }
  100% { transform: translateX(-100%); }
}
.page-section { display:none; }
/* MENU AI FULL LAYAR */
/* MENU AI FULL FRAME */
#ai {
  height: 100vh;
  padding: 0;
  margin: 0;
  overflow: hidden;
  background: #070f1a;
}

/* IFRAME FULL */
#ai iframe,
.ai-frame {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
  margin-top: 1.9px;
}

/* HILANGKAN FOOTER DI AI */
#ai.active ~ .site-footer,
#ztools.active ~ .site-footer,
#music.active ~ .site-footer {
  display: none;
}

/* Jarak antara top-bar (jam+hamburger) dan konten music */
#music .czm-topbar {
  margin-top: 72px !important;
}
/* KHUSUS SAAT MENU AI AKTIF */
/* KHUSUS SAAT MENU AI AKTIF */

/* ===== SECTION BREAK ===== */

.hobi-section {
  width: calc(100% + 40px);
  margin-left: -20px;
  margin-top: 24px;
  margin-bottom: 10px;
  padding: 0;
  box-sizing: border-box;
}
.hobi-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
}
.hobi-icon-box {
  width: 54px; height: 54px;
  border-radius: 14px;
  background: rgba(0,217,255,0.12);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
  color: #00d9ff;
  flex-shrink: 0;
  box-shadow: 0 0 10px rgba(0,217,255,0.2);
}
.hobi-title {
  font-size: 22px;
  font-weight: 700;
  color: #fff;
}
.hobi-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.hobi-card {
  background: rgba(10, 30, 50, 0.7);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(0,217,255,0.15);
  border-radius: 16px;
  padding: 20px 18px;
  transition: 0.3s;
  box-shadow: 0 0 12px rgba(0,217,255,0.1);
}
.hobi-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 0 22px rgba(0,217,255,0.3);
  border-color: rgba(0,217,255,0.4);
}
.hobi-card-icon {
  display: block;
  font-size: 28px;
  color: #00d9ff;
  text-shadow: 0 0 8px rgba(0,217,255,0.5);
  margin: 0 0 12px 0;
  line-height: 1;
}
.hobi-card-name {
  display: block;
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  margin: 0 0 5px 0;
}
.hobi-card-desc {
  display: block;
  font-size: 12px;
  color: rgba(255,255,255,0.55);
  line-height: 1.5;
  margin: 0;
}

/* ===== SECTION BREAK ===== */

.skillcard {
  background: rgba(10,30,50,0.7);
  backdrop-filter: blur(12px);
  border-left: 3px solid #00d9ff !important;
  border-right: 3px solid #00d9ff !important;
  border-top: 1px solid rgba(0,217,255,0.3) !important;
  border-bottom: 1px solid rgba(0,217,255,0.3) !important;
  border-radius: 20px;
  padding: 24px 20px;
  width: calc(100% + 40px);
  margin-left: -20px;
  box-sizing: border-box;
  box-shadow: 0 0 15px rgba(0,217,255,0.15);
}
.skillcard-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}
.skillcard-icon-box {
  width: 58px; height: 58px;
  border-radius: 14px;
  background: rgba(0,217,255,0.12);
  display: flex; align-items: center; justify-content: center;
  font-size: 24px;
  color: #00d9ff;
  flex-shrink: 0;
  box-shadow: 0 0 10px rgba(0,217,255,0.2);
}
.skillcard-title {
  font-size: 22px;
  font-weight: 700;
  color: #fff;
}
.skillcard-item {
  margin-bottom: 16px;
}
.skillcard-item:last-child { margin-bottom: 0; }
.skillcard-item-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 7px;
}
.skillcard-item-label {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 15px;
  color: #e2e8f0;
  font-weight: 500;
}
.skillcard-item-label i {
  font-size: 14px;
  color: #00d9ff;
  width: 18px;
  text-align: center;
}
.skillcard-item-pct {
  font-size: 14px;
  color: rgba(255,255,255,0.5);
}
.skillcard-bar-bg {
  width: 100%;
  height: 7px;
  background: rgba(255,255,255,0.08);
  border-radius: 99px;
  overflow: hidden;
}
.skillcard-bar-fill {
  height: 100%;
  border-radius: 99px;
  background: linear-gradient(90deg, #00d9ff, #7c3aed, #a855f7);
}
.skillcard-divider {
  border: none;
  height: 1px;
  background: linear-gradient(90deg, transparent, #00d9ff, #a855f7, transparent);
  margin: 14px 0;
}
#ai * {
    box-sizing: border-box;
}

#ai {
    --primary-cyan: #00fff6;
    --primary-dark: #0099cc;
    --bg-dark: #0a1628;
    --bg-darker: #070f1a;
    --bg-light: #1a2942;
    --text-primary: #ffffff;
    --text-secondary: #b0c4de;
    --text-muted: #6b7c93;
    --border-color: rgba(0, 217, 255, 0.2);
    --shadow-color: rgba(0, 217, 255, 0.3);
    --success: #00ff88;
    --danger: #ff4444;
}

/* ANGRY THEME - Tampilan Merah Semua */
#ai.angry-theme {
    background: linear-gradient(135deg, #1a0000 0%, #2a0000 50%, #3a0000 100%);
    animation: angryPulseBody 3s infinite;
}

@keyframes angryPulseBody {
    0%, 100% { background: linear-gradient(135deg, #1a0000 0%, #2a0000 50%, #3a0000 100%); }
    50% { background: linear-gradient(135deg, #2a0000 0%, #3a0000 50%, #4a0000 100%); }
}
/* angry theme: make #ai cover full viewport when active */
#ai.angry-theme {
    position: fixed;
    inset: 0;
    z-index: 1;
}

#ai.angry-theme .logo-text {
    color: #fff;
    text-shadow: 0 0 10px #ff0000;
}

#ai.angry-theme .beta-badge {
    background: rgba(255, 0, 0, 0.3);
    border: 1px solid #ff0000;
}

#ai.angry-theme .btn-icon {
    border-color: rgba(255, 0, 0, 0.5);
    background: rgba(255, 0, 0, 0.1);
}

#ai.angry-theme .btn-icon:hover {
    background: rgba(255, 0, 0, 0.3);
    border-color: #ff0000;
    box-shadow: 0 0 15px rgba(255, 0, 0, 0.5);
}

#ai.angry-theme .input-area {
    background: rgba(30, 0, 0, 0.97);
    border-top: 2px solid rgba(255, 0, 0, 0.6);
    box-shadow: 0 -4px 20px rgba(255, 0, 0, 0.3);
}

#ai.angry-theme .input-container {
    background: rgba(255, 0, 0, 0.06);
    border-color: rgba(255, 0, 0, 0.3);
    box-shadow: 0 4px 24px rgba(255, 0, 0, 0.12), 0 2px 8px rgba(0,0,0,0.4);
}

#ai.angry-theme .input-container:focus-within {
    border-color: #ff0000;
    box-shadow: 0 0 0 2px rgba(255, 0, 0, 0.15), 0 6px 28px rgba(255, 0, 0, 0.2);
}

#ai.angry-theme #userInput {
    background: transparent;
    border-color: transparent;
}

#ai.angry-theme #userInput:focus {
    border-color: transparent;
    box-shadow: none;
}

#ai.angry-theme #userInput::-webkit-scrollbar-thumb {
    background: #ff0000;
}

















#ai.angry-theme .send-btn:hover {
    box-shadow: 0 6px 20px rgba(255, 0, 0, 0.7);
}

#ai.angry-theme #sendBtn {
    background: linear-gradient(135deg, #8b0000 0%, #ff0000 100%) !important;
    box-shadow: 0 4px 15px rgba(255, 0, 0, 0.5) !important;
}

#ai.angry-theme #sendBtn:hover:not(:disabled) {
    box-shadow: 0 6px 20px rgba(255, 0, 0, 0.7) !important;
}

#ai.angry-theme .message.ai .message-bubble {
    background: transparent;
    border: none;
    box-shadow: none;
}

#ai.angry-theme .message.user .message-bubble {
    background: rgba(120, 0, 0, 0.6);
    border-color: rgba(255, 0, 0, 0.5);
    box-shadow: 0 0 15px rgba(255, 0, 0, 0.3);
}

#ai.angry-theme .ai-avatar {
    background: linear-gradient(135deg, #8b0000 0%, #ff0000 100%);
    box-shadow: 0 0 20px rgba(255, 0, 0, 0.5);
    animation: angryAvatarPulse 2s infinite;
}

#ai.angry-theme .user-avatar {
    background: linear-gradient(135deg, #8b0000 0%, #ff0000 100%);
    box-shadow: 0 0 20px rgba(255, 0, 0, 0.5);
}

@keyframes angryAvatarPulse {
    0%, 100% { transform: scale(1); box-shadow: 0 0 20px rgba(255, 0, 0, 0.5); }
    50% { transform: scale(1.1); box-shadow: 0 0 30px rgba(255, 0, 0, 0.8); }
}

#ai.angry-theme .chat-container::-webkit-scrollbar-thumb {
    background: #ff0000;
}

#ai.angry-theme .feature-card {
    border-color: rgba(255, 0, 0, 0.2);
}

#ai.angry-theme .feature-card:hover {
    background: rgba(255, 0, 0, 0.1);
    border-color: #ff0000;
    box-shadow: 0 8px 24px rgba(255, 0, 0, 0.3);
}

#ai.angry-theme .feature-icon {
    color: #ff0000;
}

#ai.angry-theme .hero-icon {
    background: linear-gradient(135deg, #ff0000 0%, #ff6666 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 10px rgba(255, 0, 0, 0.5));
}

/* Modal styling untuk angry theme */
/* ═══════════════════════════════════════════
   WORM-AI THEME — Modal & Settings
═══════════════════════════════════════════ */
#ai.angry-theme .modal-content {
    background: #110508;
    border-color: rgba(210,40,40,0.3);
    box-shadow: 0 -8px 48px rgba(0,0,0,0.85), 0 0 0 1px rgba(180,30,30,0.1) inset;
}

#ai.angry-theme .modal-content::before {
    background: rgba(200,50,50,0.15);
}

#ai.angry-theme .modal-header {
    border-bottom-color: rgba(180,30,30,0.15);
}

#ai.angry-theme .modal-title {
    color: #fff;
}

#ai.angry-theme .modal-title i {
    color: #ff5555;
    background: rgba(200,40,40,0.15);
}

#ai.angry-theme .close-btn {
    background: rgba(180,30,30,0.08);
    border-color: rgba(180,30,30,0.18);
    color: rgba(255,120,120,0.5);
}

#ai.angry-theme .close-btn:hover {
    background: rgba(200,40,40,0.18);
    color: #ff7070;
    border-color: rgba(200,40,40,0.35);
}

#ai.angry-theme .modal-body::-webkit-scrollbar { width: 3px; }
#ai.angry-theme .modal-body::-webkit-scrollbar-thumb {
    background: rgba(200,40,40,0.3);
}

#ai.angry-theme .modal-footer {
    border-top-color: rgba(180,30,30,0.12);
}

#ai.angry-theme .settings-label {
    color: rgba(255,160,160,0.45);
}

#ai.angry-theme .settings-label i {
    color: #ff5555;
}

#ai.angry-theme .settings-input, #ai.angry-theme .settings-select {
    border-color: rgba(180,30,30,0.2);
    background: rgba(180,30,30,0.05);
    color: rgba(255,200,200,0.85);
}

#ai.angry-theme .settings-input:focus, #ai.angry-theme .settings-select:focus {
    border-color: rgba(200,50,50,0.4);
    background: rgba(180,30,30,0.08);
}

#ai.angry-theme .toggle-password { color: rgba(255,100,100,0.4); }
#ai.angry-theme .toggle-password:hover { color: #ff5555; }
#ai.angry-theme .settings-hint { color: rgba(255,100,100,0.35); }
#ai.angry-theme .settings-hint a { color: #ff5555; }

#ai.angry-theme .btn-primary {
    background: #c82828;
    color: #fff;
    box-shadow: 0 4px 16px rgba(180,30,30,0.35);
}
#ai.angry-theme .btn-primary:hover {
    box-shadow: 0 6px 22px rgba(200,40,40,0.5);
}

#ai.angry-theme .btn-secondary {
    background: rgba(180,30,30,0.07);
    border-color: rgba(180,30,30,0.18);
    color: rgba(255,120,120,0.5);
}
#ai.angry-theme .btn-secondary:hover {
    background: rgba(180,30,30,0.14);
    color: rgba(255,150,150,0.8);
}



/* Response cards in worm mode */
#ai.angry-theme .response-card {
    border-color: rgba(180,30,30,0.14);
    background: rgba(180,30,30,0.04);
}
#ai.angry-theme .response-card:hover {
    border-color: rgba(200,50,50,0.25);
    background: rgba(180,30,30,0.08);
}
#ai.angry-theme .response-card.active {
    border-color: rgba(220,50,50,0.4);
    background: rgba(180,30,30,0.12);
    box-shadow: 0 0 0 1px rgba(180,30,30,0.1) inset;
}
#ai.angry-theme .response-card-icon { color: rgba(255,80,80,0.5); }
#ai.angry-theme .response-card-title { color: rgba(255,180,180,0.75); }
#ai.angry-theme .response-card-desc { color: rgba(255,100,100,0.35); }
#ai.angry-theme .response-card.active .response-card-title { color: #ff5555; }
#ai.angry-theme .response-card.active .response-card-icon { color: #ff5555; }
#ai.angry-theme .response-card[data-length].active .response-card-title,
#ai.angry-theme .response-card[data-length].active .response-card-icon { color: #ff5555 !important; }
#ai.angry-theme .slider-value { color: #ff5555; }

/* Sett pills in worm mode */
#ai.angry-theme .sett-pill {
    border-color: rgba(180,30,30,0.15);
    background: rgba(180,30,30,0.04);
    color: rgba(255,100,100,0.45);
}
#ai.angry-theme .sett-pill:hover {
    border-color: rgba(200,50,50,0.28);
    background: rgba(180,30,30,0.09);
    color: rgba(255,130,130,0.7);
}
#ai.angry-theme .sett-pill.active {
    border-color: rgba(220,50,50,0.38);
    background: rgba(180,30,30,0.14);
    color: #ff5555;
}

/* Info modal in worm mode */
#ai.angry-theme .info-logo { color: #ff5555; filter: drop-shadow(0 0 8px rgba(200,40,40,0.4)); }
#ai.angry-theme .info-item { border-color: rgba(180,30,30,0.12); }
#ai.angry-theme .info-item i { color: #ff5555; }
#ai.angry-theme .info-item strong { color: rgba(255,100,100,0.45); }
#ai.angry-theme .info-item p { color: rgba(255,200,200,0.75); }

/* Loading spinner untuk mode switch */
@keyframes wormLoading {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

#ai .worm-loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 0, 0, 0.3);
    border-top: 3px solid #ff0000;
    border-radius: 50%;
    animation: wormLoading 0.8s linear infinite;
    margin-left: 10px;
    vertical-align: middle;
}

/* Container */
#ai .container {
    display: flex;
    flex-direction: column;
    height: 100vh;
    max-width: 100%;
    margin: 0 auto;
    background: #0a1628;
}

/* Header */
#ai .header {
    background: linear-gradient(135deg, var(#00D9FF) 0%, var(#00D9FF) 100%);
    padding: 16px 24px;
    box-shadow: 0 4px 20px var(#00D9FF);
    position: relative;
    z-index: 100;
    margin-top: 30px;
}

#ai .header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1400px;
    margin: 0 auto;
}

#ai .logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

#ai .logo-icon {
    width: 40px;
    height: 40px;
    background: var(--text-primary);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: var(--primary-cyan);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

#ai .logo-text {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.5px;
}

#ai .beta-badge {
    background: rgba(255, 255, 255, 0.2);
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: 0.5px;
}

#ai .header-actions {
    display: flex;
    gap: 8px;
}

#ai .btn-icon {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-primary);
    width: 40px;
    height: 40px;
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

#ai .btn-icon:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

#ai .btn-icon:active {
    transform: translateY(0);
}

/* Chat Container */
#ai .chat-container {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 24px;
    padding-bottom: 70px;
    display: flex;
    flex-direction: column;
    scroll-behavior: smooth;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
}

/* Welcome Screen */
#ai .welcome-screen {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 24px 20px;
    gap: 8px;
}

/* ===== ZainAI Entrance Animations ===== */
@keyframes zainFadeSlideDown {
    0% {
        opacity: 0;
        transform: translateY(-40px) scale(0.8);
        filter: blur(8px);
    }
    60% {
        filter: blur(0px);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0px);
    }
}

@keyframes zainFadeSlideUp {
    0% {
        opacity: 0;
        transform: translateY(30px);
        filter: blur(4px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0px);
    }
}

@keyframes zainCardPop {
    0% {
        opacity: 0;
        transform: translateY(25px) scale(0.85);
    }
    70% {
        transform: translateY(-4px) scale(1.03);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes zainGlowPulse {
    0%, 100% {
        text-shadow: 0 0 20px rgba(0, 217, 255, 0.5), 0 0 40px rgba(139, 92, 246, 0.3);
    }
    50% {
        text-shadow: 0 0 40px rgba(0, 217, 255, 0.9), 0 0 80px rgba(139, 92, 246, 0.6);
    }
}

@keyframes zainLineReveal {
    0% {
        opacity: 0;
        width: 0;
    }
    100% {
        opacity: 1;
        width: 80px;
    }
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

#ai .welcome-hero {
    text-align: center;
    max-width: 700px;
}

#ai .hero-icon {
    font-size: 80px;
    background: linear-gradient(135deg, var(--primary-cyan) 0%, #8b5cf6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 20px;
    animation: 
        zainFadeSlideDown 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) 0.1s both,
        float 3s ease-in-out 1s infinite;
}

#ai .hero-title {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
    letter-spacing: -0.5px;
    animation: zainFadeSlideUp 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.45s both;
    position: relative;
}

#ai .hero-title::after {
    content: '';
    display: block;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary-cyan), #8b5cf6, transparent);
    margin: 8px auto 0;
    border-radius: 2px;
    animation: zainLineReveal 0.6s ease 1.1s both;
}

#ai .hero-subtitle {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 0;
    animation: zainFadeSlideUp 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.65s both;
}

#ai .features-section {
    width: 100%;
    max-width: 900px;
}

#ai .section-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 10px;
    text-align: center;
    animation: zainFadeSlideUp 0.6s ease 0.85s both;
}

#ai .feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 10px;
}

#ai .feature-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 14px 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    animation: zainCardPop 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

#ai .feature-card:nth-child(1) { animation-delay: 1.0s; }
#ai .feature-card:nth-child(2) { animation-delay: 1.12s; }
#ai .feature-card:nth-child(3) { animation-delay: 1.24s; }
#ai .feature-card:nth-child(4) { animation-delay: 1.36s; }
#ai .feature-card:nth-child(5) { animation-delay: 1.48s; }
#ai .feature-card:nth-child(6) { animation-delay: 1.60s; }

#ai .feature-card:hover {
    background: rgba(0, 217, 255, 0.08);
    border-color: var(--primary-cyan);
    transform: translateY(-4px);
    box-shadow: 0 8px 24px var(--shadow-color);
}

#ai .feature-icon {
    font-size: 22px;
    color: var(--primary-cyan);
    margin-bottom: 7px;
}

#ai .feature-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

#ai .feature-desc {
    font-size: 11px;
    color: var(--text-muted);
    line-height: 1.3;
}

/* Messages */
#ai .message {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
    animation: fadeInUp 0.3s ease;
    max-width: 100%;
}

#ai .message.ai {
    max-width: 100%;
}

#ai .message.ai .message-content {
    max-width: 90%;
}

/* Action buttons row */
#ai .msg-actions {
    display: flex;
    gap: 8px;
    margin-top: 8px;
    align-items: center;
}

/* Speaker button */
#ai .speak-btn {
    background: rgba(128, 128, 128, 0.2);
    border: 1px solid rgba(128, 128, 128, 0.4);
    color: #a0a0a0;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s ease;
}

#ai .speak-btn:hover {
    background: rgba(0, 217, 255, 0.15);
    border-color: rgba(0, 217, 255, 0.5);
    color: #00d9ff;
    transform: translateY(-2px);
}

#ai .speak-btn.speaking {
    background: rgba(0, 217, 255, 0.2);
    border-color: #00d9ff;
    color: #00d9ff;
    box-shadow: 0 0 10px rgba(0, 217, 255, 0.4);
    animation: speakPulse 1.2s ease-in-out infinite;
}

@keyframes speakPulse {
    0%, 100% { box-shadow: 0 0 8px rgba(0, 217, 255, 0.4); }
    50% { box-shadow: 0 0 18px rgba(0, 217, 255, 0.8); }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#ai .message.user {
    flex-direction: row-reverse;
}

#ai .avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

#ai .avatar.user-avatar {
    background: linear-gradient(135deg, var(--primary-cyan) 0%, var(--primary-dark) 100%);
    color: var(--text-primary);
}

#ai .avatar.ai-avatar {
    background: linear-gradient(135deg, #8b5cf6 0%, var(--primary-cyan) 100%);
    color: var(--text-primary);
}

#ai .message-content {
    flex: 1;
    max-width: 75%;
}

@keyframes zainMsgSlideInLeft {
    0% {
        opacity: 0;
        transform: translateX(-20px) scale(0.95);
    }
    100% {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

@keyframes zainMsgSlideInRight {
    0% {
        opacity: 0;
        transform: translateX(20px) scale(0.95);
    }
    100% {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

#ai .message.ai {
    animation: zainMsgSlideInLeft 0.4s cubic-bezier(0.22, 1, 0.36, 1) both;
}

#ai .message.user {
    animation: zainMsgSlideInRight 0.35s cubic-bezier(0.22, 1, 0.36, 1) both;
}

#ai .message-bubble {
    padding: 14px 18px;
    border-radius: 18px;
    word-wrap: break-word;
    overflow-wrap: break-word;
    line-height: 1.6;
    font-size: 15px;
}

#ai .message.user .message-bubble {
    background: linear-gradient(135deg, rgba(0, 180, 210, 0.35) 0%, rgba(0, 100, 160, 0.45) 100%);
    border: 1px solid rgba(0, 217, 255, 0.18);
    color: var(--text-primary);
    border-bottom-right-radius: 4px;
}

/* User message content aligned right */
#ai .message.user .message-content {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

#ai .message.ai .message-bubble {
    background: transparent;
    border: none;
    color: var(--text-primary);
    padding: 0;
    position: relative;
}

/* Code block wrapper */
#ai .code-block-wrapper {
    background: rgba(0,0,0,0.35);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 10px;
    margin: 8px 0;
    overflow: hidden;
    max-width: 100%;
}
#ai .code-block-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 7px 12px;
    background: rgba(255,255,255,0.05);
    border-bottom: 1px solid rgba(255,255,255,0.08);
}
#ai .code-lang {
    font-size: 11px;
    color: #aaa;
    font-family: monospace;
}
#ai .code-copy-btn {
    background: rgba(255,255,255,0.1);
    border: none;
    color: #ccc;
    font-size: 11px;
    padding: 3px 10px;
    border-radius: 5px;
    cursor: pointer;
}
#ai .code-block-wrapper pre {
    margin: 0;
    padding: 12px 14px;
    overflow-x: auto;
    max-width: 100%;
    box-sizing: border-box;
    white-space: pre;
    word-break: normal;
    font-size: 13px;
    line-height: 1.6;
}
#ai .code-block-wrapper code {
    font-family: 'Courier New', monospace;
    white-space: pre;
}

#ai .copy-btn {
    background: rgba(128, 128, 128, 0.2);
    border: 1px solid rgba(128, 128, 128, 0.4);
    color: #a0a0a0;
    padding: 8px 14px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 12px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s ease;
    width: fit-content;
}

#ai .copy-btn:hover {
    background: rgba(128, 128, 128, 0.3);
    border-color: rgba(128, 128, 128, 0.6);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(128, 128, 128, 0.3);
}

#ai .copy-btn:active {
    transform: translateY(0);
}

#ai .copy-btn.copied {
    background: rgba(0, 255, 136, 0.2);
    border-color: var(--success);
    color: var(--success);
}

#ai .message-time {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 6px;
    padding-left: 4px;
}

/* Typing Indicator */
#ai .typing-indicator {
    display: flex;
    gap: 5px;
    padding: 12px 4px;
}

#ai .typing-dot {
    width: 8px;
    height: 8px;
    background: var(--primary-cyan);
    border-radius: 50%;
    animation: typing 1.4s infinite ease-in-out;
}

#ai .typing-dot:nth-child(2) {
    animation-delay: 0.2s;
}

#ai .typing-dot:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typing {
    0%, 60%, 100% {
        transform: translateY(0);
        opacity: 0.7;
    }
    30% {
        transform: translateY(-10px);
        opacity: 1;
    }
}

/* Input Area */
#ai .input-area {
    padding: 10px 16px;
    padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px));
    background: #070f1a;
    border-top: 1px solid rgba(0, 217, 255, 0.25);
box-shadow: 0 -4px 12px rgba(0, 217, 255, 0.1);
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 999;
}

#ai .gear-btn {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: rgba(255,255,255,0.08);
    border: 1px solid transparent;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    cursor: pointer;
    flex-shrink: 0;
    opacity: 0;
    margin-right: -46px;
    pointer-events: none;
    transition: opacity 0.3s ease, margin-right 0.3s cubic-bezier(0.4,0,0.2,1), box-shadow 0.3s ease, border-color 0.3s ease, background 0.2s;
    z-index: 2;
    align-self: flex-end;
}

#ai .input-row {
    display: flex;
    align-items: flex-end;
    gap: 0;
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
}

#ai .gear-inside {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
    opacity: 1;
    margin: 0;
    padding: 0;
    transition: opacity 0.3s ease, width 0.3s ease, margin 0.3s ease;
    overflow: hidden;
    align-self: center;
}

#ai .gear-inside.hidden {
    opacity: 0;
    width: 0;
    margin: 0;
    padding: 0;
    pointer-events: none;
}

#ai .input-container {
    display: flex;
    gap: 6px;
    align-items: center;
    flex: 1;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border-color);
    border-radius: 999px;
    padding: 0 4px 0 16px;
    height: 46px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.4);
    backdrop-filter: blur(12px);
    transition: box-shadow 0.35s ease, border-color 0.35s ease, border-radius 0.3s ease, height 0.3s ease;
    min-width: 0;
    box-sizing: border-box;
    overflow: hidden;
}

#ai .input-container.multiline {
    border-radius: 20px;
    height: auto;
    min-height: 46px;
    padding: 10px 6px 10px 16px;
    align-items: flex-end;
}

#ai .input-container.focused {
  box-shadow: 0 0 6px rgba(0, 217, 255, 0.2);
  border-color: rgba(0, 217, 255, 0.25);
}

#ai.angry-theme .input-container.focused {
    box-shadow: 0 0 12px rgba(255, 0, 0, 0.6), 0 0 24px rgba(255, 0, 0, 0.3);
    border-color: #ff0000;
}

#ai .gear-btn.visible {
    opacity: 1;
    margin-right: 8px;
    border-color: var(--border-color);
    pointer-events: all;
    box-shadow: 0 4px 24px rgba(0, 217, 255, 0.12), 0 2px 8px rgba(0,0,0,0.4);
}

#ai .gear-btn.visible.focused {
  border-color: rgba(0, 217, 255, 0.25);
  box-shadow: none;
}

#ai.angry-theme .gear-btn.visible.focused {
    border-color: #ff0000;
    box-shadow: 0 0 12px rgba(255, 0, 0, 0.6), 0 0 24px rgba(255, 0, 0, 0.3);
}
#ai.angry-theme .gear-btn.visible {
    box-shadow: 0 0 10px rgba(255, 0, 0, 0.5), 0 0 20px rgba(255, 0, 0, 0.25);
}

#ai .gear-inside:hover {
    background: rgba(255,255,255,0.08);
    color: var(--primary-cyan);
}

#ai .gear-btn:hover {
    background: rgba(255,255,255,0.12);
    color: var(--primary-cyan);
}

#ai.angry-theme .gear-btn {
    border-color: rgba(255,0,0,0.3);
}

#ai.angry-theme .gear-btn:hover {
    color: #ff4444;
}

#ai .input-container:focus-within {
  border-color: rgba(0, 217, 255, 0.25);
  box-shadow: none;
}

#ai .attach-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

#ai .attach-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--primary-cyan);
}

#ai .input-wrapper {
    flex: 1;
    position: relative;
    min-width: 0;
    overflow: hidden;
}

#ai #userInput {
    width: 100%;
    padding: 0;
    border-radius: 0;
    border: none;
    background: transparent;
    color: var(--text-primary);
    font-size: 15px;
    font-family: inherit;
    resize: none;
    height: auto;
    max-height: 120px;
    overflow-y: auto;
    overflow-x: hidden;
    transition: none;
    line-height: 1.5;
    outline: none;
    text-align: left;
    align-self: center;
    word-break: break-word;
    white-space: pre-wrap;
    box-sizing: border-box;
}

#ai #userInput:focus {
    outline: none;
    border-color: transparent;
    background: transparent;
    box-shadow: none;
}

#ai #userInput::placeholder {
    color: var(--text-muted);
}

#ai #userInput::-webkit-scrollbar {
    display: none;
}

#ai #userInput::-webkit-scrollbar-thumb {
    display: none;
}

#ai .chat-container::-webkit-scrollbar {
    display: none;
}

#ai .chat-container::-webkit-scrollbar-track {
    display: none;
}

#ai .chat-container::-webkit-scrollbar-thumb {
    display: none;
}

#ai .chat-container::-webkit-scrollbar-thumb:hover {
    display: none;
}

#ai .char-counter {
    display: none;
}

#ai #sendBtn {
    background: linear-gradient(135deg, var(--primary-cyan) 0%, var(--primary-dark) 100%);
    border: none;
    color: #0a1628;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 217, 255, 0.25);
    flex-shrink: 0;
    align-self: center;
    position: relative;
    z-index: 1;
}

#ai #sendBtn:hover:not(:disabled) {
    transform: scale(1.08);
    box-shadow: 0 4px 12px rgba(0, 217, 255, 0.35);
}

#ai #sendBtn:active:not(:disabled) {
    transform: scale(0.96);
}

#ai #sendBtn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    box-shadow: none;
}

/* Modal */
/* ═══════════════════════════════════════════
   MODAL — Premium Redesign
═══════════════════════════════════════════ */
#ai .modal {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 10010;
    align-items: flex-end;
    justify-content: center;
    padding: 0;
    box-sizing: border-box;
}

#ai .modal.active { display: flex; }

#ai .modal-overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.55);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

#ai .modal-content {
    background: #0b1120;
    border: 1px solid rgba(0,217,255,0.18);
    border-bottom: none;
    border-radius: 28px 28px 0 0;
    max-width: 520px;
    width: 100%;
    max-height: 92vh;
    overflow: hidden;
    box-shadow: 0 -8px 48px rgba(0,0,0,0.7), 0 0 0 1px rgba(0,217,255,0.08) inset;
    position: relative;
    z-index: 1001;
    display: flex;
    flex-direction: column;
    animation: modalSlideUp 0.32s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Drag handle */
#ai .modal-content::before {
    content: '';
    display: block;
    width: 40px; height: 4px;
    background: rgba(255,255,255,0.12);
    border-radius: 4px;
    margin: 12px auto 0;
    flex-shrink: 0;
}

@keyframes modalSlideUp {
    from { opacity: 0; transform: translateY(32px); }
    to   { opacity: 1; transform: translateY(0); }
}

#ai .modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 22px 14px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

#ai .modal-title {
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 9px;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

#ai .modal-title i {
    color: #00d9ff;
    font-size: 13px;
    background: rgba(0,217,255,0.12);
    padding: 6px;
    border-radius: 8px;
}

#ai .close-btn {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.07);
    color: rgba(255,255,255,0.35);
    width: 32px; height: 32px;
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    transition: all 0.2s ease;
}

#ai .close-btn:hover {
    background: rgba(255,60,60,0.1);
    color: #ff5555;
    border-color: rgba(255,60,60,0.18);
}

#ai .modal-body {
    padding: 18px 20px;
    overflow-y: auto;
    flex: 1;
    max-height: 72vh;
}

#ai .modal-body::-webkit-scrollbar { width: 3px; }
#ai .modal-body::-webkit-scrollbar-thumb {
    background: rgba(0,217,255,0.2);
    border-radius: 3px;
}

#ai .modal-footer {
    padding: 14px 20px 20px;
    border-top: 1px solid rgba(255,255,255,0.05);
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

/* Settings Groups */
#ai .settings-group {
    margin-bottom: 20px;
}

#ai .settings-label {
    color: rgba(255,255,255,0.35);
    font-weight: 700;
    font-size: 10px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
}

#ai .settings-label i {
    color: #00d9ff;
    font-size: 10px;
}

#ai .input-with-icon { position: relative; }

#ai .settings-input, #ai .settings-select {
    width: 100%;
    padding: 11px 44px 11px 14px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.07);
    background: rgba(255,255,255,0.03);
    color: #fff;
    font-size: 13px;
    font-family: inherit;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

#ai .settings-input:focus, #ai .settings-select:focus {
    outline: none;
    border-color: rgba(0,217,255,0.35);
    background: rgba(0,217,255,0.04);
}

#ai .toggle-password {
    position: absolute;
    right: 12px; top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: rgba(255,255,255,0.2);
    cursor: pointer;
    font-size: 13px;
    padding: 4px;
    transition: color 0.2s;
}

#ai .toggle-password:hover { color: #00d9ff; }

#ai .settings-hint {
    display: block;
    margin-top: 7px;
    font-size: 11px;
    color: rgba(255,255,255,0.2);
}

#ai .settings-hint a {
    color: #00d9ff;
    text-decoration: none;
    opacity: 0.8;
}

#ai .settings-hint a:hover { opacity: 1; }

/* ═══════════════════════════════════════════
   RESPONSE CARDS — Redesigned
═══════════════════════════════════════════ */
#ai .response-length-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    margin-top: 8px;
}

#ai .response-card {
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 14px;
    padding: 16px 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
    position: relative;
    overflow: hidden;
}

#ai .response-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 0%, rgba(0,217,255,0.06) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.25s;
}

#ai .response-card:hover {
    background: rgba(255,255,255,0.04);
    border-color: rgba(0,217,255,0.15);
}

#ai .response-card:hover::after { opacity: 1; }

#ai .response-card.active {
    background: rgba(0,217,255,0.06);
    border-color: rgba(0,217,255,0.3);
    box-shadow: 0 0 0 1px rgba(0,217,255,0.08) inset;
}

#ai .response-card.active::after { opacity: 1; }

#ai .response-card[data-style="angry"].active {
    background: rgba(255,50,50,0.07);
    border-color: rgba(255,50,50,0.3);
    box-shadow: 0 0 0 1px rgba(255,50,50,0.08) inset;
    animation: angryPulse 2.5s infinite;
}

@keyframes angryPulse {
    0%, 100% { border-color: rgba(255,50,50,0.3); }
    50% { border-color: rgba(255,50,50,0.55); }
}

#ai .response-card[data-style="angry"].active .response-card-title { color: #ff5555; }
#ai .response-card[data-style="angry"].active .response-card-icon {
    color: #ff5555;
    animation: angryShake 0.7s infinite;
}

@keyframes angryShake {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(-5deg); }
    75% { transform: rotate(5deg); }
}

#ai .response-card-icon {
    font-size: 22px;
    margin-bottom: 8px;
    color: rgba(255,255,255,0.25);
    transition: color 0.2s;
}

#ai .response-card-title {
    font-size: 12px;
    font-weight: 700;
    color: rgba(255,255,255,0.65);
    margin-bottom: 3px;
    letter-spacing: 0.02em;
}

#ai .response-card-desc {
    font-size: 10px;
    color: rgba(255,255,255,0.25);
    line-height: 1.4;
}

#ai .response-card.active .response-card-title { color: #00d9ff; }
#ai .response-card.active .response-card-icon { color: #00d9ff; }

@media (max-width: 768px) {
    #ai .response-length-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
    #ai .response-card { padding: 14px 8px; }
}

/* ═══════════════════════════════════════════
   BUTTONS — Redesigned
═══════════════════════════════════════════ */
#ai .btn-primary, #ai .btn-secondary {
    padding: 10px 22px;
    border-radius: 12px;
    border: none;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    transition: all 0.2s ease;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

#ai .btn-primary {
    background: #00d9ff;
    color: #000;
    box-shadow: 0 4px 16px rgba(0,217,255,0.22);
}

#ai .btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 22px rgba(0,217,255,0.38);
}

#ai .btn-secondary {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.07);
    color: rgba(255,255,255,0.4);
}

#ai .btn-secondary:hover {
    background: rgba(255,255,255,0.07);
    color: rgba(255,255,255,0.65);
}



/* ═══════════════════════════════════════════
   SETT PILLS — Redesigned
═══════════════════════════════════════════ */
#ai .sett-row {
    display: flex;
    gap: 8px;
    margin-top: 8px;
}

#ai .sett-pill {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 12px 14px;
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,0.06);
    background: rgba(255,255,255,0.02);
    color: rgba(255,255,255,0.35);
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    letter-spacing: 0.02em;
    position: relative;
    overflow: hidden;
}

#ai .sett-pill::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 100%, rgba(0,217,255,0.1) 0%, transparent 65%);
    opacity: 0;
    transition: opacity 0.25s;
}

#ai .sett-pill:hover {
    background: rgba(255,255,255,0.04);
    color: rgba(255,255,255,0.6);
    border-color: rgba(255,255,255,0.1);
}

#ai .sett-pill.active {
    background: rgba(0,217,255,0.07);
    border-color: rgba(0,217,255,0.28);
    color: #00d9ff;
}

#ai .sett-pill.active::before { opacity: 1; }

/* Worm-AI Pill — darker edge, not red explosion */
#ai .sett-pill-danger {
    border-color: rgba(255,255,255,0.05);
    background: rgba(255,255,255,0.02);
}

#ai .sett-pill-danger::before {
    background: radial-gradient(circle at 50% 100%, rgba(200,50,50,0.12) 0%, transparent 65%);
}

#ai .sett-pill-danger:hover {
    border-color: rgba(200,60,60,0.18);
    color: rgba(255,130,130,0.7);
}

#ai .sett-pill-danger.active {
    background: rgba(180,30,30,0.12);
    border-color: rgba(220,50,50,0.35);
    color: #ff6b6b;
    box-shadow: 0 0 0 1px rgba(200,50,50,0.1) inset;
}

#ai .sett-pill-danger.active::before { opacity: 1; }

#ai .sett-pill i { font-size: 12px; }

/* ═══════════════════════════════════════════
   INFO MODAL — Redesigned
═══════════════════════════════════════════ */
#ai .info-section {
    text-align: center;
    padding: 20px 0 16px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    margin-bottom: 16px;
}

#ai .info-logo {
    font-size: 36px;
    color: #00d9ff;
    margin-bottom: 10px;
    filter: drop-shadow(0 0 10px rgba(0,217,255,0.35));
}

#ai .info-section h3 {
    font-size: 17px;
    color: #fff;
    margin-bottom: 4px;
    font-weight: 700;
    letter-spacing: 0.02em;
}

#ai .version {
    color: rgba(255,255,255,0.25);
    font-size: 10px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

#ai .info-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 13px 0;
    border-bottom: 1px solid rgba(255,255,255,0.04);
}

#ai .info-item:last-child { border-bottom: none; }

#ai .info-item i {
    font-size: 14px;
    color: #00d9ff;
    margin-top: 2px;
    width: 18px;
    flex-shrink: 0;
}

#ai .info-item strong {
    color: rgba(255,255,255,0.35);
    display: block;
    margin-bottom: 2px;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

#ai .info-item p {
    color: rgba(255,255,255,0.75);
    font-size: 13px;
    line-height: 1.4;
}

#ai .feature-list {
    margin-top: 4px;
    padding-left: 14px;
}

#ai .feature-list li {
    color: rgba(255,255,255,0.55);
    font-size: 12px;
    margin-bottom: 3px;
}

#ai .feature-list {
    margin-top: 4px;
    padding-left: 14px;
}

#ai .feature-list li {
    color: rgba(255,255,255,0.6);
    font-size: 12px;
    margin-bottom: 3px;
}

/* Responsive */
@media (max-width: 768px) {

    #ai .header {
        padding: 14px 16px;
    }

    #ai .logo-text {
        font-size: 20px;
    }

    #ai .logo-icon {
        width: 36px;
        height: 36px;
        font-size: 18px;
    }

    #ai .btn-icon {
        width: 36px;
        height: 36px;
        font-size: 14px;
    }

    #ai .chat-container {
        padding: 16px 12px;
    }

    #ai .hero-title {
        font-size: 26px;
    }

    #ai .hero-subtitle {
        font-size: 14px;
    }

    #ai .feature-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    #ai .feature-card {
        padding: 12px 8px;
    }

    #ai .message-content {
        max-width: 82%;
    }

    #ai .input-area {
        padding: 16px 12px;
    }

    #ai #userInput {
        font-size: 14px;
        padding: 10px 50px 10px 14px;
    }

    #ai .attach-btn, #ai #sendBtn {
        width: 40px;
        height: 40px;
    }

    #ai .modal-content {
        border-radius: 24px 24px 0 0;
    }

    #ai .modal-header, #ai .modal-body, #ai .modal-footer {
        padding: 16px 18px;
    }

}

@media (max-width: 480px) {

    #ai .feature-grid {
        grid-template-columns: 1fr;
    }
    
    #ai .header-actions {
        gap: 6px;
    }
    
    #ai .btn-icon {
        width: 34px;
        height: 34px;
    }

}

/* ===== SECTION BREAK ===== */

.contact-section {
  width: calc(100% + 40px);
  margin-left: -20px;
  margin-top: 30px;
  margin-bottom: 20px;
  padding: 0;
  box-sizing: border-box;
}
.contact-box {
  background: rgba(10, 30, 50, 0.85);
  backdrop-filter: blur(12px);
  border: 1.5px solid rgba(0,217,255,0.4);
  border-radius: 28px;
  padding: 28px 24px;
  box-shadow: 0 0 25px rgba(0,217,255,0.2), inset 0 0 30px rgba(0,217,255,0.03);
  box-sizing: border-box;
  width: 100%;
}
.contact-box h2 {
  font-size: 28px;
  font-weight: 700;
  color: #fff;
  margin: 0 0 24px 0;
  text-align: left;
}
.contact-field {
  margin-bottom: 16px;
  text-align: left;
}
.contact-field label {
  display: block;
  font-size: 16px;
  font-weight: 600;
  color: rgba(255,255,255,0.8);
  margin-bottom: 7px;
  text-align: left;
}
.contact-field input,
.contact-field textarea {
  width: 100%;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(0,217,255,0.2);
  border-radius: 12px;
  padding: 12px 14px;
  color: #fff;
  font-size: 16px;
  outline: none;
  box-sizing: border-box;
  transition: 0.3s;
  font-family: Arial, sans-serif;
  text-align: left;
}
.contact-field input::placeholder,
.contact-field textarea::placeholder {
  color: rgba(255,255,255,0.3);
}
.contact-field input:focus,
.contact-field textarea:focus {
  border-color: rgba(0,217,255,0.6);
  background: rgba(0,217,255,0.06);
  box-shadow: 0 0 10px rgba(0,217,255,0.15);
}
.contact-field textarea {
  height: 120px;
  resize: vertical;
}
.contact-btn {
  width: 100%;
  padding: 14px;
  background: linear-gradient(135deg, #1a0a3e, #7c3aed);
  border: none;
  border-radius: 14px;
  color: #fff;
  font-size: 17px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  transition: 0.3s;
  box-shadow: 0 4px 15px rgba(124,58,237,0.4);
  margin-top: 8px;
}
.contact-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(124,58,237,0.6);
  background: linear-gradient(135deg, #2d0f60, #9333ea);
}

/* ===== SECTION BREAK ===== */

/* ===== Scroll Reveal Animations ===== */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.from-left {
  transform: translateX(-50px);
}
.reveal.from-right {
  transform: translateX(50px);
}
.reveal.visible {
  opacity: 1;
  transform: translate(0, 0);
}
/* ===== RESET scope: hanya berlaku di dalam #music ===== */
#music { padding:0!important; background:#0a1628!important; min-height:unset!important; height:auto!important; position:relative; font-family:'Arial',sans-serif; }

/* Rainbow animation untuk CyberZain */
@keyframes czm-rainbow {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
#music .czm-rainbow {
  background: linear-gradient(90deg, #ff0000, #ff7700, #ffff00, #00ff00, #00d9ff, #aa00ff, #ff0077, #ff0000);
  background-size: 300% 300%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: czm-rainbow 3s linear infinite;
  font-weight: 800 !important;
}

/* Views */
#music .czm-view { display:none!important; }
#music .czm-view.czm-on { display:block!important; }

/* ===== PLAYER: flex column agar tab bar bisa pinned bawah ===== */
#music #czm-player {
  transform: translateY(100%);
  transition: transform 0.38s cubic-bezier(0.32, 0.72, 0, 1), visibility 0s linear 0.38s;
  display: flex !important;
  flex-direction: column;
  pointer-events: none;
  visibility: hidden;
  position: fixed !important;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 10003;
  overflow: hidden;
  background: #0f2035;
  width: 100%;
  height: 100% !important;
  min-height: unset !important;
}
#music #czm-player::before { display: none; }
#music #czm-player.czm-on {
  transform: translateY(0);
  transition: transform 0.38s cubic-bezier(0.32, 0.72, 0, 1), visibility 0s linear 0s;
  pointer-events: auto;
  visibility: visible;
}

/* Scroll area: mengisi sisa ruang, overflow scroll */
#music .czm-scroll-area {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  position: relative;
  z-index: 1;
  overscroll-behavior: none;
}
/* Full view tetap bisa scroll untuk lihat Tentang Artis */
#music:not(.has-tab) .czm-scroll-area {
  overflow-y: auto;
}

/* Tab bar: flex-shrink:0, selalu nempel di bawah */
#music .czm-tab-bar {
  flex-shrink: 0;
  width: 100%;
  display: flex;
  border-top: 1px solid rgba(255,255,255,.1);
  background: #0f2035;
  box-sizing: border-box;
  padding-bottom: env(safe-area-inset-bottom, 0px);
  position: relative;
  z-index: 10;
}
#music #czm-home.czm-on {
  display: block !important;
}

/* ===== TOPBAR ===== */
#music .czm-topbar {
  position:sticky; top:0; z-index:200;
  background:rgba(10,22,40,0.88); backdrop-filter:blur(16px);
  -webkit-backdrop-filter:blur(16px);
  padding:12px 16px; display:flex; align-items:center; justify-content:space-between;
  border-bottom:1px solid rgba(255,255,255,0.07);
}
#music .czm-logo { display:flex; align-items:center; gap:8px; text-decoration:none; }
#music .czm-yt-icon {
  width:32px; height:22px; background:#00fff6; border-radius:6px;
  display:flex; align-items:center; justify-content:center; flex-shrink:0;
}
#music .czm-yt-icon svg { width:16px; fill:#fff; }
#music .czm-logo-title { font-size:16px; font-weight:700; color:#fff; }
#music .czm-logo-sub   { font-size:16px; font-weight:400; color:#aaa; }
#music .czm-topbar-right { display:flex; align-items:center; gap:14px; }
#music .czm-icon-btn { background:none; border:none; color:#aaa; font-size:20px; cursor:pointer; padding:4px; transition:color .2s; }
#music .czm-icon-btn:hover { color:#fff; }
#music .czm-profile { width:32px; height:32px; border-radius:50%; background:linear-gradient(135deg,#00fff6,#00fff6); display:flex; align-items:center; justify-content:center; font-size:13px; font-weight:700; color:#fff; cursor:pointer; flex-shrink:0; border:none; }

/* ===== MOOD PILLS ===== */
#music .czm-pills {
  padding:10px 16px; display:flex; gap:8px; overflow-x:auto; scrollbar-width:none;
  border-bottom:1px solid rgba(255,255,255,0.05);
}
#music .czm-pills::-webkit-scrollbar { display:none; }
#music .czm-pill {
  padding:8px 18px; border-radius:20px; background:#152840; border:1px solid #363636;
  color:#aaa; font-size:13px; font-weight:500; white-space:nowrap; cursor:pointer;
  transition:all .18s; flex-shrink:0;
}
#music .czm-pill.active { background:#fff; color:#000; border-color:#fff; }
#music .czm-pill:not(.active):hover { background:#152840; color:#fff; }

/* ===== HOME SCROLL ===== */
#music .czm-home-body { padding-bottom:16px; transition: padding-bottom 0.28s ease; }
#music.has-npbar .czm-home-body { padding-bottom: 80px; }

/* ===== HERO SLIDER (YT Music style) ===== */
#music .czm-hero {
  position:relative; width:100%; overflow:hidden;
}
#music .czm-hero-track {
  display:flex; transition:transform .42s cubic-bezier(.4,0,.2,1);
  will-change:transform;
}
#music .czm-hero-slide {
  flex-shrink:0; width:100%; position:relative;
  cursor:pointer; -webkit-tap-highlight-color:transparent;
}
#music .czm-hero-img {
  width:100%; height:220px; object-fit:cover; display:block;
  filter:brightness(0.72);
}
@media(max-width:400px){
  #music .czm-hero-img { height:190px; }
}
#music .czm-hero-overlay {
  position:absolute; top:0; bottom:0; left:0; right:0;
  background:linear-gradient(to top, rgba(10,22,40,1) 0%, rgba(10,22,40,0.6) 40%, transparent 70%);
  display:flex; flex-direction:column; justify-content:flex-end;
  padding:0 16px 16px;
  box-sizing:border-box;
}
#music .czm-hero-text {
  flex:1; min-width:0;
}
#music .czm-hero-bottom {
  display:flex; flex-direction:row; align-items:flex-end; justify-content:space-between; width:100%;
}
#music .czm-hero-title {
  font-size:20px; font-weight:800; color:#fff; line-height:1.2;
  overflow:hidden; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical;
  text-shadow:0 2px 8px rgba(15,32,53,0.5);
}
#music .czm-hero-artist {
  font-size:13px; color:rgba(255,255,255,.7); margin-top:4px;
}
#music .czm-hero-play {
  flex-shrink:0; margin-left:12px;
  width:44px; height:44px; border-radius:50%;
  background:rgba(255,255,255,.18); backdrop-filter:blur(8px);
  border:1.5px solid rgba(255,255,255,.35);
  display:flex; align-items:center; justify-content:center;
  color:#fff; font-size:16px;
  transition:background .2s, transform .15s;
  position:static; align-self:flex-end;
}
#music .czm-hero-play:active { transform:scale(.92); background:rgba(255,255,255,.3); }
/* Dots */
#music .czm-hero-dots {
  position:absolute; bottom:14px; left:50%; transform:translateX(-50%);
  display:flex; gap:5px; align-items:center;
}
#music .czm-hero-dot {
  width:6px; height:6px; border-radius:3px;
  background:rgba(255,255,255,.35); transition:all .3s;
}
#music .czm-hero-dot.active {
  width:20px; background:#00fff6;
}

/* ===== SECTION HEADER ===== */
#music .czm-sec-head {
  padding:22px 16px 10px; display:flex; align-items:center; justify-content:space-between;
}
#music .czm-sec-title { font-size:20px; font-weight:700; color:#fff; }
#music .czm-sec-link  { font-size:13px; color:#666; cursor:pointer; transition:color .2s; }
#music .czm-sec-link:hover { color:#aaa; }
#music .czm-play-all {
  display:flex;
  align-items:center;
  gap:6px;
  background:none;
  border:1px solid rgba(255,255,255,0.18);
  color:#fff;
  border-radius:16px;
  padding:5px 14px;
  font-size:11px;
  font-weight:600;
  cursor:pointer;
  transition:background .2s;
}
#music .czm-play-all:hover { background:rgba(255,255,255,0.08); }
#music .czm-play-all i { font-size:10px; }

/* ===== QUICK PICKS SLIDER (YT Music style) ===== */
#music .czm-qslider-wrap {
  position:relative; overflow:hidden; padding:0 16px;
}
#music .czm-qslider-track {
  display:flex; gap:0; transition:transform .38s cubic-bezier(.4,0,.2,1);
  will-change:transform;
}
/* Setiap "slide" = 1 kolom berisi 5 lagu (1 layar penuh) */
#music .czm-qslide {
  flex-shrink:0; width:100%; display:flex; flex-direction:column; gap:0;
}
/* Setiap item dalam kolom */
#music .czm-qitem {
  display:flex; align-items:center; gap:12px; padding:9px 5px;
  cursor:pointer; transition:background .15s; -webkit-tap-highlight-color:transparent;
  position:relative;
}
#music .czm-qitem:active { background:rgba(255,255,255,0.06); }
#music .czm-q-thumb { width:52px; height:52px; border-radius:5px; object-fit:cover; flex-shrink:0; background:#1a2d42; }

/* Shimmer saat gambar belum load — berlaku untuk semua img lazy */
#music img.czm-img-loading {
  background: linear-gradient(90deg, #1a2d42 25%, #243a52 50%, #1a2d42 75%);
  background-size: 400px 100%;
  animation: czmSkShimmer 1.2s ease-in-out infinite;
}
#music img.czm-img-loading[style*="opacity: 0"],
#music img.czm-img-loading[style*="opacity:0"] {
  /* gambar transparan = shimmer terlihat */
}
#music .czm-q-info  { flex:1; min-width:0; }
#music .czm-q-title { font-size:14px; font-weight:600; color:#fff; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
#music .czm-q-sub   { font-size:12px; color:#aaa; margin-top:2px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
#music .czm-q-dots  { color:#555; font-size:20px; padding:4px 10px; cursor:pointer; flex-shrink:0; line-height:1; }
/* Nav arrows kanan kiri */
#music .czm-qnav {
  position:absolute; top:50%; transform:translateY(-50%);
  width:32px; height:32px; border-radius:50%;
  background:rgba(30,30,30,.92); border:1px solid rgba(255,255,255,.12);
  color:#fff; font-size:14px; display:flex; align-items:center; justify-content:center;
  cursor:pointer; z-index:10; transition:background .2s;
}
#music .czm-qnav:active { background:rgba(60,60,60,.95); }
#music .czm-qnav-l { left:2px; }
#music .czm-qnav-r { right:2px; }
/* Dots */
#music .czm-qdots {
  display:flex; justify-content:center; gap:5px; margin-top:12px;
}
#music .czm-qdot {
  width:6px; height:6px; border-radius:3px;
  background:rgba(255,255,255,.25); transition:all .3s;
}
#music .czm-qdot.active {
  width:18px; background:#00fff6;
}
/* FALLBACK list (pencarian & semua lagu tetap pakai qlist lama) */
#music .czm-qlist { padding:0 16px; }
#music .czm-qlist .czm-qitem {
  display:flex; align-items:center; gap:12px; padding:8px 0;
  cursor:pointer; border-radius:8px; transition:background .15s; -webkit-tap-highlight-color:transparent;
}
#music .czm-qlist .czm-qitem:active { background:rgba(255,255,255,0.05); }

/* ===== SHORTCUT GRID ===== */
#music .czm-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:8px; padding:0 16px; }
#music .czm-gcard { position:relative; border-radius:8px; overflow:hidden; aspect-ratio:1; cursor:pointer; background:#242424; -webkit-tap-highlight-color:transparent; }
#music .czm-gcard img { width:100%; height:100%; object-fit:cover; display:block; transition:transform .25s; }
#music .czm-gcard:active img { transform:scale(1.04); }
#music .czm-glabel { position:absolute; bottom:0; left:0; right:0; padding:24px 8px 8px; background:linear-gradient(0,rgba(15,32,53,0.78),transparent); font-size:11px; font-weight:700; color:#fff; }

/* ===== HORIZONTAL ROW ===== */
#music .czm-hrow { display:flex; gap:12px; padding:0 16px; overflow-x:auto; scrollbar-width:none; }
#music .czm-hrow::-webkit-scrollbar { display:none; }
#music .czm-hcard { flex-shrink:0; width:140px; cursor:pointer; -webkit-tap-highlight-color:transparent; }
#music .czm-h-img  { width:140px; height:140px; border-radius:8px; object-fit:cover; display:block; transition:transform .2s; }
#music .czm-hcard:active .czm-h-img { transform:scale(0.97); }
#music .czm-h-title { font-size:13px; font-weight:600; margin-top:8px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; color:#fff; }
#music .czm-h-sub   { font-size:11px; color:#aaa; margin-top:2px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }

/* ===== NOW PLAYING BAR ===== */
.czm-npbar {
  position:fixed; bottom:0; left:0; right:0; z-index:99999;
  background:rgba(15,32,53,0.88); backdrop-filter:blur(20px); -webkit-backdrop-filter:blur(20px);
  border-top:1px solid rgba(255,255,255,0.09);
  padding:10px 16px;
  display:none; align-items:center; gap:12px; cursor:pointer;
  -webkit-tap-highlight-color:transparent;
  transition:transform 0.28s cubic-bezier(0.32,0.72,0,1);
}
.czm-npbar.czm-vis { display:flex!important; }
.czm-np-prog { position:absolute; top:0; left:0; right:0; height:2px; background:rgba(255,255,255,0.1); }
.czm-np-fill { height:100%; background:#00fff6; width:0%; transition:width .8s linear; }
.czm-np-thumb { width:44px; height:44px; border-radius:4px; object-fit:cover; flex-shrink:0; background:#242424; }
.czm-np-info { flex:1; min-width:0; overflow:hidden; }
.czm-np-title-clip { overflow:hidden; width:100%; display:block; }
.czm-np-title  { font-size:13px; font-weight:600; white-space:nowrap; color:#fff; display:inline-block; }
.czm-np-title.czm-np-scroll {
  animation: czm-np-marquee var(--np-dur, 8s) linear infinite;
  will-change: transform;
}
@keyframes czm-np-marquee {
  0%   { transform: translateX(0); }
  100% { transform: translateX(var(--np-ex, -200px)); }
}
.czm-np-artist { font-size:11px; color:#aaa; margin-top:1px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.czm-np-ctrl   { display:flex; align-items:center; gap:16px; }
.czm-np-btn { background:none; border:none; color:#fff; font-size:22px; cursor:pointer; padding:4px; }

/* Sedikit lightening di area bawah (controls) */
#music .czm-player-body {
  position: relative;
  z-index: 1;
}
#music .czm-player-body::after {
  content: none;
}

/* ===== PLAYER VIEW ===== */
#music #czm-player-inner { background:#0f2035; padding-top:0; }
/* ===== PLAYER TOPBAR ===== */
#music .czm-player-topbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 10005;
  background: rgba(15,32,53,0.98);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  padding: 12px 16px;
  display: flex; align-items: center; gap: 10px;
}
#music .czm-back {
  background: none; border: none; color: #fff; font-size: 18px;
  cursor: pointer; padding: 6px; flex-shrink: 0;
}
#music .czm-topbar-center {
  flex: 1; min-width: 0; text-align: center;
}
#music .czm-topbar-label {
  font-size: 11px; color: #aaa; text-transform: uppercase; letter-spacing: .5px;
}
#music .czm-topbar-source {
  font-size: 13px; font-weight: 700; color: #fff;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* Topbar saat tab terbuka: tengah jadi thumbnail + judul */
#music .czm-topbar-mini {
  display: none; align-items: center; gap: 10px;
  flex: 1; min-width: 0;
}
#music #czm-player.czm-tab-open .czm-topbar-center { display: none; }
#music #czm-player.czm-tab-open .czm-topbar-mini   { display: flex; }
/* Swap tombol kanan: titik tiga ↔ play/pause */
#music #czm-player.czm-tab-open #czm-more-toggle  { display: none; }
#music #czm-player.czm-tab-open #czm-mini-play-btn { display: flex !important; }
#music .czm-topbar-mini-art {
  width: 34px; height: 34px; border-radius: 4px;
  object-fit: cover; flex-shrink: 0; background: #152840;
}
#music .czm-topbar-mini-info { min-width: 0; flex: 1; }
#music .czm-topbar-mini-title {
  font-size: 13px; font-weight: 700; color: #fff;
  white-space: nowrap; overflow: hidden;
}
#music .czm-topbar-mini-title span {
  display: inline-block;
  animation: czm-topbar-marquee var(--tb-dur, 8s) linear infinite;
}
@keyframes czm-topbar-marquee {
  0%   { transform: translateX(0); }
  100% { transform: translateX(var(--tb-ex, -200px)); }
}
#music .czm-topbar-mini-artist {
  font-size: 11px; color: #aaa;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* ===== PLAYER BODY ===== */
#music .czm-player-body {
  padding: 0 20px 0;
  display: flex; flex-direction: column; align-items: center;
  background: #0f2035;
}

/* Nutupin gap transparan antara waveform dan tab bar */
/* === INLINE ARTIST SECTION (scroll ke bawah di full view) === */
#music .czm-inline-artist {
  width: 100%;
  margin-top: 28px;
  padding-bottom: 0px;
}
#music .czm-inline-artist:empty { display: none; }

/* Artist card — clickable, like Spotify */
#music .czm-ia-card {
  position: relative;
  width: 100%;
  height: 190px;
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
#music .czm-ia-card:active { opacity: 0.85; }
#music .czm-ia-card-label {
  position: absolute;
  top: 14px; left: 14px;
  font-size: 11px; font-weight: 700;
  color: rgba(255,255,255,0.7);
  letter-spacing: .6px;
  text-shadow: 0 1px 4px rgba(0,0,0,0.6);
}
#music .czm-ia-card img.czm-ia-bg {
  width: 100%; height: 100%;
  object-fit: cover; object-position: top;
  filter: brightness(0.6);
}
#music .czm-ia-banner-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, transparent 20%, rgba(0,0,0,0.85) 100%);
}
#music .czm-ia-banner-info {
  position: absolute; bottom: 14px; left: 14px; right: 14px;
  display: flex; flex-direction: column; gap: 2px;
}
#music .czm-ia-avatar { display: none; }
#music .czm-ia-name {
  font-size: 20px; font-weight: 800; color: #fff; line-height: 1.2;
}
#music .czm-ia-listeners {
  font-size: 12px; color: #ccc; margin-top: 2px;
}
#music .czm-ia-genre {
  display: none;
}
/* Multi-artist slider */
#music .czm-ia-slider-wrap {
  position: relative; width: 100%;
}
#music .czm-ia-slider {
  display: flex; overflow-x: scroll; scroll-snap-type: x mandatory;
  scrollbar-width: none; gap: 0;
}
#music .czm-ia-slider::-webkit-scrollbar { display: none; }
#music .czm-ia-slider .czm-ia-card {
  flex-shrink: 0; width: 100%; scroll-snap-align: start;
}
#music .czm-ia-dots {
  display: flex; justify-content: center; gap: 6px;
  margin-top: 10px;
}
#music .czm-ia-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: rgba(255,255,255,0.3); transition: all 0.3s;
}
#music .czm-ia-dot.active {
  width: 20px; border-radius: 3px; background: #00fff6;
}
/* === ARTIST PAGE (fullscreen overlay) === */
#czm-artist-page {
  position: fixed; inset: 0;
  background: #0a1628;
  z-index: 10050;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  transform: translateY(100%);
  transition: transform 0.32s cubic-bezier(0.32, 0.72, 0, 1);
  pointer-events: none;
}
#czm-artist-page.open {
  transform: translateY(0);
  pointer-events: auto;
}
.czm-ap-hero {
  position: relative; width: 100%; height: 320px; flex-shrink: 0;
}
.czm-ap-hero img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: top;
}
.czm-ap-hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.15) 30%, rgba(0,0,0,0.7) 100%);
}
.czm-ap-back {
  position: absolute; top: 14px; left: 14px;
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(0,0,0,0.5);
  border: none; color: #fff; font-size: 16px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
}
.czm-ap-name {
  position: absolute; bottom: 30px; left: 16px;
  font-size: 28px; font-weight: 800; color: #fff;
  text-shadow: 0 2px 8px rgba(0,0,0,0.6);
}
.czm-ap-meta {
  position: absolute; bottom: 10px; left: 16px;
  font-size: 13px; color: rgba(255,255,255,0.75);
}
.czm-ap-body { padding: 0 0 40px; }
/* Controls row: repeat kiri, play kanan */
.czm-ap-section-label {
  font-size: 12px; font-weight: 700; color: #aaa;
  letter-spacing: 1px; margin: 14px 0 6px;
  padding: 0 14px;
  display: flex; align-items: center; gap: 6px;
}
.czm-ap-songs-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #888;
  font-size: 10px;
  background: rgba(255,255,255,0.08);
  border-radius: 50%;
  width: 18px; height: 18px;
  flex-shrink: 0;
  opacity: 0;
  transition: opacity 0.3s;
}
.czm-ap-songs-arrow.visible { opacity: 1; }
.czm-ap-controls {
  display: flex; align-items: center; justify-content: space-between;
  gap: 14px; padding: 12px 14px 8px;
}
.czm-ap-ctrl-left { display: flex; align-items: center; gap: 10px; }
.czm-ap-ctrl-right { display: flex; align-items: center; gap: 14px; }
.czm-ap-ctrl-art {
  width: 44px; height: 44px; border-radius: 8px;
  object-fit: cover; flex-shrink: 0;
  background: rgba(255,255,255,0.07);
  box-shadow: 0 2px 8px rgba(0,0,0,0.4);
}
.czm-ap-ctrl-btn {
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255,255,255,0.08);
  border: none; color: #aaa; font-size: 15px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: transform .15s, color .15s, background .15s;
  flex-shrink: 0;
}
.czm-ap-ctrl-btn:active { transform: scale(0.93); }
.czm-ap-ctrl-btn.czm-ap-plus { color: #00d9ff; background: rgba(0,217,255,0.10); }
/* Repeat button */
.czm-ap-repeat-btn {
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(255,255,255,0.08);
  border: none; color: #aaa; font-size: 16px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: transform .15s, color .15s, background .15s;
}
.czm-ap-repeat-btn:active { transform: scale(0.93); }
.czm-ap-repeat-btn.active { color: #00d9ff; background: rgba(0,217,255,0.12); }
/* Play/pause button */
.czm-ap-play-btn {
  width: 52px; height: 52px; border-radius: 50%;
  background: #ffffff;
  border: none; color: #0a1628;
  font-size: 18px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,0.35);
  transition: transform .15s;
}
.czm-ap-play-btn:active { transform: scale(0.93); }
/* === Artist page — grid 3 kolom (YouTube Music style) === */
/* ── Songs: paged 2×3 slider ── */
#czm-ap-songs {
  display: flex;
  flex-direction: row;
  gap: 0;
  padding: 4px 0 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
#czm-ap-songs::-webkit-scrollbar { display: none; }

.czm-ap-song-page {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(2, auto);
  gap: 10px;
  padding: 0 14px;
  flex: 0 0 100%;
  box-sizing: border-box;
  scroll-snap-align: start;
}

.czm-ap-song {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
  width: 100%;
  min-width: 0;
  cursor: pointer;
  border-bottom: none;
  padding: 0;
  border-radius: 10px;
  transition: opacity .15s;
  position: relative;
  box-sizing: border-box;
}
.czm-ap-song:active { opacity: 0.7; }
/* Nomor lagu di sudut gambar */
.czm-ap-song-num-badge {
  position: absolute;
  top: 5px; left: 5px;
  background: rgba(10,22,40,0.75);
  color: #fff;
  font-size: 10px; font-weight: 700;
  width: 18px; height: 18px;
  border-radius: 5px;
  display: flex; align-items: center; justify-content: center;
  backdrop-filter: blur(4px);
  line-height: 1;
}
.czm-ap-song.czm-ap-active .czm-ap-song-num-badge { color: #00d9ff; }

.czm-ap-song-img-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 10px;
  overflow: hidden;
  flex-shrink: 0;
}
.czm-ap-song-img-wrap img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 10px;
}
/* Active glow border */
.czm-ap-song.czm-ap-active .czm-ap-song-img-wrap {
  box-shadow: 0 0 0 2px #00d9ff;
}

/* Playing bars overlay on image */
.czm-ap-bars-overlay {
  position: absolute;
  bottom: 6px; left: 6px;
  display: flex; align-items: flex-end; gap: 2px;
  height: 16px; width: 16px;
  background: rgba(10,22,40,0.65);
  border-radius: 4px;
  padding: 2px 3px;
  box-sizing: border-box;
}
.czm-ap-bars-overlay span {
  display: block; width: 3px; border-radius: 1px;
  background: #00d9ff;
  animation: czm-bar-anim 0.8s ease-in-out infinite alternate;
}
.czm-ap-bars-overlay span:nth-child(1) { height: 5px; animation-delay: 0s; }
.czm-ap-bars-overlay span:nth-child(2) { height: 10px; animation-delay: 0.2s; }
.czm-ap-bars-overlay span:nth-child(3) { height: 7px; animation-delay: 0.4s; }
.czm-ap-bars-overlay.czm-paused span { animation-play-state: paused; }

.czm-ap-song-num {
  display: none; /* hidden in card mode */
}
.czm-ap-song-info {
  width: 100%;
  padding: 6px 2px 0;
  box-sizing: border-box;
}
.czm-ap-song-title {
  font-size: 13px; font-weight: 600; color: #fff;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  display: block;
  line-height: 1.3;
}
.czm-ap-song.czm-ap-active .czm-ap-song-title { color: #00d9ff; }
.czm-ap-song-views { font-size: 11px; color: #777; margin-top: 2px; }
.czm-ap-song-more {
  display: none; /* hidden in card mode, tap card = play */
}
/* Tombol lihat lagu selanjutnya */
.czm-ap-more-btn {
  display: block;
  width: calc(100% - 28px);
  margin: 4px 14px 0;
  padding: 12px 0;
  background: rgba(0,217,255,0.07);
  border: 1px solid rgba(0,217,255,0.2);
  border-radius: 12px;
  color: #00d9ff;
  font-size: 13px;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: background .15s;
}
.czm-ap-more-btn:active { background: rgba(0,217,255,0.15); }

/* ── Artis Lainnya ── */
.czm-ap-other-artists {
  display: flex;
  flex-direction: row;
  gap: 16px;
  padding: 4px 14px 24px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.czm-ap-other-artists::-webkit-scrollbar { display: none; }
.czm-ap-other-artist {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 0 0 40vw;
  max-width: 160px;
  min-width: 125px;
  cursor: pointer;
  transition: opacity .15s;
}
.czm-ap-other-artist:active { opacity: 0.7; }
.czm-ap-other-artist img {
  width: 100%;
  aspect-ratio: 1/1;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  border: 2px solid rgba(255,255,255,0.15);
}
.czm-ap-other-artist-name {
  font-size: 12px;
  font-weight: 600;
  color: #fff;
  text-align: center;
  margin-top: 7px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  width: 100%;
}
/* Animated bars icon (like Spotify "now playing" indicator) */
.czm-ap-bars {
  display: flex; align-items: flex-end; gap: 2px;
  height: 14px; width: 14px; flex-shrink: 0;
}
.czm-ap-bars span {
  display: block; width: 3px; border-radius: 1px;
  background: #00d9ff;
  animation: czm-bar-anim 0.8s ease-in-out infinite alternate;
}
.czm-ap-bars span:nth-child(1) { height: 6px; animation-delay: 0s; }
.czm-ap-bars span:nth-child(2) { height: 12px; animation-delay: 0.2s; }
.czm-ap-bars span:nth-child(3) { height: 8px; animation-delay: 0.4s; }
.czm-ap-bars.czm-paused span { animation-play-state: paused; }
@keyframes czm-bar-anim {
  from { transform: scaleY(0.4); }
  to   { transform: scaleY(1); }
}

/* === FULL VIEW (normal): art besar === */
#music .czm-full-view {
  width: 100%;
  display: flex; flex-direction: column; align-items: center;
  padding: 72px 0 24px; box-sizing: border-box;
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.22s ease, transform 0.22s ease;
}
#music .czm-full-view.czm-hidden {
  display: none;
  opacity: 0;
  transform: translateY(-12px);
}

/* Album art */
#music .czm-art-wrap {
  width: min(340px, 90vw); height: min(340px, 90vw);
  border-radius: 8px; overflow: hidden;
  box-shadow: 0 20px 60px rgba(15,32,53,0.7);
  margin: 12px 0 26px; flex-shrink: 0;
  position: relative;
  transition: height 0.4s cubic-bezier(.4,0,.2,1);
}
#music .czm-art-wrap.czm-video-mode {
  width: min(340px, 94vw);
  height: min(191px, 53vw);
  border-radius: 12px;
  margin-top: 64px;   /* jarak atas video dari topbar */
  margin-bottom: 64px; /* jarak bawah video ke judul */
}
#music #czm-art { width:100%; height:100%; object-fit:cover; display:block; }
#music #czm-video { display:none; width:100%; height:100%; object-fit:cover; }

/* MV toggle badge */
#music .czm-mv-badge {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(15,32,53,0.62);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(0,217,255,0.5);
  border-radius: 20px;
  padding: 5px 11px;
  font-size: 12px;
  font-weight: 700;
  color: #00d9ff;
  display: flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  transition: all 0.25s;
  z-index: 10;
  user-select: none;
  box-shadow: 0 0 10px rgba(0,217,255,0.3);
}
#music .czm-mv-badge:hover {
  background: rgba(0,217,255,0.2);
  box-shadow: 0 0 16px rgba(0,217,255,0.5);
}
#music .czm-mv-badge.czm-mv-on {
  background: rgba(0,217,255,0.22);
  border-color: #00d9ff;
  color: #fff;
  box-shadow: 0 0 16px rgba(0,217,255,0.6);
}
#music .czm-mv-badge i { font-size: 11px; }

/* Song title + artist (tanpa like/dislike di sebelah) */
#music .czm-info-row {
  width: 100%; display: flex; align-items: center;
  gap: 12px; margin-bottom: 4px;
}
/* Khusus video mode: kasih jarak antara video dan judul seperti YT Music */
#music .czm-art-wrap.czm-video-mode ~ .czm-info-row {
  margin-top: 24px;
}
#music .czm-info-text { flex: 1; min-width: 0; width: 0; }
#music .czm-title-clip { overflow: hidden; min-width: 0; width: 100%; }
#music .czm-title-clip {
  overflow: hidden;
  min-width: 0;
  width: 100%;
  display: flex;
}
#music .czm-stitle {
  font-size: 20px; font-weight: 700; color: #fff;
  white-space: nowrap; display: inline-block;
  flex-shrink: 0;
}
#music .czm-stitle.czm-scroll {
  animation: czm-marquee var(--czm-dur, 8s) linear infinite;
  will-change: transform;
}
@keyframes czm-marquee {
  0%   { transform: translateX(0); }
  100% { transform: translateX(var(--czm-ex, -300px)); }
}
#music .czm-sartist { font-size: 14px; color: #aaa; margin-top: 3px; }

/* Like / Dislike pill (tetap ada di info-row) */
#music .czm-ld-group { display: none; } /* tidak dipakai lagi */

/* Like/Dislike state saat aktif */
#music #czm-like-btn.liked { background: rgba(0,217,255,0.15); color: #00d9ff; border: 1px solid rgba(0,217,255,0.4); }
#music #czm-like-btn.liked i { color: #00d9ff !important; }
#music #czm-dislike-btn.disliked { background: rgba(255,100,100,0.12); color: #ff6b6b; border: 1px solid rgba(255,100,100,0.3); }
#music #czm-dislike-btn.disliked i { color: #ff6b6b !important; }

/* Action pills row: Simpan, Share, Download */
#music .czm-action-row {
  width: 100%; display: flex; gap: 10px;
  margin: 14px 0 18px; flex-wrap: nowrap; overflow-x: auto;
  scrollbar-width: none;
}
#music .czm-action-row::-webkit-scrollbar { display: none; }
#music .czm-action-pill {
  display: flex; align-items: center; gap: 8px;
  background: #152840; border: 1px solid transparent; color: #fff;
  font-size: 13px; font-weight: 600;
  padding: 10px 18px; border-radius: 50px;
  cursor: pointer; white-space: nowrap; flex-shrink: 0;
  -webkit-tap-highlight-color: transparent;
  transition: background .15s;
}
#music .czm-action-pill:active { background: #152840; }
#music .czm-action-pill i { font-size: 15px; color: #ccc; }

/* Progress / Seekbar */
#music .czm-seekbar-wrap { width: 100%; margin-bottom: 4px; }
#music .czm-seekbar {
  width: 100%; height: 3px;
  background: rgba(255,255,255,0.2);
  border-radius: 3px; cursor: pointer; position: relative;
}
#music .czm-seekbar:hover { height: 4px; }
#music #czm-prog {
  height: 100%; background: #00fff6;
  border-radius: 3px; width: 0%; pointer-events: none;
}
#music .czm-seek-thumb { display: none !important; }
#music .czm-times {
  display: flex; justify-content: space-between;
  font-size: 11px; color: #777; margin-top: 6px;
}

/* Controls: shuffle | prev | play | next | repeat */
#music .czm-ctrl {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%; padding: 14px 0 10px;
}
#music .czm-cbtn {
  background: none; border: none; color: #aaa; font-size: 22px;
  cursor: pointer; padding: 8px; border-radius: 50%;
  transition: color .18s; -webkit-tap-highlight-color: transparent;
}
#music .czm-cbtn:active { color: #fff; }
#music .czm-cbtn.active { color: #00d9ff; }
#music .czm-playbtn {
  width: 64px; height: 64px; border-radius: 50%;
  background: #fff; border: none; color: #000;
  font-size: 24px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: transform .1s;
}
#music .czm-playbtn:active { transform: scale(0.93); }

/* Playlist items */
/* ========== PLAYLIST DETAIL PAGE ========== */
.czm-pld-page {
  display: none;
  position: fixed; inset: 0;
  z-index: 10027;
  background: #0a1628;
  flex-direction: column;
  overflow: hidden;
}
.czm-pld-hero {
  position: relative;
  padding: 70px 0 24px;
  flex-shrink: 0;
  overflow: hidden;
}
.czm-pld-hero-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  filter: blur(40px) brightness(0.35);
  transform: scale(1.2);
}
.czm-pld-hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(10,22,40,0.3) 0%, #0a1628 100%);
}
.czm-pld-hero-top {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 10028;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 16px;
  background: transparent;
}
.czm-pld-back, .czm-pld-delete {
  background: rgba(255,255,255,0.08);
  border: none; border-radius: 50%;
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; font-size: 15px;
}
.czm-pld-back { color: #fff; }
.czm-pld-delete { color: #aaa; }
.czm-pld-hero-art {
  position: relative;
  width: 130px; height: 130px;
  margin: 20px auto 16px;
  border-radius: 16px;
  background: linear-gradient(135deg, #0d2137, #1a3a58);
  border: 1px solid rgba(0,217,255,0.2);
  box-shadow: 0 8px 32px rgba(0,0,0,0.5);
  display: flex; align-items: center; justify-content: center;
  font-size: 44px; color: rgba(0,217,255,0.4);
  overflow: hidden;
}
.czm-pld-hero-art img {
  width: 100%; height: 100%; object-fit: cover; border-radius: 16px;
}
.czm-pld-hero-info {
  position: relative;
  text-align: center; padding: 0 20px 4px;
}
.czm-pld-label {
  font-size: 10px; letter-spacing: 2px; color: #00d9ff;
  font-weight: 700; margin-bottom: 6px;
}
.czm-pld-name {
  font-size: 22px; font-weight: 800; color: #fff;
  line-height: 1.2; margin-bottom: 6px;
}
.czm-pld-count {
  font-size: 12px; color: #aaa;
}
.czm-pld-hero-actions {
  position: relative;
  display: flex; align-items: center; justify-content: center;
  gap: 12px; padding: 16px 20px 0;
}
.czm-pld-play-all {
  flex: 1; max-width: 220px;
  background: #00d9ff; border: none;
  color: #0a1628; font-size: 14px; font-weight: 700;
  border-radius: 99px; padding: 12px 0;
  cursor: pointer; display: flex; align-items: center;
  justify-content: center; gap: 8px;
  box-shadow: 0 4px 16px rgba(0,217,255,0.3);
}
.czm-pld-shuffle-btn {
  width: 46px; height: 46px; border-radius: 50%;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  color: #fff; font-size: 16px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
}
.czm-pld-repeat-btn {
  width: 46px; height: 46px; border-radius: 50%;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  color: #aaa; font-size: 16px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: color .15s, background .15s;
}
.czm-pld-repeat-btn.active {
  color: #00d9ff;
  background: rgba(0,217,255,0.12);
  border-color: rgba(0,217,255,0.3);
}
.czm-pld-songs {
  flex: 1; overflow-y: auto;
  padding: 8px 0 80px;
}
.czm-pld-item {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 16px; cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background .12s;
}
.czm-pld-item:active { background: rgba(255,255,255,0.04); }
.czm-pld-item.czm-pld-active { background: rgba(0,217,255,0.05); }
.czm-pld-num {
  font-size: 12px; color: #555; width: 22px;
  text-align: center; flex-shrink: 0;
}
.czm-pld-item.czm-pld-active .czm-pld-num { color: #00d9ff; }
.czm-pld-thumb {
  width: 50px; height: 50px; border-radius: 8px;
  object-fit: cover; flex-shrink: 0; background: #152840;
}
.czm-pld-item.czm-pld-active .czm-pld-thumb {
  box-shadow: 0 0 0 2px #00d9ff;
}
.czm-pld-info { flex: 1; min-width: 0; }
.czm-pld-title {
  font-size: 14px; font-weight: 600; color: #fff;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.czm-pld-item.czm-pld-active .czm-pld-title { color: #00d9ff; }
.czm-pld-artist {
  font-size: 12px; color: #777; margin-top: 2px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.czm-pld-more-btn {
  background: none; border: none; color: #555;
  font-size: 16px; cursor: pointer; padding: 6px 8px;
  flex-shrink: 0;
}
.czm-pld-more-btn:active { color: #aaa; }
/* Bars animasi untuk lagu aktif */
.czm-pld-bars {
  display: flex; align-items: flex-end; gap: 2px;
  width: 16px; height: 14px; flex-shrink: 0;
}
.czm-pld-bars span {
  display: block; width: 3px; border-radius: 1px;
  background: #00d9ff;
  animation: czm-bar-anim 0.8s ease-in-out infinite alternate;
}
.czm-pld-bars span:nth-child(1){height:5px;animation-delay:0s}
.czm-pld-bars span:nth-child(2){height:10px;animation-delay:.2s}
.czm-pld-bars span:nth-child(3){height:7px;animation-delay:.4s}
.czm-pld-bars.czm-paused span { animation-play-state: paused; }

/* ========== DARI PLAYLIST (player box) ========== */
#music .czm-pl-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 16px 10px;
  border-bottom: 1px solid rgba(0,217,255,0.1);
  margin-bottom: 4px;
}
#music .czm-pl-header-left { display: flex; align-items: center; gap: 10px; }
#music .czm-pl-header-ico {
  width: 34px; height: 34px; border-radius: 8px;
  background: rgba(0,217,255,0.12); border: 1px solid rgba(0,217,255,0.25);
  color: #00d9ff; font-size: 14px;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
#music .czm-pl-header-label { font-size: 10px; font-weight: 700; letter-spacing: 1.5px; color: #aaa; }
#music .czm-pl-header-name { font-size: 14px; font-weight: 700; color: #fff; margin-top: 1px; }
#music .czm-pl-header-count { font-size: 12px; color: #555; background: rgba(255,255,255,0.06); border-radius: 99px; padding: 3px 10px; }
#music .czm-pl-list { padding: 0 0 8px; }
#music .czm-plitem { display: flex; align-items: center; gap: 12px; padding: 10px 16px; cursor: pointer; -webkit-tap-highlight-color: transparent; }
#music .czm-plitem:active { opacity: .7; }
#music .czm-pl-num { font-size: 13px; color: #777; width: 22px; text-align: center; flex-shrink: 0; }
#music .czm-pl-img { width: 46px; height: 46px; border-radius: 4px; object-fit: cover; flex-shrink: 0; background: #152840; }
#music .czm-pl-t-wrap { overflow: hidden; min-width: 0; flex: 1; display: block; }
#music .czm-pl-t { font-size: 14px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: #fff; display: block; }
#music .czm-plitem.czm-cur .czm-pl-t { color: #00fff6; font-weight: 700; }
#music .czm-pl-s { font-size: 12px; color: #aaa; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#music .czm-dot { display: inline-block; width: 8px; height: 8px; background: #00fff6; border-radius: 50%; animation: czm-pulse 1s ease-in-out infinite; }
#music .czm-pl-playing-badge { flex-shrink: 0; width: 28px; height: 28px; border-radius: 50%; background: rgba(0,217,255,0.12); display: flex; align-items: center; justify-content: center; color: #00d9ff; font-size: 11px; }
@keyframes czm-pulse { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:.5;transform:scale(.8)} }

/* Visualizer */
#music .czm-vis {
  display: flex; align-items: flex-end; gap: 3px;
  height: 30px; margin: 8px 0 0;
}
#music .czm-vbar {
  width: 3px; height: 3px; background: #00fff6;
  border-radius: 2px;
}

/* ===== STICKY HEADER: hanya untuk collapsed view (topbar info) ===== */
#music .czm-sticky-header {
  display: none; /* tidak dipakai lagi */
}

/* Tab bar — FIXED di bawah layar, hanya tampil saat #czm-player aktif */
#music .czm-tab-bar {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  display: flex;
  border-top: 1px solid rgba(255,255,255,.1);
  background: #0f2035;
  z-index: 10004;
  box-sizing: border-box;
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

/* ===== COLLAPSED VIEW ===== */
#music .czm-collapsed-view {
  display: flex;
  flex-direction: column;
  width: 100%;
  padding: 0 20px 20px;
  box-sizing: border-box;
  opacity: 0;
  transform: translateY(18px);
  pointer-events: none;
  transition: opacity 0.28s ease, transform 0.28s cubic-bezier(0.32, 0.72, 0, 1);
}
#music .czm-collapsed-view.czm-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
#music .czm-tab {
  flex: 1; background: none; border: none;
  color: #666; font-size: 13px; font-weight: 700;
  letter-spacing: .5px; padding: 12px 0;
  cursor: pointer; border-bottom: 2px solid transparent;
  transition: color .18s, border-color .18s;
  -webkit-tap-highlight-color: transparent;
  white-space: nowrap;
}
#music .czm-tab.active {
  color: #fff; border-bottom-color: #fff;
}

/* Tab content */
#music .czm-tab-content { width: 100%; padding-top: 4px; padding-bottom: 24px; }
#music .czm-tab-hidden  { display: none; }

/* ===== TAB: BERIKUTNYA ===== */

/* From row */
#music .czm-from-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 0 10px; gap: 12px;
}
#music .czm-from-label { font-size: 12px; color: #aaa; }
#music .czm-from-name  { font-size: 14px; font-weight: 700; color: #fff; margin-top: 2px; }
#music .czm-save-btn {
  background: #152840; border: none; color: #fff;
  font-size: 13px; font-weight: 600; padding: 9px 18px;
  border-radius: 20px; cursor: pointer; display: flex;
  align-items: center; gap: 7px; white-space: nowrap; flex-shrink: 0;
  -webkit-tap-highlight-color: transparent;
}
#music .czm-save-btn:active { background: #152840; }

/* Now playing highlighted row */
#music .czm-now-playing-row {
  display: flex; align-items: center; gap: 12px;
  background: rgba(255,255,255,.08);
  border-radius: 6px; padding: 10px 12px;
  margin-bottom: 4px; cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
#music .czm-np-row-img {
  width: 46px; height: 46px; border-radius: 4px;
  object-fit: cover; flex-shrink: 0; background: #152840;
}
#music .czm-np-row-info { flex: 1; min-width: 0; }
#music .czm-np-row-title {
  font-size: 14px; font-weight: 700; color: #fff;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
#music .czm-np-row-sub {
  font-size: 12px; color: #aaa; margin-top: 2px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
/* Animasi bars sedang diputar */
#music .czm-np-row-bars {
  display: flex; align-items: flex-end; gap: 2px;
  height: 18px; flex-shrink: 0; margin: 0 4px;
}
#music .czm-np-row-bars span {
  width: 3px; background: #fff; border-radius: 2px;
  animation: czm-npbar 0.8s ease-in-out infinite alternate;
}
#music .czm-np-row-bars span:nth-child(1) { height: 6px;  animation-delay: 0s; }
#music .czm-np-row-bars span:nth-child(2) { height: 14px; animation-delay: 0.2s; }
#music .czm-np-row-bars span:nth-child(3) { height: 9px;  animation-delay: 0.4s; }
@keyframes czm-npbar {
  from { transform: scaleY(0.4); }
  to   { transform: scaleY(1); }
}
#music .czm-np-row-menu {
  background: none; border: none; color: #777;
  font-size: 18px; cursor: pointer; padding: 4px 6px;
  flex-shrink: 0;
}


/* ===== FILTER CHIPS (BERIKUTNYA tab) ===== */
#music .czm-filter-bar {
  display: flex; gap: 8px; padding: 10px 0 12px;
  overflow-x: auto; scrollbar-width: none;
  -webkit-overflow-scrolling: touch; flex-shrink: 0;
}
#music .czm-filter-bar::-webkit-scrollbar { display: none; }
#music .czm-filter-chip {
  flex-shrink: 0;
  background: #152840; border: none; color: #fff;
  font-size: 13px; font-weight: 500; padding: 8px 16px;
  border-radius: 20px; cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background 0.15s, color 0.15s;
  white-space: nowrap;
}
#music .czm-filter-chip.active {
  background: #fff; color: #000; font-weight: 700;
}
#music .czm-filter-chip:active { opacity: 0.7; }
/* Pastikan from-row selalu terlihat */
#music #czm-tab-content-next { padding-top: 0 !important; }
#music .czm-from-row { border-bottom: 1px solid rgba(255,255,255,0.08); }

/* ===== TAB: TERKAIT ===== */
#music #czm-related-box { padding: 8px 0 20px; }

/* Section title */
#music .czm-rel-section { margin-bottom: 4px; }
#music .czm-rel-title {
  font-size: 18px; font-weight: 700; color: #fff;
  padding: 16px 0 10px;
}

/* List items (Anda mungkin juga suka) */
#music .czm-rel-item {
  display: flex; align-items: center; gap: 14px;
  padding: 9px 0; cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
#music .czm-rel-item:active { opacity: .7; }
#music .czm-rel-img {
  width: 48px; height: 48px; border-radius: 4px;
  object-fit: cover; flex-shrink: 0; background: #152840;
}
#music .czm-rel-info { flex: 1; min-width: 0; }
#music .czm-rel-t {
  font-size: 14px; font-weight: 500; color: #fff;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
#music .czm-rel-s { font-size: 12px; color: #aaa; margin-top: 2px; }
#music .czm-rel-dots {
  background: none; border: none; color: #777;
  font-size: 18px; cursor: pointer; padding: 4px 6px; flex-shrink: 0;
}

/* Grid playlist rekomendasi */
#music .czm-rel-grid-title {
  font-size: 18px; font-weight: 700; color: #fff;
  padding: 20px 0 12px;
}
#music .czm-rel-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 14px;
}
#music .czm-rel-grid-item {
  cursor: pointer; -webkit-tap-highlight-color: transparent;
}
#music .czm-rel-grid-item:active { opacity: .7; }
#music .czm-rel-grid-mosaic {
  width: 100%; aspect-ratio: 1;
  border-radius: 8px; overflow: hidden;
  display: grid; grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr; gap: 1px;
  background: #0f2035;
  margin-bottom: 8px;
}
#music .czm-rel-grid-mosaic img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
#music .czm-rel-grid-name {
  font-size: 13px; font-weight: 600; color: #fff;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
#music .czm-rel-grid-sub {
  font-size: 11px; color: #aaa; margin-top: 2px;
}

/* ===== SEARCH OVERLAY ===== */
#music .czm-search-ov { display:none!important; position:fixed; inset:0; z-index:10003; background:#0a1628; flex-direction:column; }
#music .czm-search-ov.czm-on { display:flex!important; }
#music .czm-search-bar { padding:10px 12px; display:flex; align-items:center; gap:8px; background:#0a1628; flex-shrink:0; }
#music .czm-search-input-wrap{
  flex:1;
  display:flex;
  align-items:center;
  gap:8px;

  background:#1a2d42;
  border-radius:999px;

  height:44px;
  padding:0 14px;
}

#music .czm-srch-ico{
  color:#8b8b8b;
  font-size:14px;
  flex-shrink:0;
}

#music #czm-search-inp{
  flex:1;

  background:none;
  border:none;
  outline:none;

  color:#fff;
  font-size:15px;
  font-family:inherit;

  height:100%;
  line-height:44px;

  padding:0;
  margin:0;
}

#music #czm-search-inp::placeholder{
  color:#8b8b8b;
}
#music .czm-srch-clear { background:none; border:none; color:#666; font-size:16px; cursor:pointer; padding:0 2px; display:flex; align-items:center; flex-shrink:0; }

/* Filter Chips */
#music .czm-srch-chips { display:flex; gap:8px; padding:10px 14px; background:#0a1628; flex-shrink:0; overflow-x:auto; scrollbar-width:none; border-bottom:1px solid rgba(255,255,255,0.06); }
#music .czm-srch-chips::-webkit-scrollbar { display:none; }
#music .czm-srch-chip { background:#1e3550; border:none; color:#ccc; font-size:13px; font-weight:600; padding:7px 16px; border-radius:20px; cursor:pointer; white-space:nowrap; transition:background .15s,color .15s; -webkit-tap-highlight-color:transparent; font-family:inherit; }
#music .czm-srch-chip.active { background:#fff; color:#000; }

#music .czm-search-res { flex:1; overflow-y:auto; padding:0 0 80px; }

/* ===== SEARCH LOADING — YT Music style ===== */
/* Progress bar tipis di atas search overlay */
#music .czm-srch-progress {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  z-index: 10010;
  overflow: hidden;
  opacity: 0;
  transition: opacity 0.15s ease;
  pointer-events: none;
}
#music .czm-srch-progress.czm-loading {
  opacity: 1;
}
#music .czm-srch-progress-bar {
  height: 100%;
  width: 100%;
  background: linear-gradient(90deg, transparent 0%, #00d9ff 30%, #00d9ff 50%, transparent 100%);
  background-size: 200% 100%;
  animation: czm-srch-slide 1.1s ease-in-out infinite;
}
@keyframes czm-srch-slide {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Skeleton shimmer cards */
#music .czm-skeleton-wrap {
  padding: 4px 0;
}
#music .czm-skeleton-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 14px;
}
#music .czm-skeleton-thumb {
  width: 44px; height: 44px;
  border-radius: 6px;
  background: linear-gradient(90deg, #1a2a3e 25%, #243548 50%, #1a2a3e 75%);
  background-size: 200% 100%;
  animation: czm-shimmer 1.4s infinite;
  flex-shrink: 0;
}
#music .czm-skeleton-thumb.circle {
  border-radius: 50%;
}
#music .czm-skeleton-lines {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
#music .czm-skeleton-line {
  height: 12px;
  border-radius: 6px;
  background: linear-gradient(90deg, #1a2a3e 25%, #243548 50%, #1a2a3e 75%);
  background-size: 200% 100%;
  animation: czm-shimmer 1.4s infinite;
}
#music .czm-skeleton-line.short { width: 55%; animation-delay: 0.1s; }
#music .czm-skeleton-line.xshort { width: 35%; animation-delay: 0.2s; }
@keyframes czm-shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Section label */
#music .czm-srch-section-lbl { font-size:12px; font-weight:700; color:#aaa; padding:14px 16px 6px; letter-spacing:0.04em; text-transform:uppercase; }

/* Recent search item */
#music .czm-qitem-recent { padding:10px 14px; }
#music .czm-search-res .czm-qitem { padding:9px 14px; }
#music .czm-q-hist-ico { width:40px; height:40px; border-radius:50%; background:#1e3550; display:flex; align-items:center; justify-content:center; color:#aaa; font-size:14px; flex-shrink:0; }
#music .czm-q-fill-btn { background:none; border:none; color:#999; font-size:16px; cursor:pointer; padding:6px 8px; flex-shrink:0; -webkit-tap-highlight-color:transparent; }
#music .czm-q-del-btn { background:none; border:none; color:#999; font-size:16px; cursor:pointer; padding:6px 8px; flex-shrink:0; -webkit-tap-highlight-color:transparent; }

/* Recent searches grid thumbnail */
#music .czm-recent-grid { display:flex; gap:10px; padding:6px 14px 14px; overflow-x:auto; scrollbar-width:none; }
#music .czm-recent-grid::-webkit-scrollbar { display:none; }
#music .czm-recent-grid-item { flex-shrink:0; width:80px; cursor:pointer; -webkit-tap-highlight-color:transparent; }
#music .czm-recent-grid-item img { width:80px; height:80px; border-radius:6px; object-fit:cover; display:block; background:#1a2d42; }
#music .czm-recent-grid-lbl { font-size:11px; color:#ccc; margin-top:5px; text-align:center; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
#music .czm-recent-grid-item:active img { opacity:0.7; }

/* Artis circle di histori */
#music .czm-q-artist-circle { width:46px; height:46px; border-radius:50%; overflow:hidden; flex-shrink:0; background:#1a2d42; }
#music .czm-q-artist-circle img { width:100%; height:100%; object-fit:cover; }

/* ===== ARTIST CARD — YT Music style ===== */
#music .czm-artist-card {
  background:#161e2e;
  border-radius:12px;
  margin:10px 12px;
  overflow:hidden;
  border:1px solid rgba(255,255,255,0.07);
}
#music .czm-ac-header {
  display:flex; align-items:center; gap:14px;
  padding:14px 14px 10px;
  cursor:pointer; -webkit-tap-highlight-color:transparent;
}
#music .czm-ac-header:active { background:rgba(255,255,255,0.04); }
#music .czm-ac-avatar { width:52px; height:52px; border-radius:50%; overflow:hidden; flex-shrink:0; background:#1a2d42; }
#music .czm-ac-avatar img { width:100%; height:100%; object-fit:cover; }
#music .czm-ac-info { flex:1; min-width:0; }
#music .czm-ac-name { font-size:15px; font-weight:700; color:#fff; }
#music .czm-ac-meta { font-size:12px; color:#aaa; margin-top:2px; }
#music .czm-ac-arrow { color:#666; font-size:13px; flex-shrink:0; }

/* Acak + Radio buttons */
#music .czm-ac-btns { display:flex; gap:10px; padding:4px 14px 12px; }
#music .czm-ac-btn {
  flex:1; display:flex; align-items:center; justify-content:center; gap:8px;
  padding:10px 0; border-radius:99px; font-size:14px; font-weight:700;
  cursor:pointer; border:none; -webkit-tap-highlight-color:transparent; font-family:inherit;
  transition:opacity .15s;
}
#music .czm-ac-btn:active { opacity:0.75; }
#music .czm-ac-btn-acak { background:#fff; color:#000; }
#music .czm-ac-btn-radio { background:transparent; color:#fff; border:1px solid rgba(255,255,255,0.3); }

/* Song rows inside card */
#music .czm-ac-songs { border-top:1px solid rgba(255,255,255,0.07); }
#music .czm-ac-song {
  display:flex; align-items:center; gap:12px;
  padding:9px 14px; cursor:pointer; -webkit-tap-highlight-color:transparent;
  transition:background .13s;
}
#music .czm-ac-song:active { background:rgba(255,255,255,0.05); }
#music .czm-ac-song, #music .czm-ac-header, #music .czm-ac-btn, #music .czm-qitem {
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
#music .czm-ac-song-img { width:46px; height:46px; border-radius:4px; object-fit:cover; flex-shrink:0; background:#1a2d42; }
#music .czm-ac-song-info { flex:1; min-width:0; }
#music .czm-ac-song-title { font-size:14px; font-weight:600; color:#fff; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
#music .czm-ac-song-meta { font-size:12px; color:#888; margin-top:2px; }

/* More btn */
#music .czm-q-more-btn { background:none; border:none; color:#666; font-size:16px; cursor:pointer; padding:6px 10px; flex-shrink:0; -webkit-tap-highlight-color:transparent; }

/* ===== CARD LAGU (YT Music top result style) ===== */
#music .czm-song-card { background:#161e2e; border-radius:12px; margin:10px 12px; overflow:hidden; border:1px solid rgba(255,255,255,0.07); }
#music .czm-sc-row { display:flex; align-items:center; gap:12px; padding:12px 14px 8px; }
#music .czm-sc-img { width:52px; height:52px; border-radius:5px; object-fit:cover; flex-shrink:0; background:#1a2d42; }
#music .czm-sc-info { flex:1; min-width:0; }
#music .czm-sc-title { font-size:15px; font-weight:700; color:#fff; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
#music .czm-sc-sub { font-size:12px; color:#aaa; margin-top:2px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
#music .czm-sc-btns { display:flex; gap:10px; padding:4px 14px 14px; }
#music .czm-sc-btn { flex:1; display:flex; align-items:center; justify-content:center; gap:8px; padding:10px 0; border-radius:99px; font-size:14px; font-weight:700; cursor:pointer; border:none; -webkit-tap-highlight-color:transparent; font-family:inherit; transition:opacity .15s; }
#music .czm-sc-btn:active { opacity:0.75; }
#music .czm-sc-btn-play { background:#fff; color:#000; }
#music .czm-sc-btn-save { background:transparent; color:#fff; border:1px solid rgba(255,255,255,0.3); }

/* ===== BOTTOM SHEET ===== */
#music .czm-bs-ov   { display:none; position:fixed; inset:0; background:rgba(15,32,53,0.5); z-index:10060; }
#music .czm-bs-menu {
  display:none; position:fixed; bottom:0; left:0; right:0; z-index:10061;
  background:#1a2d42; border-radius:16px 16px 0 0; overflow:hidden;
  transform:translateY(100%); transition:transform .28s cubic-bezier(.32,.72,0,1);
}
#music .czm-bs-handle { display:flex; justify-content:center; padding:10px 0 4px; }
#music .czm-bs-handle span { width:36px; height:4px; background:rgba(255,255,255,.18); border-radius:2px; display:block; }
#music .czm-bs-head { display:flex; align-items:center; gap:12px; padding:10px 18px 14px; border-bottom:1px solid rgba(255,255,255,.07); }
#music .czm-bs-actions { display:flex; justify-content:space-around; padding:16px 8px; border-bottom:1px solid rgba(255,255,255,.07); }
#music .czm-bs-act { display:flex; flex-direction:column; align-items:center; gap:8px; cursor:pointer; flex:1; -webkit-tap-highlight-color:transparent; }
#music .czm-bs-act-ico { width:52px; height:52px; background:#1e4a7a; border-radius:10px; display:flex; align-items:center; justify-content:center; font-size:20px; color:#00d9ff; box-shadow:0 0 8px rgba(0,217,255,0.1); }
#music .czm-bs-act-lbl { font-size:11px; color:#aaa; text-align:center; line-height:1.3; }
#music .czm-bs-list { max-height:38vh; overflow-y:auto; }
#music .czm-bsi { display:flex; align-items:center; gap:16px; padding:15px 20px; font-size:14px; color:#fff; cursor:pointer; transition:background .13s; }
#music .czm-bsi:hover { background:rgba(255,255,255,.05); }

/* ===== PLAYLIST MODAL ===== */
#music .czm-plm-detail { display:none; position:fixed; inset:0; z-index:10027; background:#0f2035; flex-direction:column; }

/* more menu player */
#music .czm-more-menu {
  display:none; position:fixed; top:60px; right:16px; z-index:10010;
  background:#0f2035;
  border:1px solid rgba(0,217,255,0.18);
  border-radius:16px; padding:6px 0;
  min-width:200px;
  box-shadow:0 12px 40px rgba(0,0,0,0.55), 0 0 0 1px rgba(0,217,255,0.08);
  backdrop-filter:blur(12px);
}
#music .czm-more-menu.open { display:block; }
#music .czm-mi {
  padding:13px 18px; font-size:14px; cursor:pointer;
  display:flex; align-items:center; gap:14px;
  color:#e0eaf5; transition:background .13s;
  border-bottom:1px solid rgba(255,255,255,.04);
}
#music .czm-mi:last-child { border-bottom:none; }
#music .czm-mi:hover, #music .czm-mi:active { background:rgba(0,217,255,0.08); color:#fff; }
#music .czm-mi i { width:16px; color:#00d9ff; opacity:0.8; }

/* ===== RELATED TAB EXTRAS ===== */
#music .czm-rel-section-title {
  font-size: 18px; font-weight: 700; color: #fff;
  padding: 16px 0 12px;
}
#music .czm-tab-content { padding-bottom: 24px; }

/* ═══════════════════════════════════════════
   Z-TOOLS
═══════════════════════════════════════════ */
@import url('https://fonts.googleapis.com/css2?family=Rajdhani:wght@500;600;700&display=swap');

#ztools { padding: 72px 16px 80px; max-width: 740px; margin: 0 auto; }
.zt-wrap { width: 100%; position: relative; }

/* ─── HEADER ─── */
.zt-header { text-align: center; margin-bottom: 28px; }
.zt-title { font-family:'Rajdhani',sans-serif; font-size:32px; font-weight:700; letter-spacing:3px; background:linear-gradient(135deg,#00d9ff,#a855f7,#00d9ff); background-size:200% auto; -webkit-background-clip:text; -webkit-text-fill-color:transparent; background-clip:text; animation:ztTitleShine 4s linear infinite; margin-bottom:6px; }
@keyframes ztTitleShine { 0%{background-position:0%} 100%{background-position:200%} }
.zt-title i { margin-right:10px; }
.zt-subtitle { color:#888; font-size:12px; letter-spacing:2px; text-transform:uppercase; }

/* ─── TABS ─── */
.zt-tabs { display:flex; gap:0; margin-bottom:24px; background:rgba(255,255,255,0.05); border:1px solid rgba(255,255,255,0.1); border-radius:16px; padding:5px; overflow-x:auto; scrollbar-width:none; flex-wrap:nowrap; backdrop-filter:blur(12px); box-shadow:inset 0 1px 0 rgba(255,255,255,0.07); }
.zt-tabs::-webkit-scrollbar { display:none; }

/* Tab scroll arrows */
.zt-tabs-wrap { position:relative; }

/* Fade gradient kiri & kanan — overlay di atas tab */
.zt-tabs-fade-left,
.zt-tabs-fade-right {
  position:absolute; top:0; bottom:0; width:44px;
  pointer-events:none; z-index:2; transition:opacity .25s;
}
.zt-tabs-fade-left  { left:0;  background:linear-gradient(90deg, rgba(5,10,20,0.85), transparent); border-radius:16px 0 0 16px; opacity:0; }
.zt-tabs-fade-right { right:0; background:linear-gradient(270deg, rgba(5,10,20,0.85), transparent); border-radius:0 16px 16px 0; }
.zt-tabs-fade-left.show  { opacity:1; }
.zt-tabs-fade-right.hide { opacity:0; }

/* Arrow buttons — absolute overlay */
.zt-tab-arr {
  position:absolute; top:50%; transform:translateY(-50%);
  width:auto; height:100%; padding:0 10px;
  border-radius:0; background:none; border:none;
  color:#00d9ff; font-size:14px; font-weight:900; cursor:pointer;
  display:flex; align-items:center; justify-content:center;
  transition:all .2s; z-index:5;
  text-shadow:0 0 8px rgba(0,217,255,0.6);
}
.zt-tab-arr-left  { left:0; background:linear-gradient(90deg, rgba(5,10,20,0.7), transparent); border-radius:16px 0 0 16px; }
.zt-tab-arr-right { right:0; background:linear-gradient(270deg, rgba(5,10,20,0.7), transparent); border-radius:0 16px 16px 0; }
.zt-tab-arr:hover { color:#fff; text-shadow:0 0 14px rgba(0,217,255,1); }
.zt-tab-arr.hidden { opacity:0; pointer-events:none; }
@keyframes ztArrPulse {
  0%,100% { text-shadow:0 0 6px rgba(0,217,255,0.4); }
  50%      { text-shadow:0 0 14px rgba(0,217,255,0.9); }
}
.zt-tab { flex:0 0 auto; padding:10px 16px; border:none; background:transparent; color:#666; border-radius:11px; cursor:pointer; transition:all .25s; display:flex; align-items:center; justify-content:center; gap:7px; white-space:nowrap; font-family:'Rajdhani',sans-serif; font-size:13px; font-weight:600; letter-spacing:0.5px; }
.zt-tab i { font-size:14px; }
.zt-tab.active { background:linear-gradient(135deg,rgba(0,217,255,0.2),rgba(168,85,247,0.14)); color:#00d9ff; box-shadow:0 0 20px rgba(0,217,255,0.15),inset 0 1px 0 rgba(0,217,255,0.2); border:1px solid rgba(0,217,255,0.25); }
.zt-tab.active.zt-tab-ngaji { background:linear-gradient(135deg,rgba(0,217,255,0.2),rgba(14,165,233,0.12)); color:#00d9ff; box-shadow:0 0 20px rgba(0,217,255,0.15),inset 0 1px 0 rgba(0,217,255,0.2); border-color:rgba(0,217,255,0.25); }
.zt-tab:hover:not(.active) { color:#bbb; background:rgba(255,255,255,0.08); }

/* ─── PANELS ─── */
.zt-panel { display:none; }
.zt-panel.active { display:block; animation:ztFadeIn .3s ease; padding-top: 20px; }
.zt-panel-dashboard.active { padding-top: 8px; }
@keyframes ztFadeIn { from{opacity:0;transform:translateY(8px)} to{opacity:1;transform:translateY(0)} }
.zt-result-area { min-height:40px; }

/* ── ZT Menu Panel (slide dari kiri, mirip AI history) ── */
.zt-menu-overlay {
  position: fixed; inset: 0; z-index: 10004;
  background: rgba(0,0,0,0.5);
  display: none;
}
.zt-menu-overlay.open { display: block; }
.zt-menu-panel {
  position: fixed; top: 0; left: 0;
  height: 100%; width: 82%; max-width: 320px;
  z-index: 10005;
  background: #0a1020;
  display: flex; flex-direction: column;
  transform: translateX(-110%);
  transition: transform 0.32s cubic-bezier(.22,1,.36,1);
  box-shadow: 4px 0 40px rgba(0,0,0,0.6);
  border-right: 1px solid rgba(0,217,255,0.1);
  will-change: transform;
  contain: layout style;
}
.zt-menu-panel.open { transform: translateX(0); }

/* Header panel */
.zt-menu-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 16px 14px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  flex-shrink: 0;
}
.zt-menu-header-left { display: flex; align-items: center; gap: 10px; }
.zt-menu-logo {
  width: 34px; height: 34px; border-radius: 10px;
  background: rgba(0,217,255,0.1);
  border: 1.5px solid rgba(0,217,255,0.3);
  display: flex; align-items: center; justify-content: center;
  color: #00d9ff; font-size: 16px;
}
.zt-menu-title { font-size: 17px; font-weight: 700; color: #fff; }
.zt-menu-close {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 50%; width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.6); cursor: pointer;
  font-size: 13px; transition: all 0.2s;
}
.zt-menu-close:hover { background: rgba(255,255,255,0.12); color: #fff; }

/* Scrollable body */
.zt-menu-body { flex: 1; overflow-y: auto; padding: 12px 10px 20px; scrollbar-width: none; -webkit-overflow-scrolling: touch; will-change: scroll-position; }
.zt-menu-body::-webkit-scrollbar { display: none; }

/* Beranda card */
.zt-menu-beranda {
  background: linear-gradient(145deg, rgba(0,217,255,0.07) 0%, rgba(168,85,247,0.05) 100%);
  border: 1px solid rgba(0,217,255,0.18);
  border-radius: 16px; padding: 18px 16px 16px; margin-bottom: 12px;
  position: relative; overflow: hidden;
}
.zt-menu-beranda::before {
  content: '';
  position: absolute; top: -30px; right: -30px;
  width: 100px; height: 100px;
  background: radial-gradient(circle, rgba(0,217,255,0.12), transparent 70%);
  pointer-events: none;
}
.zt-menu-beranda-badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11px; font-weight: 700; letter-spacing: 1px;
  color: #00d9ff; text-transform: uppercase;
  background: rgba(0,217,255,0.1); border: 1px solid rgba(0,217,255,0.2);
  border-radius: 20px; padding: 3px 10px; margin-bottom: 12px;
}
.zt-menu-beranda-tagline {
  font-size: 18px; font-weight: 800; color: #fff;
  line-height: 1.35; margin-bottom: 8px;
  letter-spacing: -0.3px;
}
.zt-menu-beranda-sub {
  font-size: 12px; color: rgba(255,255,255,0.45);
  line-height: 1.6; margin-bottom: 14px;
}
.zt-menu-beranda-divider {
  height: 1px; background: rgba(255,255,255,0.07); margin-bottom: 12px;
}
.zt-menu-beranda-pills { display: flex; gap: 6px; flex-wrap: wrap; }
.zt-menu-pill {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 11px; font-weight: 600; color: rgba(255,255,255,0.6);
  background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1);
  border-radius: 20px; padding: 4px 10px;
}

/* Menu item */
.zt-menu-item {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 12px; border-radius: 12px;
  cursor: pointer; transition: background 0.15s, border-color 0.15s;
  border: 1px solid transparent; margin-bottom: 2px;
  background: transparent;
  width: 100%; text-align: left;
}
.zt-menu-item:hover { background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.08); }
.zt-menu-item.active {
  background: linear-gradient(135deg,rgba(0,217,255,0.15),rgba(168,85,247,0.1));
  border-color: rgba(0,217,255,0.25);
}
.zt-menu-item-icon {
  width: 34px; height: 34px; border-radius: 9px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 15px; background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
}
.zt-menu-item.active .zt-menu-item-icon {
  background: rgba(0,217,255,0.15); border-color: rgba(0,217,255,0.3); color: #00d9ff;
}
.zt-menu-item-text { font-size: 13px; font-weight: 600; color: rgba(255,255,255,0.75); flex: 1; }
.zt-menu-item.active .zt-menu-item-text { color: #fff; }
.zt-menu-item-arr { font-size: 10px; color: rgba(255,255,255,0.2); }
.zt-menu-item.active .zt-menu-item-arr { color: rgba(0,217,255,0.5); }

/* Floating button buka panel */
.zt-menu-fab {
  position: fixed; /* akan diatur JS supaya muncul hanya saat di ztools */
  display: none;
  bottom: 28px; right: 20px;
  width: 46px; height: 46px; border-radius: 14px;
  background: rgba(10, 22, 40, 0.92);
border: 1px solid rgba(0,217,255,0.2);
color: #00d9ff; font-size: 18px; cursor: pointer;
align-items: center; justify-content: center;
box-shadow: 0 4px 12px rgba(0,0,0,0.5);
  z-index: 999; transition: all 0.2s;
}
.zt-menu-fab:hover { transform: scale(1.08); box-shadow: 0 6px 28px rgba(0,217,255,0.35); }

/* ── Z-Tools Dashboard ── */
.zt-dash-wrap { padding: 4px 0 20px; }
.zt-dash-header {
  display: flex; align-items: center; gap: 14px;
  padding: 10px 4px 16px;
}
@keyframes ztDashLogoPulse {
  0%, 100% { box-shadow: 0 0 18px rgba(0,217,255,0.15), 0 0 0 0 rgba(0,217,255,0.4); }
  50% { box-shadow: 0 0 24px rgba(0,217,255,0.3), 0 0 0 8px rgba(0,217,255,0); }
}
.zt-dash-logo {
  width: 48px; height: 48px; border-radius: 14px; flex-shrink: 0;
  background: linear-gradient(135deg, rgba(0,217,255,0.2), rgba(168,85,247,0.15));
  border: 1.5px solid rgba(0,217,255,0.35);
  display: flex; align-items: center; justify-content: center;
  color: #00d9ff; font-size: 22px;
  cursor: pointer; transition: all 0.2s;
  animation: ztDashLogoPulse 2s ease-in-out infinite;
}
.zt-dash-logo:hover {
  background: linear-gradient(135deg, rgba(0,217,255,0.3), rgba(168,85,247,0.22));
  box-shadow: 0 0 24px rgba(0,217,255,0.3);
  transform: scale(1.06);
}
.zt-dash-title { font-size: 22px; font-weight: 800; color: #fff; letter-spacing: -0.3px; }
.zt-dash-sub { font-size: 12px; color: rgba(0,217,255,0.7); font-weight: 500; margin-top: 2px; }
.zt-dash-cards { display: flex; flex-direction: column; gap: 10px; }
.zt-dash-card {
  display: flex; align-items: center; gap: 14px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px; padding: 14px 16px;
  transition: all 0.2s;
}
.zt-dash-card:hover { background: rgba(255,255,255,0.07); border-color: rgba(255,255,255,0.13); }
.zt-dash-card-icon {
  width: 40px; height: 40px; border-radius: 11px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 17px; border: 1px solid transparent;
}
.zt-dash-card-label { font-size: 11px; color: rgba(255,255,255,0.4); font-weight: 500; margin-bottom: 3px; text-transform: uppercase; letter-spacing: 0.5px; }
.zt-dash-card-val { font-size: 15px; color: #fff; font-weight: 700; word-break: break-all; }
.zt-dash-info {
  display: flex; align-items: flex-start; gap: 10px;
  background: rgba(0,217,255,0.05);
  border: 1px solid rgba(0,217,255,0.15);
  border-left: 3px solid rgba(0,217,255,0.6);
  border-radius: 12px; padding: 13px 14px;
  margin-top: 16px;
  font-size: 13px; color: rgba(255,255,255,0.6); line-height: 1.5;
}

/* Sembunyikan tabs lama */
.zt-tabs-wrap { display: none !important; }

/* ─── SEARCH BOX (shared) ─── */
.zt-search-box { display:flex; gap:8px; margin-bottom:14px; }
.zt-search-box input { flex:1; background:rgba(255,255,255,0.08); border:1px solid rgba(255,255,255,0.14); border-radius:12px; padding:13px 18px; color:#fff; font-size:14px; outline:none; transition:all .2s; }
.zt-search-box input:focus { border-color:rgba(0,217,255,0.5); background:rgba(0,217,255,0.06); box-shadow:0 0 0 3px rgba(0,217,255,0.07); }
.zt-search-box button { background:linear-gradient(135deg,rgba(0,217,255,0.22),rgba(168,85,247,0.16)); border:1px solid rgba(0,217,255,0.3); color:#00d9ff; border-radius:12px; padding:13px 20px; cursor:pointer; font-size:16px; transition:all .2s; }
.zt-search-box button:hover { transform:translateY(-1px); box-shadow:0 0 20px rgba(0,217,255,0.25); }

/* ─── LANG TOGGLE ─── */
.zt-lang-toggle { display:flex; gap:16px; margin-bottom:16px; font-size:13px; color:#777; }
.zt-lang-toggle label { cursor:pointer; display:flex; align-items:center; gap:6px; }
.zt-lang-toggle input { accent-color:#00d9ff; }

/* ─── LOADING / EMPTY ─── */
.zt-loading { text-align:center; padding:48px 20px; color:#666; font-size:14px; display:flex; flex-direction:column; align-items:center; gap:12px; }
.zt-loading i { font-size:28px; color:#00d9ff; }
@keyframes ztPulse { 0%,100%{opacity:1;transform:scale(1);} 50%{opacity:0.4;transform:scale(0.85);} }
.zt-pulse-icon { animation:ztPulse 1s ease-in-out infinite; }
@keyframes ztDot1 { 0%,80%,100%{opacity:0} 20%{opacity:1} }
@keyframes ztDot2 { 0%,80%,100%{opacity:0} 40%{opacity:1} }
@keyframes ztDot3 { 0%,80%,100%{opacity:0} 60%{opacity:1} }
.zt-dot { opacity:0; }
.zt-dot1 { animation:ztDot1 1.2s ease-in-out infinite; }
.zt-dot2 { animation:ztDot2 1.2s ease-in-out infinite; }
.zt-dot3 { animation:ztDot3 1.2s ease-in-out infinite; }
.zt-empty { text-align:center; padding:48px 20px; color:#555; display:flex; flex-direction:column; align-items:center; gap:10px; border:1px dashed rgba(255,255,255,0.08); border-radius:16px; background:rgba(255,255,255,0.02); }
.zt-empty i { font-size:32px; color:#444; }

/* ════════════════════════
   WIKIPEDIA
════════════════════════ */
.zt-wiki-card {
  background:linear-gradient(145deg, rgba(255,255,255,0.08), rgba(255,255,255,0.04));
  border:1px solid rgba(255,255,255,0.12); border-radius:18px; overflow:hidden;
  margin-bottom:16px; box-shadow:0 8px 32px rgba(15,32,53,0.5), inset 0 1px 0 rgba(255,255,255,0.07);
}
.zt-wiki-thumb { width:100%; max-height:220px; object-fit:cover; display:block; }
.zt-wiki-body { padding:20px; }
.zt-wiki-title { font-family:'Rajdhani',sans-serif; font-size:22px; font-weight:700; color:#fff; margin-bottom:4px; }
.zt-wiki-desc-label { font-size:11px; color:#00d9ff; margin-bottom:12px; letter-spacing:1.5px; text-transform:uppercase; background:rgba(0,217,255,0.08); display:inline-block; padding:3px 10px; border-radius:20px; border:1px solid rgba(0,217,255,0.2); }
.zt-wiki-extract { font-size:14px; color:#bbb; line-height:1.8; margin-bottom:16px; display:-webkit-box; -webkit-line-clamp:6; -webkit-box-orient:vertical; overflow:hidden; }
.zt-wiki-link { display:inline-flex; align-items:center; gap:8px; padding:9px 20px; background:linear-gradient(135deg,rgba(0,217,255,0.12),rgba(168,85,247,0.08)); border:1px solid rgba(0,217,255,0.25); border-radius:20px; color:#00d9ff; font-size:13px; text-decoration:none; font-weight:600; transition:all .2s; }
.zt-wiki-link:hover { box-shadow:0 0 18px rgba(0,217,255,0.2); transform:translateY(-1px); }
.zt-wiki-others { margin-top:14px; }
.zt-wiki-others p { font-size:11px; color:#555; margin-bottom:8px; text-transform:uppercase; letter-spacing:1px; }
.zt-wiki-other { padding:11px 16px; margin-bottom:6px; font-size:13px; color:#999; cursor:pointer; transition:all .2s; background:rgba(255,255,255,0.04); border:1px solid rgba(255,255,255,0.08); border-radius:10px; display:flex; align-items:center; gap:8px; }
.zt-wiki-other:hover { background:rgba(0,217,255,0.07); color:#fff; border-color:rgba(0,217,255,0.2); }

/* ════════════════════════
   ANIME
════════════════════════ */
.zt-anime-cats { display:flex; flex-wrap:wrap; gap:7px; margin-bottom:18px; }
.zt-cat-btn { padding:7px 15px; border:1px solid rgba(255,255,255,0.1); background:rgba(255,255,255,0.05); color:#666; border-radius:20px; font-size:12px; cursor:pointer; transition:all .2s; font-weight:600; }
.zt-cat-btn.active { border-color:rgba(255,100,200,0.5); background:rgba(255,100,200,0.12); color:#ff64c8; box-shadow:0 0 16px rgba(255,100,200,0.15); }
.zt-cat-btn:hover:not(.active) { color:#ccc; border-color:rgba(255,255,255,0.18); background:rgba(255,255,255,0.07); }
.zt-anime-placeholder { text-align:center; padding:60px 20px; color:#555; border:1px dashed rgba(255,100,200,0.12); border-radius:16px; background:rgba(255,100,200,0.02); }
.zt-anime-placeholder i { font-size:44px; margin-bottom:12px; display:block; color:#444; }
.zt-anime-result { min-height:200px; margin-bottom:16px; border-radius:18px; overflow:hidden; }
.zt-anime-img-wrap { position:relative; border-radius:18px; overflow:hidden; }
.zt-anime-img { width:100%; border-radius:18px; display:block; cursor:pointer; max-height:480px; object-fit:contain; background:#0d0d0d; transition:transform .3s; }
.zt-anime-img:hover { transform:scale(1.01); }
.zt-anime-actions { display:flex; gap:10px; margin-top:12px; }
.zt-anime-actions button,.zt-anime-actions a { flex:1; padding:12px; border-radius:12px; font-size:13px; font-weight:600; cursor:pointer; text-align:center; text-decoration:none; display:flex; align-items:center; justify-content:center; gap:6px; transition:all .2s; }
.zt-anime-actions button { background:rgba(255,100,200,0.1); border:1px solid rgba(255,100,200,0.25); color:#ff64c8; }
.zt-anime-actions button:hover { background:rgba(255,100,200,0.2); box-shadow:0 0 14px rgba(255,100,200,0.2); }
.zt-anime-actions a { background:rgba(0,217,255,0.08); border:1px solid rgba(0,217,255,0.22); color:#00d9ff; }
.zt-anime-actions a:hover { background:rgba(0,217,255,0.15); }
.zt-gen-btn { width:100%; padding:15px; background:linear-gradient(135deg,rgba(255,100,200,0.15),rgba(168,85,247,0.15),rgba(0,217,255,0.1)); border:1px solid rgba(255,100,200,0.25); color:#fff; border-radius:14px; font-size:15px; font-weight:700; cursor:pointer; transition:all .25s; display:flex; align-items:center; justify-content:center; gap:10px; font-family:'Rajdhani',sans-serif; letter-spacing:1px; }
.zt-gen-btn:hover { transform:translateY(-2px); box-shadow:0 8px 30px rgba(255,100,200,0.2); }

/* ════════════════════════
   CEK NOMOR HP
════════════════════════ */
.zt-phone-card {
  background:linear-gradient(145deg,rgba(255,255,255,0.07),rgba(255,255,255,0.03));
  border:1px solid rgba(255,255,255,0.11); border-radius:18px; padding:22px;
  box-shadow:0 8px 32px rgba(15,32,53,0.5), inset 0 1px 0 rgba(255,255,255,0.06);
}
.zt-phone-badge { display:flex; align-items:center; gap:14px; padding:14px 18px; border-radius:14px; border:1px solid; margin-bottom:18px; }
.zt-phone-logo { font-size:32px; }
.zt-phone-opname { font-size:18px; font-weight:700; font-family:'Rajdhani',sans-serif; }
.zt-phone-rows { display:flex; flex-direction:column; gap:8px; margin-bottom:18px; }
.zt-phone-row { display:flex; justify-content:space-between; align-items:center; font-size:13px; padding:11px 15px; background:rgba(255,255,255,0.05); border:1px solid rgba(255,255,255,0.08); border-radius:10px; transition:background .2s; }
.zt-phone-row:hover { background:rgba(255,255,255,0.09); }
.zt-phone-row span { color:#777; }
.zt-phone-row b { color:#e8e8e8; font-family:'Rajdhani',sans-serif; font-size:14px; }
.zt-wa-btn { display:flex; align-items:center; justify-content:center; gap:10px; padding:14px; background:linear-gradient(135deg,rgba(37,211,102,0.12),rgba(37,211,102,0.06)); border:1px solid rgba(37,211,102,0.3); color:#25d366; border-radius:14px; text-decoration:none; font-size:15px; font-weight:700; transition:all .2s; font-family:'Rajdhani',sans-serif; }
.zt-wa-btn:hover { background:rgba(37,211,102,0.2); box-shadow:0 0 20px rgba(37,211,102,0.2); transform:translateY(-1px); }

/* ════════════════════════
   DOWNLOADER (TikTok / IG)
════════════════════════ */
.zt-dl-box { text-align:center; padding:10px 0; }
.zt-dl-icon { width:70px; height:70px; border-radius:20px; background:rgba(255,255,255,0.09); display:flex; align-items:center; justify-content:center; font-size:32px; color:#fff; margin:0 auto 16px; box-shadow:0 8px 24px rgba(15,32,53,0.5),inset 0 1px 0 rgba(255,255,255,0.12); border:1px solid rgba(255,255,255,0.12); }
.zt-dl-title { font-family:'Rajdhani',sans-serif; font-size:22px; font-weight:700; color:#fff; margin-bottom:4px; letter-spacing:1px; }
.zt-dl-desc { font-size:13px; color:#666; margin-bottom:20px; }
.zt-fmt-btns { display:flex; gap:10px; margin-bottom:16px; }
.zt-fmt { flex:1; padding:11px; border-radius:11px; border:1px solid rgba(255,255,255,0.12); background:rgba(255,255,255,0.05); color:#777; font-size:13px; font-weight:600; cursor:pointer; transition:all .2s; }
.zt-fmt.active { border-color:rgba(0,217,255,0.4); background:rgba(0,217,255,0.1); color:#00d9ff; box-shadow:0 0 12px rgba(0,217,255,0.12); }
.zt-fmt:hover:not(.active) { border-color:rgba(255,255,255,0.2); color:#aaa; background:rgba(255,255,255,0.08); }
.zt-dl-result-card { background:rgba(255,255,255,0.06); border:1px solid rgba(255,255,255,0.1); border-radius:14px; padding:18px; margin-top:16px; text-align:left; }
.zt-dl-result-card a { display:flex; align-items:center; justify-content:center; gap:8px; padding:13px; background:linear-gradient(135deg,rgba(0,217,255,0.14),rgba(168,85,247,0.09)); border:1px solid rgba(0,217,255,0.3); border-radius:12px; color:#00d9ff; text-decoration:none; font-size:14px; font-weight:700; margin-top:12px; transition:all .2s; font-family:'Rajdhani',sans-serif; }
.zt-dl-result-card a:hover { box-shadow:0 0 20px rgba(0,217,255,0.2); transform:translateY(-1px); }

/* ─── PROXY BAR ─── */
/* Scrolling ticker */
@keyframes ztTickerScroll { 0%{transform:translateX(100%)} 100%{transform:translateX(-100%)} }

/* ════════════════════════════════════════
   NGAJI — CYAN EDITION (brighter bg)
════════════════════════════════════════ */
:root { --cq:#00d9ff; --cq2:#0ea5e9; --cq-dim:rgba(0,217,255,0.1); --cq-border:rgba(0,217,255,0.18); }

.zt-ngaji-wrap { display:flex; flex-direction:column; gap:0; }

/* Header */
.zt-ngaji-top {
  text-align:center; padding:16px 16px 12px;
  background:transparent;
  border:none; border-radius:0; margin-bottom:0; position:relative; overflow:hidden;
  display:none;
}
.zt-ngaji-top.visible { display:block; animation:ztFadeIn .3s ease; }
.zt-ngaji-top::before { content:''; position:absolute; top:0; left:0; right:0; height:1px; background:linear-gradient(90deg,transparent,rgba(0,217,255,0.6),transparent); }
/* Kalau player tidak ada, tutup border bawah dengan radius penuh */
.zt-ngaji-top.rounded-full { border-radius:0; }
.zt-ngaji-top-arabic { font-size:24px; color:rgba(0,217,255,0.55); letter-spacing:6px; margin-bottom:4px; font-family:serif; }
.zt-ngaji-top-title { font-family:'Rajdhani',sans-serif; font-size:18px; font-weight:700; color:var(--cq); letter-spacing:3px; text-transform:uppercase; text-shadow:0 0 20px rgba(0,217,255,0.3); }
.zt-ngaji-top-sub { font-size:10px; color:rgba(0,217,255,0.45); letter-spacing:1px; margin-top:3px; }

/* Player */
.zt-ngaji-player {
  border:1px solid var(--cq-border); border-radius:18px; margin-bottom:14px;
  background:linear-gradient(180deg, rgba(0,40,60,0.55) 0%, rgba(0,25,40,0.6) 100%);
  backdrop-filter:blur(16px);
  display:none;
}
.zt-ngaji-player.visible { display:block; animation:ztFadeIn .3s ease; }
.zt-ngp-inner { padding:16px 16px 14px; }

/* Now playing row */
.zt-ngp-now { display:flex; align-items:center; gap:12px; margin-bottom:14px; }
.zt-ngp-disc {
  width:48px; height:48px; border-radius:50%; flex-shrink:0;
  background:radial-gradient(circle at 35% 35%, rgba(0,217,255,0.35), rgba(0,100,150,0.25));
  border:2px solid rgba(0,217,255,0.4);
  display:flex; align-items:center; justify-content:center; font-size:18px; color:var(--cq);
  box-shadow:0 0 24px rgba(0,217,255,0.25), inset 0 0 12px rgba(0,217,255,0.08);
}
.zt-ngp-disc.spinning { animation:ztDisc 5s linear infinite; }
@keyframes ztDisc { from{transform:rotate(0deg)} to{transform:rotate(360deg)} }

.zt-ngp-txt { flex:1; min-width:0; }
.zt-ngp-surah-name { font-family:'Rajdhani',sans-serif; font-size:18px; font-weight:700; color:#fff; letter-spacing:0.5px; word-break:break-word; }
.zt-ngp-surah-arab { font-size:15px; color:rgba(0,217,255,0.7); font-family:serif; }
.zt-ngp-meta { font-size:11px; color:rgba(0,217,255,0.4); letter-spacing:0.5px; margin-top:1px; }

/* Equalizer */
.zt-eq { display:flex; align-items:flex-end; gap:2px; height:18px; padding:0 2px; }
.zt-eq-bar { width:3px; background:var(--cq); border-radius:2px; box-shadow:0 0 5px rgba(0,217,255,0.7); animation:ztEq 0.7s ease-in-out infinite alternate; }
.zt-eq-bar:nth-child(1){animation-delay:0s;height:5px}
.zt-eq-bar:nth-child(2){animation-delay:0.12s;height:14px}
.zt-eq-bar:nth-child(3){animation-delay:0.25s;height:8px}
.zt-eq-bar:nth-child(4){animation-delay:0.38s;height:16px}
.zt-eq-bar:nth-child(5){animation-delay:0.5s;height:6px}
@keyframes ztEq { from{transform:scaleY(0.25)} to{transform:scaleY(1)} }
.zt-eq.paused .zt-eq-bar { animation-play-state:paused; opacity:0.35; }

/* Custom progress */
.zt-ngp-progress-wrap { margin-bottom:12px; }
.zt-ngp-time-row { display:flex; justify-content:space-between; align-items:center; margin-bottom:8px; }
.zt-ngp-time-cur { font-family:'Rajdhani',sans-serif; font-size:16px; font-weight:700; color:var(--cq); letter-spacing:1.5px; text-shadow:0 0 10px rgba(0,217,255,0.4); }
.zt-ngp-time-dur { font-family:'Rajdhani',sans-serif; font-size:13px; color:rgba(0,217,255,0.45); letter-spacing:1px; }
.zt-ngp-track { width:100%; height:5px; background:rgba(0,217,255,0.12); border-radius:5px; position:relative; cursor:pointer; transition:height .15s; }
.zt-ngp-track:hover { height:7px; }
.zt-ngp-fill { height:100%; background:linear-gradient(90deg,#0ea5e9,#00d9ff); border-radius:5px; width:0%; transition:width .4s linear; box-shadow:0 0 10px rgba(0,217,255,0.5); position:relative; }
.zt-ngp-fill::after { content:''; position:absolute; right:-6px; top:50%; transform:translateY(-50%); width:12px; height:12px; border-radius:50%; background:var(--cq); box-shadow:0 0 10px rgba(0,217,255,0.9); opacity:0; transition:opacity .2s; }
.zt-ngp-track:hover .zt-ngp-fill::after { opacity:1; }

/* Controls */
.zt-ngp-controls { display:flex; align-items:center; gap:8px; }
.zt-ngp-btn { padding:10px 18px; border-radius:10px; border:1px solid rgba(0,217,255,0.2); background:rgba(0,217,255,0.08); color:rgba(0,217,255,0.8); font-size:12px; font-weight:600; cursor:pointer; transition:all .2s; display:flex; align-items:center; justify-content:center; gap:6px; font-family:'Rajdhani',sans-serif; letter-spacing:0.5px; white-space:nowrap; }
.zt-ngp-btn:hover { background:rgba(0,217,255,0.16); border-color:rgba(0,217,255,0.4); box-shadow:0 0 14px rgba(0,217,255,0.15); }
.zt-ngp-btn:disabled { opacity:0.2; cursor:not-allowed; }
.zt-ngp-playpause { width:44px; height:44px; border-radius:50%; flex-shrink:0; background:linear-gradient(135deg,rgba(0,217,255,0.22),rgba(14,165,233,0.18)); border:1px solid rgba(0,217,255,0.45); color:var(--cq); font-size:16px; cursor:pointer; transition:all .2s; display:flex; align-items:center; justify-content:center; box-shadow:0 0 18px rgba(0,217,255,0.2); }
.zt-ngp-playpause:hover { box-shadow:0 0 28px rgba(0,217,255,0.35); transform:scale(1.05); }
#zt-ngaji-audio { display:none; }

/* Search bar */
.zt-ngaji-search-wrap { background:transparent; padding:14px 0 10px; border:none; }
.zt-ngaji-search { display:flex; gap:8px; }
.zt-ngaji-search input { flex:1; background:rgba(255,255,255,0.07); border:1px solid rgba(0,217,255,0.18); border-radius:12px; padding:11px 16px; color:#ccc; font-size:13px; outline:none; transition:all .2s; }
.zt-ngaji-search input::placeholder { color:rgba(255,255,255,0.2); }
.zt-ngaji-search input:focus { border-color:rgba(0,217,255,0.45); background:rgba(0,217,255,0.07); box-shadow:0 0 0 3px rgba(0,217,255,0.07); }
.zt-ngaji-search-clear { background:rgba(0,217,255,0.08); border:1px solid rgba(0,217,255,0.2); color:rgba(0,217,255,0.7); border-radius:12px; padding:11px 16px; cursor:pointer; font-size:12px; transition:all .2s; white-space:nowrap; font-family:'Rajdhani',sans-serif; font-weight:600; }
.zt-ngaji-search-clear:hover { background:rgba(0,217,255,0.16); color:var(--cq); }

/* Section label */
.zt-surah-section-label {
  font-family:'Rajdhani',sans-serif; font-size:11px; font-weight:700;
  color:rgba(0,217,255,0.4); letter-spacing:2px; text-transform:uppercase;
  margin-bottom:10px; display:flex; align-items:center; gap:10px;
}
.zt-surah-section-label::after { content:''; flex:1; height:1px; background:linear-gradient(90deg,rgba(0,217,255,0.15),transparent); }

/* Surah list — NO outer card box, full width floating rows */
.zt-surah-list-wrap {
  background:transparent;
  max-height:calc(100vh - 280px);
  min-height:200px;
  overflow-y:auto;
  overflow-x:visible;
  display:flex; flex-direction:column; gap:6px;
  padding:0 3px 16px 1px;
  scrollbar-width:thin;
  scrollbar-color:rgba(0,217,255,0.2) transparent;
}
.zt-surah-list-wrap::-webkit-scrollbar { width:3px; }
.zt-surah-list-wrap::-webkit-scrollbar-thumb { background:rgba(0,217,255,0.25); border-radius:4px; }

.zt-surah-item {
  display:flex; align-items:center; gap:14px;
  padding:10px 14px; cursor:pointer; transition:all .2s cubic-bezier(.4,0,.2,1);
  border-radius:14px; position:relative; overflow:hidden;
  background:rgba(255,255,255,0.04);
  border:1px solid rgba(255,255,255,0.07);
  box-shadow: 0 2px 8px rgba(15,32,53,0.5);
  min-height:50px;
}
.zt-surah-item::before {
  content:''; position:absolute; inset:0;
  background:linear-gradient(135deg, rgba(0,217,255,0.08) 0%, transparent 60%);
  opacity:0; transition:opacity .2s;
}
.zt-surah-item:hover { border-color:rgba(0,217,255,0.28); transform:translateY(-1px); box-shadow:0 6px 20px rgba(15,32,53,0.5), 0 0 0 1px rgba(0,217,255,0.12); }
.zt-surah-item:hover::before { opacity:1; }
.zt-surah-item.playing {
  border-color:rgba(0,217,255,0.45);
  background:rgba(0,217,255,0.08);
  box-shadow:0 0 24px rgba(0,217,255,0.12), 0 4px 16px rgba(15,32,53,0.5);
}
.zt-surah-item.playing::before { opacity:1; background:linear-gradient(135deg, rgba(0,217,255,0.12) 0%, transparent 60%); }

/* Left accent line when playing */
.zt-surah-item.playing::after {
  content:''; position:absolute; left:0; top:20%; bottom:20%;
  width:3px; background:linear-gradient(180deg,transparent,var(--cq),transparent);
  border-radius:0 3px 3px 0; box-shadow:0 0 8px var(--cq);
}

.zt-surah-nomor {
  width:32px; height:32px; border-radius:50%; flex-shrink:0;
  background:rgba(0,217,255,0.08); border:1px solid rgba(0,217,255,0.18);
  display:flex; align-items:center; justify-content:center;
  font-family:'Rajdhani',sans-serif; font-size:12px; font-weight:700;
  color:rgba(0,217,255,0.7); transition:all .2s;
}
.zt-surah-item:hover .zt-surah-nomor { background:rgba(0,217,255,0.14); border-color:rgba(0,217,255,0.4); color:var(--cq); }
.zt-surah-item.playing .zt-surah-nomor { background:rgba(0,217,255,0.2); border-color:var(--cq); color:var(--cq); box-shadow:0 0 12px rgba(0,217,255,0.25); }

.zt-surah-info-col { flex:1; min-width:0; }
.zt-surah-nama { font-size:13px; font-weight:600; color:#ccc; transition:color .2s; }
.zt-surah-item:hover .zt-surah-nama { color:#fff; }
.zt-surah-item.playing .zt-surah-nama { color:var(--cq); font-weight:700; }
.zt-surah-keterangan { font-size:11px; color:#555; margin-top:2px; }
.zt-surah-item.playing .zt-surah-keterangan { color:rgba(0,217,255,0.4); }

.zt-surah-arab-col { text-align:right; flex-shrink:0; }
.zt-surah-arab-text { font-size:15px; color:rgba(0,217,255,0.3); font-family:serif; transition:color .2s; }
.zt-surah-item:hover .zt-surah-arab-text { color:rgba(0,217,255,0.55); }
.zt-surah-item.playing .zt-surah-arab-text { color:rgba(0,217,255,0.7); }

.zt-surah-play-icon {
  width:30px; height:30px; border-radius:50%; flex-shrink:0;
  background:rgba(0,217,255,0.1); border:1px solid rgba(0,217,255,0.2);
  display:flex; align-items:center; justify-content:center;
  font-size:10px; color:var(--cq); transition:all .2s;
  opacity:0; transform:scale(0.7);
}
.zt-surah-item:hover .zt-surah-play-icon { opacity:1; transform:scale(1); }
.zt-surah-item.playing .zt-surah-play-icon { opacity:1; transform:scale(1); background:rgba(0,217,255,0.2); box-shadow:0 0 10px rgba(0,217,255,0.3); }

.zt-surah-empty { text-align:center; padding:40px 20px; color:rgba(0,217,255,0.25); font-size:13px; }
.zt-ngaji-bottom-cap { display:none; }

/* ── IP & LOKASI ── */


.zt-ip-section-title { font-size:11px; color:#555; text-transform:uppercase; letter-spacing:0.08em; font-weight:700; padding:14px 0 6px; display:flex; align-items:center; gap:7px; }
.zt-ip-bat-wrap { background:rgba(255,255,255,0.04); border-radius:12px; padding:12px 14px; margin-bottom:14px; }
.zt-ip-bat-header { display:flex; align-items:center; gap:8px; font-size:13px; color:#aaa; margin-bottom:8px; }
.zt-ip-bat-header b { margin-left:auto; font-size:16px; font-weight:800; }
.zt-ip-charging { font-size:11px; color:#f59e0b; background:rgba(245,158,11,0.12); padding:2px 8px; border-radius:50px; font-weight:700; }
.zt-ip-bat-bar { height:8px; background:rgba(255,255,255,0.08); border-radius:50px; overflow:hidden; }
.zt-ip-bat-fill { height:100%; border-radius:50px; transition:width .5s ease; }

.zt-phone-actions { display:flex; gap:8px; margin-top:14px; }
.zt-wa-btn { flex:2; display:flex; align-items:center; justify-content:center; gap:8px; padding:13px; background:rgba(37,211,102,0.12); border:1px solid rgba(37,211,102,0.3); color:#25d366; border-radius:12px; text-decoration:none; font-size:14px; font-weight:700; transition:all .2s; }
.zt-wa-btn:hover { background:rgba(37,211,102,0.22); }
.zt-phone-call-btn { flex:1; display:flex; align-items:center; justify-content:center; gap:6px; padding:13px; background:rgba(34,197,94,0.1); border:1px solid rgba(34,197,94,0.25); color:#22c55e; border-radius:12px; text-decoration:none; font-size:13px; font-weight:700; transition:all .2s; }
.zt-phone-sms-btn { flex:1; display:flex; align-items:center; justify-content:center; gap:6px; padding:13px; background:rgba(59,130,246,0.1); border:1px solid rgba(59,130,246,0.25); color:#3b82f6; border-radius:12px; text-decoration:none; font-size:13px; font-weight:700; transition:all .2s; }

/* WIKI LANGS */
.zt-wiki-langs-wrap { position:relative; margin-bottom:14px; }
.zt-wiki-langs { display:flex; gap:6px; overflow-x:auto; scrollbar-width:none; -webkit-overflow-scrolling:touch; padding-bottom:2px; }
.zt-wiki-langs::-webkit-scrollbar { display:none; }
.zt-wiki-lang-btn { flex:0 0 auto; padding:8px 14px; border:1px solid rgba(255,255,255,0.1); background:rgba(255,255,255,0.04); color:#888; border-radius:10px; font-size:13px; font-weight:700; cursor:pointer; transition:all .2s; display:flex; align-items:center; gap:7px; white-space:nowrap; }
.zt-wiki-lang-btn .zt-flag { font-size:16px; line-height:1; }
.zt-wiki-lang-btn.active { border-color:rgba(0,217,255,0.4); background:rgba(0,217,255,0.12); color:#00d9ff; box-shadow:0 0 12px rgba(0,217,255,0.15); }
/* WIKI READER */
.zt-wiki-reader { position:fixed; inset:0; z-index:9999; background:#0a0f1e; display:flex; flex-direction:column; }
.zt-wiki-reader-header { display:flex; align-items:center; gap:12px; padding:80px 16px 16px; border-bottom:1px solid rgba(255,255,255,0.08); background:#0d1427; flex-shrink:0; position:sticky; top:0; z-index:10; }
.zt-wiki-reader-back { background:rgba(0,217,255,0.15) !important; border:1px solid rgba(0,217,255,0.4) !important; color:#00d9ff !important; width:42px !important; height:42px !important; border-radius:12px !important; font-size:16px !important; display:flex; align-items:center; justify-content:center; }
.zt-wiki-reader-header button { background:rgba(255,255,255,0.07); border:1px solid rgba(255,255,255,0.12); color:#fff; width:36px; height:36px; border-radius:10px; cursor:pointer; font-size:14px; }
.zt-wiki-reader-header span { flex:1; font-size:15px; font-weight:700; color:#fff; }
.zt-wiki-reader-header a { color:#00d9ff; font-size:16px; }
.zt-wiki-reader-body { flex:1; overflow-y:auto; padding:20px 16px 40px; }
.zt-wiki-reader-body h1,.zt-wiki-reader-body h2,.zt-wiki-reader-body h3 { color:#fff; margin:20px 0 10px; font-family:'Rajdhani',sans-serif; }
.zt-wiki-reader-body p { color:#bbb; line-height:1.8; font-size:14px; margin-bottom:14px; }
.zt-wiki-reader-body img { max-width:100%; border-radius:10px; margin:10px 0; }
.zt-wiki-reader-body table { width:100%; font-size:12px; color:#aaa; border-collapse:collapse; margin:12px 0; }
.zt-wiki-reader-body td,.zt-wiki-reader-body th { border:1px solid rgba(255,255,255,0.08); padding:6px 8px; }
.zt-wiki-reader-body a { color:#00d9ff; }
/* WIKI READ MORE btn */
.zt-wiki-read-full { display:flex; align-items:center; gap:8px; padding:10px 18px; background:rgba(168,85,247,0.1); border:1px solid rgba(168,85,247,0.25); border-radius:12px; color:#a855f7; font-size:13px; font-weight:700; cursor:pointer; margin-top:10px; width:100%; justify-content:center; transition:all .2s; }
.zt-wiki-read-full:hover { background:rgba(168,85,247,0.18); }
/* Expand extract */
.zt-wiki-extract { font-size:14px; color:#bbb; line-height:1.8; margin-bottom:12px; }
/* More results */
.zt-wiki-more-btn { width:100%; padding:12px; background:rgba(255,255,255,0.04); border:1px solid rgba(255,255,255,0.08); border-radius:12px; color:#666; font-size:13px; font-weight:700; cursor:pointer; margin-top:10px; transition:all .2s; }
.zt-wiki-more-btn:hover { background:rgba(255,255,255,0.08); color:#fff; }

/* ── SPEED TEST ── */
.zt-speed-wrap { width:100%; padding-bottom:20px; }
.zt-speed-hero { text-align:center; margin-bottom:28px; }
.zt-speed-hero-icon { width:72px; height:72px; border-radius:22px; background:linear-gradient(135deg,rgba(0,217,255,0.2),rgba(0,100,180,0.15)); border:1px solid rgba(0,217,255,0.3); display:flex; align-items:center; justify-content:center; font-size:30px; color:#00d9ff; margin:0 auto 16px; box-shadow:0 0 30px rgba(0,217,255,0.2); }
.zt-speed-hero-title { font-size:22px; font-weight:800; color:#fff; margin-bottom:6px; }
.zt-speed-hero-desc { font-size:13px; color:#555; }
.zt-speed-gauges-wrap { display:flex; align-items:stretch; background:rgba(255,255,255,0.03); border:1px solid rgba(255,255,255,0.07); border-radius:18px; padding:20px 10px; margin-bottom:20px; }
.zt-speed-gauge-box { flex:1; text-align:center; padding:0 8px; }
.zt-speed-gauge-sep { width:1px; background:rgba(255,255,255,0.07); flex-shrink:0; margin:0 4px; }
.zt-speed-gauge-icon { font-size:16px; margin-bottom:8px; }
.zt-speed-gauge-val { font-size:34px; font-weight:800; color:#fff; font-family:'Rajdhani',sans-serif; line-height:1; transition:color .3s; }
.zt-speed-gauge-unit { font-size:11px; color:#555; margin:3px 0 6px; }
.zt-speed-gauge-label { font-size:11px; color:#666; font-weight:700; text-transform:uppercase; letter-spacing:0.05em; }
.zt-speed-bar-outer { margin-bottom:16px; }
.zt-speed-bar-track { height:8px; background:rgba(255,255,255,0.07); border-radius:50px; overflow:hidden; }
.zt-speed-bar-fill { height:100%; width:0%; background:linear-gradient(90deg,#00d9ff,#22c55e); border-radius:50px; transition:width .25s ease; }
.zt-speed-status-text { font-size:13px; color:#888; text-align:center; min-height:20px; margin-bottom:16px; }
.zt-speed-start-btn { width:100%; padding:16px; background:linear-gradient(135deg,rgba(0,217,255,0.18),rgba(0,120,200,0.12)); border:1px solid rgba(0,217,255,0.35); color:#00d9ff; border-radius:16px; font-size:15px; font-weight:800; cursor:pointer; transition:all .25s; display:flex; align-items:center; justify-content:center; gap:12px; letter-spacing:0.5px; box-shadow:0 0 20px rgba(0,217,255,0.1); }
.zt-speed-start-btn:hover { transform:translateY(-2px); box-shadow:0 4px 24px rgba(0,217,255,0.25); }
.zt-speed-start-btn:disabled { opacity:0.5; cursor:not-allowed; transform:none; box-shadow:none; }
.zt-speed-rating { margin-top:16px; padding:16px; border-radius:14px; text-align:center; font-size:14px; font-weight:700; }
.zt-speed-history { margin-top:16px; }
.zt-speed-history-title { font-size:11px; color:#555; text-transform:uppercase; letter-spacing:.08em; font-weight:700; margin-bottom:10px; }
.zt-speed-history-item { display:flex; justify-content:space-between; align-items:center; padding:10px 14px; background:rgba(255,255,255,0.03); border-radius:10px; margin-bottom:6px; font-size:13px; color:#888; }
.zt-speed-history-item b { color:#fff; }

/* ── IMAGE SEARCH ── */
.zt-img-wrap { width:100%; }
.zt-img-placeholder { text-align:center; padding:50px 20px; color:#444; background:rgba(255,255,255,0.02); border-radius:16px; border:1px dashed rgba(255,255,255,0.07); }
.zt-img-placeholder i { font-size:40px; color:#a855f7; opacity:0.4; margin-bottom:14px; display:block; }
.zt-img-result { width:100%; }
.zt-img-grid { columns:2; gap:8px; }
@media(min-width:480px){ .zt-img-grid { columns:3; } }
.zt-img-item { break-inside:avoid; margin-bottom:8px; border-radius:12px; overflow:hidden; position:relative; cursor:pointer; background:rgba(255,255,255,0.04); }
.zt-img-item img { width:100%; display:block; border-radius:12px; transition:transform .3s; }
.zt-img-item:hover img { transform:scale(1.04); }
.zt-img-overlay { position:absolute; inset:0; background:linear-gradient(to top,rgba(0,0,0,0.7),transparent 50%); border-radius:12px; opacity:0; transition:opacity .2s; display:flex; align-items:flex-end; padding:8px; }
.zt-img-item:hover .zt-img-overlay { opacity:1; }
.zt-img-actions { display:flex; gap:6px; width:100%; }
.zt-img-actions a { flex:1; padding:7px; background:rgba(168,85,247,0.8); border-radius:8px; color:#fff; font-size:11px; font-weight:700; text-align:center; text-decoration:none; display:flex; align-items:center; justify-content:center; gap:4px; backdrop-filter:blur(4px); }
.zt-img-actions a.zt-img-open { background:rgba(255,255,255,0.2); }
.zt-img-more-btn { width:100%; padding:13px; background:rgba(168,85,247,0.1); border:1px solid rgba(168,85,247,0.3); color:#a855f7; border-radius:14px; font-size:14px; font-weight:800; cursor:pointer; margin-top:12px; transition:all .2s; display:flex; align-items:center; justify-content:center; gap:8px; }
.zt-img-more-btn:hover { background:rgba(168,85,247,0.18); }
.zt-img-count { font-size:12px; color:#555; margin-bottom:10px; text-align:center; }

/* ── Lightbox ── */
.zt-lightbox { position:fixed; inset:0; z-index:99999; display:none; align-items:center; justify-content:center; flex-direction:column; }
.zt-lightbox.open { display:flex; }
.zt-lightbox-overlay { position:absolute; inset:0; background:rgba(0,0,0,0.92); backdrop-filter:blur(8px); }
.zt-lightbox-inner { position:relative; z-index:1; width:100%; height:100%; display:flex; flex-direction:column; align-items:center; justify-content:center; padding:60px 16px 80px; box-sizing:border-box; }
.zt-lightbox-img { max-width:100%; max-height:100%; object-fit:contain; border-radius:14px; box-shadow:0 8px 40px rgba(0,0,0,0.8); transition:transform .3s; user-select:none; }
.zt-lightbox-img.zoomed { transform:scale(1.8); cursor:zoom-out; }
.zt-lightbox-close { position:fixed; top:16px; right:16px; z-index:2; background:rgba(255,255,255,0.12); border:none; color:#fff; width:40px; height:40px; border-radius:50%; font-size:18px; cursor:pointer; display:flex; align-items:center; justify-content:center; transition:.2s; }
.zt-lightbox-close:hover { background:rgba(255,255,255,0.25); }
.zt-lightbox-nav { position:fixed; top:50%; transform:translateY(-50%); z-index:2; background:rgba(255,255,255,0.1); border:none; color:#fff; width:44px; height:44px; border-radius:50%; font-size:18px; cursor:pointer; display:flex; align-items:center; justify-content:center; transition:.2s; }
.zt-lightbox-nav:hover { background:rgba(255,255,255,0.22); }
.zt-lightbox-prev { left:10px; }
.zt-lightbox-next { right:10px; }
.zt-lightbox-nav.hidden { opacity:0; pointer-events:none; }
.zt-lightbox-bottom { position:fixed; bottom:0; left:0; right:0; z-index:2; display:flex; gap:10px; padding:14px 16px 28px; background:linear-gradient(to top, rgba(0,0,0,0.85), transparent); justify-content:center; }
.zt-lightbox-btn { flex:1; max-width:180px; padding:12px; border-radius:14px; border:none; font-size:14px; font-weight:700; cursor:pointer; display:flex; align-items:center; justify-content:center; gap:8px; transition:.2s; }
.zt-lightbox-btn.save { background:rgba(0,217,255,0.15); border:1px solid rgba(0,217,255,0.4); color:#00d9ff; }
.zt-lightbox-btn.save:hover { background:rgba(0,217,255,0.25); }
.zt-lightbox-btn.open { background:rgba(255,255,255,0.08); border:1px solid rgba(255,255,255,0.2); color:#fff; }
.zt-lightbox-btn.open:hover { background:rgba(255,255,255,0.14); }
.zt-lightbox-counter { position:fixed; top:20px; left:16px; z-index:2; font-size:13px; color:rgba(255,255,255,0.6); font-weight:600; }

/* ── Z-Tools Floating Settings ── */

/* ── API Server Notice Marquee ── */
.api-server-notice {
  width: 100%;
  overflow: hidden;
  background: rgba(0, 217, 255, 0.06);
  border: 1px solid rgba(0, 217, 255, 0.2);
  border-radius: 12px;
  padding: 12px 0;
  margin-bottom: 6px;
}
.api-marquee-wrap {
  overflow: hidden;
  width: 100%;
}
.api-marquee-track {
  display: flex;
  width: max-content;
  will-change: transform;
  animation: apiMarquee 7s linear infinite;
}
.api-marquee-track span {
  font-size: 13px;
  color: #00d9ff;
  font-weight: 600;
  white-space: nowrap;
  padding: 0 16px;
  display: inline-block;
  flex-shrink: 0;
}
@keyframes apiMarquee {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ═══════════════════════════════════════
   TOPIC DROPDOWN IN SETTINGS
═══════════════════════════════════════ */
.topic-dropdown-wrap {
  position: relative;
  width: 100%;
}
.topic-dropdown-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(0,217,255,0.07);
  border: 1px solid rgba(0,217,255,0.25);
  border-radius: 14px;
  padding: 12px 16px;
  color: #00d9ff;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}
.topic-dropdown-btn:hover {
  background: rgba(0,217,255,0.13);
  border-color: rgba(0,217,255,0.5);
}
.topic-chevron {
  transition: transform 0.3s ease;
  font-size: 12px;
  opacity: 0.7;
}
.topic-chevron.open {
  transform: rotate(180deg);
}
.topic-dropdown-menu {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 6px);
  z-index: 999;
  display: flex;
  flex-direction: column;
  background: rgba(5,12,28,0.97);
  border: 1px solid rgba(0,217,255,0.2);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
  max-height: 0;
  opacity: 0;
  pointer-events: none;
  transition: max-height 0.32s cubic-bezier(.22,1,.36,1), opacity 0.22s ease;
}
.topic-dropdown-menu.open {
  max-height: 400px;
  opacity: 1;
  pointer-events: auto;
}
.topic-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 16px;
  color: rgba(255,255,255,0.75);
  font-size: 13.5px;
  cursor: pointer;
  transition: all 0.15s;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.topic-option:last-child { border-bottom: none; }
.topic-option:hover {
  background: rgba(0,217,255,0.09);
  color: #00d9ff;
}
.topic-option.active {
  background: rgba(0,217,255,0.12);
  color: #00d9ff;
  font-weight: 600;
}
.topic-option i {
  width: 18px;
  text-align: center;
  font-size: 13px;
}
#ai.angry-theme .topic-dropdown-btn {
  border-color: rgba(180,30,30,0.25);
  color: #ff6b6b;
  background: rgba(180,30,30,0.07);
}
#ai.angry-theme .topic-option.active {
  background: rgba(180,30,30,0.12);
  color: #ff6b6b;
}
#ai.angry-theme .topic-option:hover {
  background: rgba(180,30,30,0.08);
  color: rgba(255,130,130,0.8);
}

/* ═══════════════════════════════════════
   FLOATING CHAT HISTORY BUTTON & PANEL
═══════════════════════════════════════ */
.ai-float-chat-btn {
  position: fixed;
  top: 92px;
  left: 14px;
  z-index: 10003;
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: 12px;
  background: rgba(0,217,255,0.1);
  border: 1px solid rgba(0,217,255,0.3);
  color: #00d9ff;
  font-size: 15px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(0,0,0,0.5), 0 0 12px rgba(0,217,255,0.15);
  transition: all 0.2s ease;
  display: none;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}
.ai-float-chat-inner { display: none; }
.ai-float-chat-icon { display: none; }
.ai-float-chat-label { display: none; }
.ai-float-chat-btn.visible {
  display: flex;
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
}
.ai-float-chat-btn:hover {
  background: rgba(0,217,255,0.18);
  border-color: rgba(0,217,255,0.5);
  color: #00d9ff;
  box-shadow: 0 4px 20px rgba(0,0,0,0.5), 0 0 20px rgba(0,217,255,0.25);
}
.ai-float-chat-badge {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #00d9ff;
  border: 1.5px solid #080f1c;
}
#ai.angry-theme ~ .ai-float-chat-btn,
#ai.angry-theme .ai-float-chat-btn {
  background: rgba(200,40,40,0.25);
  border-color: rgba(230,60,60,0.5);
  color: #ff8080;
  box-shadow: 0 4px 20px rgba(0,0,0,0.5);
}
/* Panel worm mode - logo robot merah */
.ai-chat-panel.worm-mode .ai-chat-panel-logo {
  color: #ff6b6b;
  border-color: rgba(220,60,60,0.45);
  background: rgba(200,40,40,0.18);
  box-shadow: none;
  animation: none;
}
.ai-chat-panel-overlay {
  position: fixed;
  inset: 0;
  z-index: 10004;
  background: rgba(0,0,0,0.45);
  display: none;
}
.ai-chat-panel-overlay.open { display: block; }
.ai-chat-panel {
  position: fixed;
  top: 0;
  left: 0;
  height: 100%;
  width: 82%;
  max-width: 340px;
  z-index: 10005;
  background: #0d1120;
  display: flex;
  flex-direction: column;
  transform: translateX(-110%);
  transition: transform 0.32s cubic-bezier(.22,1,.36,1);
  box-shadow: 4px 0 32px rgba(0,0,0,0.5);
}
.ai-chat-panel.open {
  transform: translateX(0);
}
.ai-chat-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 16px 14px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.ai-chat-panel-logo {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(0,217,255,0.1);
  border: 1.5px solid rgba(0,217,255,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #00d9ff;
  font-size: 15px;
}
.ai-chat-panel-title {
  font-size: 17px;
  font-weight: 700;
  color: #fff;
}
.ai-chat-panel-close {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.6);
  cursor: pointer;
  font-size: 13px;
  transition: all 0.2s;
}
.ai-chat-panel-close:hover { background: rgba(255,255,255,0.12); color:#fff; }
.ai-chat-new-btn {
  margin: 12px 14px;
  padding: 11px 16px;
  border-radius: 14px;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: all 0.2s;
}
.ai-chat-new-btn:hover { background: rgba(255,255,255,0.13); }
.ai-chat-hist-section {
  padding: 6px 14px 0;
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  min-height: 0;
}
.ai-chat-hist-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: rgba(255,255,255,0.38);
  text-transform: uppercase;
  margin-bottom: 6px;
  margin-top: 10px;
}
.ai-chat-hist-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.ai-chat-hist-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.15s;
  color: rgba(255,255,255,0.8);
  font-size: 13.5px;
  background: transparent;
}
.ai-chat-hist-item:hover {
  background: rgba(255,255,255,0.07);
  color: #fff;
}
.ai-chat-hist-item i {
  color: rgba(255,255,255,0.35);
  font-size: 13px;
  flex-shrink: 0;
}
.ai-chat-hist-item.worm i { color: rgba(255,60,60,0.5); }
.ai-chat-hist-item-text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ai-chat-hist-empty {
  font-size: 12.5px;
  color: rgba(255,255,255,0.25);
  padding: 6px 4px;
  font-style: italic;
}
/* Context menu */
.ai-hist-ctx-menu {
  position: fixed;
  z-index: 99999;
  background: #1a1a2e;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 14px;
  padding: 6px;
  min-width: 170px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.55);
  display: none;
}
.ai-hist-ctx-menu.show { display: block; }
.ai-hist-ctx-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  border-radius: 10px;
  font-size: 14px;
  color: rgba(255,255,255,0.85);
  cursor: pointer;
  transition: background 0.15s;
  border: none;
  background: none;
  width: 100%;
  text-align: left;
}
.ai-hist-ctx-btn:hover { background: rgba(255,255,255,0.08); }
.ai-hist-ctx-btn.danger { color: #ff4d4d; }
.ai-hist-ctx-btn.danger:hover { background: rgba(255,0,0,0.1); }
.ai-hist-ctx-btn.pin { color: #ffc800; }
.ai-hist-ctx-btn.pin:hover { background: rgba(255,200,0,0.1); }
.ai-chat-hist-item { user-select: none; -webkit-user-select: none; }
.ai-chat-hist-item.pinned { border-left: 2px solid #ffc800; padding-left: 10px; }
.ai-chat-hist-item.active-session { background: rgba(255,255,255,0.1); color: #fff; }
.ai-chat-hist-item.active-session i { color: rgba(0,217,255,0.9); }
/* Attach Image Bottom Sheet */
.ai-attach-overlay {
  position: fixed; inset: 0; background: transparent;
  z-index: 99998; opacity: 0; pointer-events: none;
  transition: opacity 0.15s;
}
.ai-attach-overlay.show { opacity: 1; pointer-events: all; }
.ai-attach-sheet {
  position: fixed;
  z-index: 99999;
  background: #1a2235;
  border: 1px solid rgba(0,217,255,0.18);
  border-radius: 18px;
  padding: 10px 8px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.55), 0 0 0 1px rgba(0,217,255,0.08);
  display: flex; flex-direction: column; gap: 4px;
  opacity: 0; pointer-events: none;
  transform: scale(0.85) translateY(8px);
  transform-origin: bottom left;
  transition: opacity 0.18s cubic-bezier(.32,1.25,.52,1), transform 0.18s cubic-bezier(.32,1.25,.52,1);
  min-width: 160px;
}
.ai-attach-sheet.show {
  opacity: 1; pointer-events: all;
  transform: scale(1) translateY(0);
}
.ai-attach-handle { display: none; }
.ai-attach-title { display: none; }
.ai-attach-options {
  display: flex; flex-direction: column; gap: 2px;
}
.ai-attach-opt {
  display: flex; flex-direction: row; align-items: center; gap: 12px;
  background: none; border: none; color: rgba(255,255,255,0.9); cursor: pointer;
  font-size: 14px; font-weight: 500; padding: 10px 14px;
  border-radius: 12px; width: 100%; text-align: left;
  transition: background 0.12s;
}
.ai-attach-opt:hover, .ai-attach-opt:active { background: rgba(0,217,255,0.09); }
.ai-attach-opt-icon {
  width: 32px; height: 32px; border-radius: 10px;
  background: rgba(0,217,255,0.1);
  display: flex; align-items: center; justify-content: center;
  font-size: 15px; color: #00d9ff; flex-shrink: 0;
}
/* Preview gambar di dalam input container */
.ai-img-preview-bar {
  display: flex; align-items: flex-start;
  padding: 8px 12px 4px 14px;
}
.ai-img-preview-wrap {
  position: relative; display: inline-block; flex-shrink: 0;
}
.ai-img-preview-thumb {
  width: 56px; height: 56px; object-fit: cover;
  border-radius: 10px; border: 1px solid rgba(255,255,255,0.15);
  display: block;
}
.ai-img-preview-remove {
  position: absolute; top: -5px; right: -5px;
  width: 17px; height: 17px; border-radius: 50%;
  background: #2a2a3a; border: 1px solid rgba(255,255,255,0.25);
  color: #fff; font-size: 9px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  padding: 0; line-height: 1;
}
.ai-img-preview-name { display: none; }
/* Wrapper biar preview + input jadi satu blok seamless */
#ai .input-container.has-preview {
  border-radius: 20px;
  height: auto;
  min-height: 46px;
  padding: 0 6px 6px 0;
  align-items: flex-end;
  flex-direction: column;
}
#ai .input-container.has-preview .ai-img-preview-bar {
  width: 100%;
  box-sizing: border-box;
}
#ai .input-container.has-preview .attach-btn,
#ai .input-container.has-preview .input-wrapper,
#ai .input-container.has-preview #sendBtn {
  /* row bawah tetap flex normal */
}
.ai-chat-panel-footer {
  margin-top: auto;
  padding: 14px 16px;
  border-top: 1px solid rgba(255,255,255,0.07);
}
.ai-chat-user-row {
  display: flex;
  align-items: center;
  gap: 10px;
}
.ai-chat-user-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(0,217,255,0.15);
  border: 1.5px solid rgba(0,217,255,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #00d9ff;
  font-size: 13px;
  font-weight: 700;
}
.ai-chat-user-email {
  font-size: 12.5px;
  color: rgba(255,255,255,0.5);
}
.ai-chat-user-name {
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
/* Footer sign in buttons */
.ai-signin-footer-box {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.ai-signin-footer-btn {
  width: 100%;
  padding: 11px;
  border-radius: 50px;
  background: #fff;
  color: #111;
  font-size: 14px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: background 0.18s;
}
.ai-signin-footer-btn:hover { background: #e8e8e8; }
.ai-create-acc-btn {
  width: 100%;
  padding: 10px;
  border-radius: 50px;
  background: transparent;
  color: rgba(255,255,255,0.45);
  font-size: 13px;
  font-weight: 500;
  border: none;
  cursor: pointer;
  transition: color 0.18s;
}
.ai-create-acc-btn:hover { color: rgba(255,255,255,0.8); }
.ai-signout-btn {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.5);
  cursor: pointer;
  font-size: 13px;
  flex-shrink: 0;
  transition: all 0.2s;
}
.ai-signout-btn:hover { color: #ff5555; background: rgba(255,80,80,0.1); }
/* Auth Modal */
.ai-auth-overlay {
  position: fixed;
  inset: 0;
  z-index: 10010;
  background: rgba(0,0,0,0.6);
  display: none;
  align-items: flex-end;
  justify-content: center;
  backdrop-filter: blur(4px);
}
.ai-auth-overlay.open {
  display: flex;
}
.ai-auth-modal {
  background: #0d1b2a;
  border-radius: 20px 20px 0 0;
  padding: 28px 22px 36px;
  width: 100%;
  max-width: 480px;
  position: relative;
  animation: authSlideUp 0.3s cubic-bezier(.22,1,.36,1);
  border-top: 1px solid rgba(0,217,255,0.12);
}
@keyframes authSlideUp {
  from { transform: translateY(60px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.ai-auth-close {
  position: absolute;
  top: 14px;
  right: 16px;
  background: rgba(255,255,255,0.1);
  border: none;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  color: rgba(255,255,255,0.7);
  font-size: 13px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}
.ai-auth-close:hover { background: rgba(255,255,255,0.18); }
.ai-auth-header-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}
.ai-auth-robot-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(0,217,255,0.1);
  border: 1.5px solid rgba(0,217,255,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: #00d9ff;
  flex-shrink: 0;
}
.ai-auth-header-row .ai-auth-title { margin: 0 0 2px; font-size: 20px; }
.ai-auth-header-row .ai-auth-sub { margin: 0; }
.ai-auth-logo {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}
.ai-auth-logo span {
  font-size: 22px;
  font-weight: 900;
  color: #111;
  font-family: monospace;
}
.ai-auth-title {
  font-size: 22px;
  font-weight: 800;
  color: #fff;
  margin: 0 0 4px;
}
.ai-auth-sub {
  font-size: 13px;
  color: rgba(255,255,255,0.45);
  margin: 0 0 20px;
}
.ai-auth-field {
  margin-bottom: 14px;
}
.ai-auth-field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 6px;
}
.ai-auth-field input {
  width: 100%;
  box-sizing: border-box;
  padding: 13px 16px;
  border-radius: 12px;
  background: #0a1628;
  border: 1px solid rgba(0,217,255,0.15);
  color: #fff;
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s;
}
.ai-auth-field input:focus { border-color: rgba(0,217,255,0.4); }
.ai-auth-pw-wrap {
  position: relative;
}
.ai-auth-pw-wrap input { padding-right: 44px; }
.ai-auth-eye {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: rgba(255,255,255,0.4);
  cursor: pointer;
  font-size: 15px;
  padding: 4px;
}
.ai-auth-submit {
  width: 100%;
  padding: 14px;
  border-radius: 50px;
  background: #fff;
  color: #111;
  font-size: 15px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  margin-top: 6px;
  margin-bottom: 14px;
  transition: background 0.18s;
}
.ai-auth-submit:hover { background: #e8e8e8; }
.ai-auth-switch {
  text-align: center;
  font-size: 13px;
  color: rgba(255,255,255,0.4);
  margin: 0;
}
.ai-auth-switch span {
  color: #fff;
  font-weight: 700;
  cursor: pointer;
  text-decoration: underline;
}

/* ═══════════════════════════════════════
   APK DOWNLOAD PAGE — Full Redesign
═══════════════════════════════════════ */
.apk-page {
  padding: 0 0 60px !important;
  max-width: 100% !important;
  margin: 0 !important;
  background: transparent;
}

/* Header */
.apk-header {
  position: relative;
  padding: 110px 20px 32px;
  text-align: center;
  overflow: hidden;
  margin-bottom: 8px;
}
.apk-header-glow {
  position: absolute;
  top: -60px; left: 50%;
  transform: translateX(-50%);
  width: 300px; height: 200px;
  background: radial-gradient(ellipse, rgba(0,217,255,0.18) 0%, transparent 70%);
  pointer-events: none;
}
.apk-header-content { position: relative; z-index: 1; }
.apk-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(0,217,255,0.1);
  border: 1px solid rgba(0,217,255,0.35);
  color: #00d9ff; font-size: 11px; font-weight: 700;
  letter-spacing: 2px; text-transform: uppercase;
  padding: 5px 14px; border-radius: 20px; margin-bottom: 14px;
  animation: apkBadgePulse 2s ease-in-out infinite;
}
@keyframes apkBadgePulse {
  0%,100% { box-shadow: 0 0 0 rgba(0,217,255,0); }
  50% { box-shadow: 0 0 12px rgba(0,217,255,0.3); }
}
.apk-title {
  font-size: clamp(28px, 7vw, 44px);
  font-weight: 900; color: #fff; margin: 0 0 10px;
  letter-spacing: -0.5px; line-height: 1.1;
}
.apk-title-accent {
  background: linear-gradient(90deg, #00d9ff, #00ffcc);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.apk-subtitle {
  font-size: 13px; color: rgba(255,255,255,0.5);
  margin: 0 auto 20px; max-width: 280px; line-height: 1.6;
}
.apk-stats {
  display: inline-flex; align-items: center; gap: 16px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px; padding: 12px 20px;
}
.apk-stat { text-align: center; }
.apk-stat span {
  display: block; font-size: 18px; font-weight: 800;
  color: #00d9ff; line-height: 1;
}
.apk-stat small {
  font-size: 10px; color: rgba(255,255,255,0.4);
  text-transform: uppercase; letter-spacing: 1px;
}
.apk-stat-div {
  width: 1px; height: 30px;
  background: rgba(255,255,255,0.1);
}

/* Search */
.apk-search-wrap {
  position: relative; margin: 0 16px 20px;
}
.apk-search-icon {
  position: absolute; left: 16px; top: 50%;
  transform: translateY(-50%);
  color: #00d9ff; font-size: 14px; pointer-events: none;
}
.apk-search-input {
  width: 100%; box-sizing: border-box;
  background: rgba(0,217,255,0.05);
  border: 1px solid rgba(0,217,255,0.2);
  border-radius: 14px; padding: 14px 16px 14px 44px;
  color: #fff; font-size: 14px; outline: none;
  transition: all 0.3s;
}
.apk-search-input::placeholder { color: rgba(255,255,255,0.3); }
.apk-search-input:focus {
  border-color: rgba(0,217,255,0.6);
  background: rgba(0,217,255,0.08);
  box-shadow: 0 0 20px rgba(0,217,255,0.15);
}

/* Filter Tabs */
.apk-filter-tabs {
  display: flex; gap: 8px; padding: 0 16px 20px;
  overflow-x: auto; scrollbar-width: none;
}
.apk-filter-tabs::-webkit-scrollbar { display: none; }
.apk-filter-btn {
  flex-shrink: 0; display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 16px; border-radius: 20px; font-size: 12px; font-weight: 700;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.04); color: rgba(255,255,255,0.5);
  cursor: pointer; transition: all 0.2s; white-space: nowrap;
}
.apk-filter-btn.active, .apk-filter-btn:hover {
  background: rgba(0,217,255,0.12);
  border-color: rgba(0,217,255,0.4);
  color: #00d9ff;
}

/* Grid */
.apk-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px; padding: 0 16px;
}
@media(min-width: 480px) {
  .apk-grid { grid-template-columns: repeat(3, 1fr); }
}
@media(min-width: 700px) {
  .apk-grid { grid-template-columns: repeat(4, 1fr); }
}

/* APK Card */
.apk-card {
  position: relative; border-radius: 18px; overflow: hidden;
  background: rgba(10,22,40,0.8);
  border: 1px solid rgba(255,255,255,0.07);
  cursor: pointer; transition: all 0.3s;
  display: flex; flex-direction: column;
  animation: apkCardIn 0.4s ease backwards;
}
@keyframes apkCardIn {
  from { opacity:0; transform: translateY(16px) scale(0.96); }
  to   { opacity:1; transform: translateY(0) scale(1); }
}
.apk-card:hover {
  border-color: rgba(0,217,255,0.35);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,217,255,0.15);
}
.apk-card-img-wrap {
  position: relative; aspect-ratio: 1;
  background: rgba(0,0,0,0.3); overflow: hidden;
}
.apk-card-img-wrap img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.4s;
}
.apk-card:hover .apk-card-img-wrap img { transform: scale(1.08); }
.apk-card-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 50%);
}
.apk-card-tag {
  position: absolute; top: 8px; right: 8px;
  background: rgba(0,217,255,0.2); border: 1px solid rgba(0,217,255,0.4);
  color: #00d9ff; font-size: 9px; font-weight: 800;
  padding: 3px 8px; border-radius: 20px; text-transform: uppercase;
  letter-spacing: 1px; backdrop-filter: blur(4px);
}
.apk-card-body { padding: 12px; flex: 1; display: flex; flex-direction: column; gap: 8px; }
.apk-card-name {
  font-size: 13px; font-weight: 700; color: #fff;
  line-height: 1.3;
  display: -webkit-box; -webkit-line-clamp: 2;
  -webkit-box-orient: vertical; overflow: hidden;
}
.apk-card-meta {
  display: flex; align-items: center; justify-content: space-between;
}
.apk-card-ver {
  font-size: 10px; color: rgba(255,255,255,0.4);
}
.apk-card-size {
  font-size: 10px; background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.5); padding: 2px 7px; border-radius: 20px;
}
.apk-card-btn {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  padding: 9px; border-radius: 10px; margin-top: auto;
  background: linear-gradient(135deg, rgba(0,217,255,0.15), rgba(0,180,210,0.1));
  border: 1px solid rgba(0,217,255,0.3);
  color: #00d9ff; font-size: 12px; font-weight: 800;
  transition: all 0.2s; text-transform: uppercase; letter-spacing: 0.5px;
}
.apk-card-btn:hover {
  background: rgba(0,217,255,0.25);
  box-shadow: 0 4px 16px rgba(0,217,255,0.3);
}

/* Empty state */
.apk-empty {
  text-align: center; padding: 60px 20px;
  color: rgba(255,255,255,0.3);
}
.apk-empty i { font-size: 40px; margin-bottom: 12px; display: block; }
.apk-empty p { font-size: 14px; }

/* Modal */
.apk-modal-overlay {
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(0,0,0,0.88); backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
}
.apk-modal-box {
  position: relative; background: linear-gradient(135deg, #0a1628, #050d1a);
  border: 1px solid rgba(0,217,255,0.25); border-radius: 20px;
  padding: 28px 24px; max-width: 420px; width: 100%;
  box-shadow: 0 0 40px rgba(0,217,255,0.15);
}
.apk-modal-close {
  position: absolute; top: 16px; right: 16px;
  background: rgba(255,255,255,0.08); border: none;
  color: #aaa; width: 32px; height: 32px; border-radius: 8px;
  cursor: pointer; font-size: 14px; display: flex;
  align-items: center; justify-content: center; transition: 0.2s;
}
.apk-modal-close:hover { background: rgba(255,255,255,0.15); color: #fff; }
.apk-modal-title { color: #00d9ff; font-size: 18px; font-weight: 800; margin: 0 0 12px; }
.apk-modal-desc { color: rgba(255,255,255,0.8); font-size: 14px; line-height: 1.7; margin: 0 0 20px; white-space: pre-line; }
.apk-modal-btn {
  width: 100%; padding: 13px; background: rgba(0,217,255,0.12);
  border: 1px solid rgba(0,217,255,0.3); color: #00d9ff;
  border-radius: 12px; font-size: 14px; font-weight: 700; cursor: pointer;
  transition: 0.2s;
}
.apk-modal-btn:hover { background: rgba(0,217,255,0.22); }

/* Fix search icon */
.apk-search-wrap { position: relative; margin: 0 16px 20px; display: flex; align-items: center; }
.apk-search-icon { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: #00d9ff; font-size: 14px; pointer-events: none; z-index: 1; line-height: 1; }
.apk-search-input { padding-left: 44px !important; }

/* Card zoom icon */
.apk-card-zoom {
  position: absolute; bottom: 8px; right: 8px;
  width: 28px; height: 28px; border-radius: 8px;
  background: rgba(0,0,0,0.5); backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.7); font-size: 11px;
  opacity: 0; transition: opacity 0.2s;
}
.apk-card:hover .apk-card-zoom { opacity: 1; }
.apk-card-img-wrap { cursor: pointer; }

/* Pagination */
.apk-pagination {
  display: flex; align-items: center; justify-content: center;
  gap: 6px; padding: 20px 16px 8px; flex-wrap: wrap;
}
.apk-pg-btn {
  min-width: 36px; height: 36px; border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.05); color: rgba(255,255,255,0.7);
  font-size: 13px; font-weight: 700; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.2s; padding: 0 10px;
}
.apk-pg-btn:hover:not(.disabled):not(.active) {
  background: rgba(0,217,255,0.12);
  border-color: rgba(0,217,255,0.35);
  color: #00d9ff;
}
.apk-pg-btn.active {
  background: rgba(0,217,255,0.2);
  border-color: rgba(0,217,255,0.5);
  color: #00d9ff;
  box-shadow: 0 0 12px rgba(0,217,255,0.2);
}
.apk-pg-btn.disabled { opacity: 0.3; cursor: not-allowed; }
.apk-pg-dots {
  color: rgba(255,255,255,0.4); font-size: 13px;
  display: flex; align-items: center; padding: 0 4px;
}

/* Lightbox */
.apk-img-lightbox {
  position: fixed; inset: 0; z-index: 99999;
  display: none; align-items: center; justify-content: center;
}
.apk-img-lightbox.open { display: flex; }
.apk-lb-overlay {
  position: absolute; inset: 0;
  background: rgba(0,0,0,0.92); backdrop-filter: blur(10px);
}
.apk-lb-content {
  position: relative; z-index: 1;
  display: flex; flex-direction: column; align-items: center;
  gap: 14px; padding: 60px 20px 40px; max-width: 90vw;
}
.apk-lb-close {
  position: fixed; top: 16px; right: 16px;
  background: rgba(255,255,255,0.1); border: none;
  color: #fff; width: 40px; height: 40px; border-radius: 50%;
  font-size: 16px; cursor: pointer; display: flex;
  align-items: center; justify-content: center;
  transition: 0.2s; z-index: 2;
}
.apk-lb-close:hover { background: rgba(255,255,255,0.2); }
.apk-lb-img {
  max-width: 85vw; max-height: 70vh;
  border-radius: 18px; object-fit: contain;
  box-shadow: 0 0 40px rgba(0,217,255,0.25);
  animation: apkLbIn 0.3s cubic-bezier(0.34,1.56,0.64,1);
}
@keyframes apkLbIn {
  from { opacity:0; transform: scale(0.85); }
  to   { opacity:1; transform: scale(1); }
}
.apk-lb-nama {
  color: #fff; font-size: 16px; font-weight: 700;
  text-align: center; text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}
.apk-lb-hint {
  color: rgba(255,255,255,0.35); font-size: 12px; margin: 0;
}

/* Stop button mode - default cyan */
#sendBtn.stop-mode {
    background: rgba(0, 217, 255, 0.15) !important;
    border-color: rgba(0, 217, 255, 0.5) !important;
    color: #00d9ff !important;
    animation: stopPulseCyan 1.2s ease-in-out infinite;
}
#sendBtn.stop-mode:hover {
    background: rgba(0, 217, 255, 0.28) !important;
}
@keyframes stopPulseCyan {
    0%, 100% { box-shadow: 0 0 0 rgba(0,217,255,0); }
    50% { box-shadow: 0 0 12px rgba(0,217,255,0.4); }
}
/* Stop button mode - worm AI merah */
#ai.angry-theme #sendBtn.stop-mode {
    background: rgba(239, 68, 68, 0.15) !important;
    border-color: rgba(239, 68, 68, 0.5) !important;
    color: #ef4444 !important;
    animation: stopPulseRed 1.2s ease-in-out infinite;
}
#ai.angry-theme #sendBtn.stop-mode:hover {
    background: rgba(239, 68, 68, 0.28) !important;
}
/* Attach/foto button merah di worm mode */
#ai.angry-theme .attach-btn {
    color: #ef4444;
}
#ai.angry-theme .attach-btn:hover {
    color: #ff6666;
    background: rgba(239, 68, 68, 0.1);
}
#ai.angry-theme .ai-attach-opt-icon {
    background: rgba(239, 68, 68, 0.12);
    color: #ef4444;
}
/* Attach sheet worm mode (di luar #ai) */
.ai-attach-sheet.worm-mode {
    border: 1px solid rgba(239, 68, 68, 0.35) !important;
    box-shadow: 0 8px 32px rgba(0,0,0,0.55), 0 0 0 1px rgba(239, 68, 68, 0.12) !important;
}
.ai-attach-sheet.worm-mode .ai-attach-opt-icon {
    background: rgba(239, 68, 68, 0.18) !important;
    color: #ef4444 !important;
}
.ai-attach-sheet.worm-mode .ai-attach-opt:hover .ai-attach-opt-icon {
    background: rgba(239, 68, 68, 0.3) !important;
}
@keyframes stopPulseRed {
    0%, 100% { box-shadow: 0 0 0 rgba(239,68,68,0); }
    50% { box-shadow: 0 0 12px rgba(239,68,68,0.4); }
}

/* ═══════════════════════════════════
   CPANEL SECTION
═══════════════════════════════════ */
.cpanel-page {
  padding: 0 0 80px !important;
  max-width: 100% !important;
  margin: 0 !important;
}
.cpanel-header {
  position: relative;
  text-align: center;
  padding: 110px 20px 28px;
  overflow: hidden;
}
.cpanel-header-glow {
  position: absolute;
  top: -40px; left: 50%;
  transform: translateX(-50%);
  width: 280px; height: 180px;
  background: radial-gradient(ellipse, rgba(0,217,255,0.15) 0%, transparent 70%);
  pointer-events: none;
}
.cpanel-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(0,217,255,0.1);
  border: 1px solid rgba(0,217,255,0.3);
  color: #00d9ff; font-size: 11px; font-weight: 700;
  letter-spacing: 2px; text-transform: uppercase;
  padding: 5px 14px; border-radius: 20px; margin-bottom: 14px;
}
.cpanel-title {
  font-size: clamp(28px,7vw,42px); font-weight: 900;
  color: #fff; margin: 0 0 8px; line-height: 1.1;
}
.cpanel-accent {
  background: linear-gradient(90deg,#00d9ff,#00ffcc);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.cpanel-subtitle {
  font-size: 13px; color: rgba(255,255,255,0.45);
  margin: 0; line-height: 1.6;
}

/* Form Box */
.cpanel-form-box {
  margin: 0 16px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 18px; padding: 20px;
  box-sizing: border-box;
  overflow: hidden;
}
.cpanel-form-box input[type="text"] {
  width: 100%;
  box-sizing: border-box;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(0,217,255,0.2);
  border-radius: 10px; padding: 11px 14px;
  color: #fff; font-size: 13px; outline: none;
  transition: border-color 0.2s;
}
.cpanel-form-box input[type="text"]:focus {
  border-color: rgba(0,217,255,0.5);
}

/* Plans */
.cpanel-username-label {
  font-size: 12px; color: rgba(255,255,255,0.5);
  font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.5px; margin-bottom: 8px;
  display: flex; align-items: center; gap: 6px;
}
.cpanel-plan-label {
  font-size: 12px; color: rgba(255,255,255,0.5);
  font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.5px; margin-bottom: 12px;
  display: flex; align-items: center; gap: 6px;
}

/* ── Vertical Plan Layout ── */
.cpanel-plans-v {
  display: flex; flex-direction: column;
  gap: 8px; margin-bottom: 16px;
}
.cpanel-plan-v {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px; padding: 14px 16px;
  display: flex; align-items: center; gap: 12px;
  cursor: pointer; transition: all 0.2s;
}
.cpanel-plan-v:hover {
  border-color: rgba(0,217,255,0.3);
  background: rgba(0,217,255,0.06);
}
.cpanel-plan-v.selected {
  background: rgba(0,217,255,0.12);
  border-color: rgba(0,217,255,0.5);
  box-shadow: 0 0 14px rgba(0,217,255,0.2);
}
.cpanel-plan-v.selected .cpv-name { color: #00d9ff; }
.cpanel-plan-v-unli {
  background: rgba(255,170,0,0.06) !important;
  border-color: rgba(255,170,0,0.2) !important;
}
.cpanel-plan-v-unli:hover, .cpanel-plan-v-unli.selected {
  background: rgba(255,170,0,0.14) !important;
  border-color: rgba(255,170,0,0.5) !important;
  box-shadow: 0 0 14px rgba(255,170,0,0.2) !important;
}
.cpanel-plan-v-unli.selected .cpv-name { color: #ffaa00 !important; }
.cpv-left { flex: 1; }
.cpv-name { font-size: 15px; font-weight: 800; color: #fff; margin-bottom: 2px; }
.cpv-specs { font-size: 11px; color: rgba(255,255,255,0.4); }
.cpv-check { font-size: 14px; color: rgba(0,217,255,0.0); transition: color 0.2s; }
.cpanel-plan-v.selected .cpv-check { color: #00d9ff; }
.cpanel-plan-v-unli.selected .cpv-check { color: #ffaa00 !important; }

/* Premium button card */
.cpanel-plan-prem-btn {
  background: rgba(255,170,0,0.06);
  border: 1px solid rgba(255,170,0,0.25);
  border-radius: 14px; padding: 14px 16px;
  display: flex; align-items: center; gap: 12px;
  cursor: pointer; transition: all 0.2s;
}
.cpanel-plan-prem-btn:hover {
  background: rgba(255,170,0,0.12);
  border-color: rgba(255,170,0,0.5);
  box-shadow: 0 0 14px rgba(255,170,0,0.18);
}
.cpanel-plan-prem-btn.unlocked {
  background: rgba(34,197,94,0.08) !important;
  border-color: rgba(34,197,94,0.4) !important;
}
.cpanel-plan-prem-btn.unlocked .cpanel-arrow-icon { color: #22c55e !important; }

/* ── Floating Token Modal ── */
.cpanel-token-modal {
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(0,0,0,0.65);
  backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center;
  animation: fadeIn 0.2s ease;
}
.cpanel-token-float {
  background: #0d1e2e;
  border: 1px solid rgba(255,170,0,0.25);
  border-radius: 20px;
  padding: 24px 20px 32px;
  width: 90%; max-width: 480px;
  animation: slideUp 0.3s ease;
}
@keyframes slideUp { from { transform: translateY(60px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.cpanel-token-float-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 10px;
}

/* Legacy (keep for compat) */
.cp-plan-name { font-size: 15px; font-weight: 800; color: #fff; margin-bottom: 3px; }
.cp-plan-specs { font-size: 10px; color: rgba(255,255,255,0.4); }

/* Create Button */
.cpanel-create-btn {
  width: 100%; padding: 15px;
  background: linear-gradient(135deg,rgba(0,217,255,0.15),rgba(0,180,210,0.1));
  border: 1px solid rgba(0,217,255,0.35);
  color: #00d9ff; border-radius: 14px;
  font-size: 15px; font-weight: 800;
  cursor: pointer; display: flex;
  align-items: center; justify-content: center; gap: 10px;
  transition: all 0.2s; margin-bottom: 16px;
}
.cpanel-create-btn:hover {
  background: rgba(0,217,255,0.22);
  box-shadow: 0 4px 20px rgba(0,217,255,0.25);
}
.cpanel-create-btn:disabled {
  opacity: 0.5; cursor: not-allowed;
}

/* Result */
.cpanel-result {
  background: rgba(0,0,0,0.3);
  border: 1px solid rgba(0,217,255,0.2);
  border-radius: 12px; padding: 16px;
  font-size: 13px; line-height: 1.8;
  font-family: monospace;
}
.cpanel-result.success { border-color: rgba(34,197,94,0.4); }
.cpanel-result.error { border-color: rgba(239,68,68,0.4); color: #ef4444; }
.cpanel-result-title {
  font-size: 14px; font-weight: 800; margin-bottom: 12px;
  display: flex; align-items: center; gap: 8px;
}
.cpanel-result-row {
  display: flex; justify-content: space-between;
  padding: 6px 0; border-bottom: 1px solid rgba(255,255,255,0.06);
}
.cpanel-result-row:last-child { border-bottom: none; }
.cpanel-result-key { color: rgba(255,255,255,0.5); font-size: 12px; }
.cpanel-result-val { color: #00d9ff; font-weight: 700; word-break: break-all; text-align: right; max-width: 60%; }

/* Sembunyikan footer & typing saat cpanel aktif */
#contact.cpanel-active .site-footer,
#contact.cpanel-active .typing,
#contact.cpanel-active .profile-banner {
  display: none !important;
}

/* ── Arrow + Token System ── */

/* Token input */
.cpanel-token-wrap {
  background: rgba(255,170,0,0.04);
  border: 1px solid rgba(255,170,0,0.2);
  border-radius: 14px; padding: 16px;
  margin: 8px 0; animation: fadeIn 0.3s ease;
}
@keyframes fadeIn { from { opacity:0; transform:translateY(-8px); } to { opacity:1; transform:translateY(0); } }
.cpanel-token-header {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 700; color: #fff;
  margin-bottom: 12px;
}
.cpanel-lock-input-wrap { display: flex; gap: 8px; margin-bottom: 8px; }
.cpanel-lock-input {
  flex: 1; background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,170,0,0.25);
  border-radius: 10px; padding: 11px 14px;
  color: #fff; font-size: 13px; outline: none; transition: 0.2s;
}
.cpanel-lock-input:focus { border-color: rgba(255,170,0,0.6); }
.cpanel-lock-submit {
  background: rgba(255,170,0,0.15);
  border: 1px solid rgba(255,170,0,0.35);
  color: #ffaa00; border-radius: 10px;
  padding: 11px 16px; font-size: 15px;
  cursor: pointer; transition: 0.2s;
}
.cpanel-lock-submit:hover { background: rgba(255,170,0,0.28); }
.cpanel-code-status { font-size: 12px; min-height: 16px; margin-bottom: 8px; }
.cpanel-lock-divider {
  font-size: 11px; color: rgba(255,255,255,0.3);
  text-align: center; margin: 10px 0 8px;
}
.cpanel-wa-btn {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  background: rgba(37,211,102,0.1);
  border: 1px solid rgba(37,211,102,0.3);
  color: #25d366; border-radius: 10px;
  padding: 10px; font-size: 13px;
  font-weight: 700; text-decoration: none; transition: 0.2s;
}
.cpanel-wa-btn:hover { background: rgba(37,211,102,0.2); }

/* Arrow card (legacy, hidden now) */
.cpanel-plan-arrow {
  display: flex; align-items: center; justify-content: center;
  border-color: rgba(255,170,0,0.3) !important;
  background: rgba(255,170,0,0.06) !important;
  cursor: pointer;
}
.cpanel-plan-arrow:hover {
  background: rgba(255,170,0,0.14) !important;
  border-color: rgba(255,170,0,0.5) !important;
  box-shadow: 0 0 12px rgba(255,170,0,0.2) !important;
}
.cpanel-arrow-icon {
  font-size: 13px; color: #ffaa00;
  transition: transform 0.3s, color 0.3s;
}
.cpanel-plan-arrow.open .cpanel-arrow-icon {
  transform: rotate(90deg);
}
.cpanel-plan-arrow.unlocked .cpanel-arrow-icon {
  transform: rotate(90deg);
  color: #22c55e;
}
.cpanel-plan-arrow.unlocked {
  border-color: rgba(34,197,94,0.4) !important;
  background: rgba(34,197,94,0.08) !important;
}

/* History limit notice */
.cpanel-history-limit-notice {
  text-align: center; padding: 12px 16px;
  background: rgba(255,170,0,0.06);
  border: 1px solid rgba(255,170,0,0.2);
  border-radius: 12px; margin-top: 10px;
  font-size: 12px; color: rgba(255,170,0,0.9);
  display: flex; align-items: center; justify-content: center; gap: 8px;
  cursor: pointer;
}
.cpanel-history-limit-notice:hover { background: rgba(255,170,0,0.12); }

/* Plan divider */
.cp-plans-divider {
  display: flex; align-items: center; gap: 10px;
  margin: 4px 0 2px;
}
.cp-plans-divider::before,
.cp-plans-divider::after {
  content: ''; flex: 1;
  height: 1px; background: rgba(255,170,0,0.2);
}
.cp-plans-divider span {
  font-size: 11px; font-weight: 700;
  color: rgba(255,170,0,0.8);
  white-space: nowrap; letter-spacing: 0.3px;
}
.cp-plans-divider-free::before,
.cp-plans-divider-free::after {
  background: rgba(0,217,255,0.2);
}
.cp-plans-divider-free span { color: rgba(0,217,255,0.8); }
.cp-prem-badge {
  position: absolute; top: 14px; right: 14px;
  background: linear-gradient(135deg, rgba(255,170,0,0.18), rgba(255,140,0,0.1));
  border: 1px solid rgba(255,170,0,0.45);
  color: #ffaa00; font-size: 11px; font-weight: 800;
  padding: 5px 12px; border-radius: 20px;
  display: none; align-items: center; gap: 5px;
  cursor: pointer; transition: all 0.2s;
  letter-spacing: 0.3px;
  box-shadow: 0 0 10px rgba(255,170,0,0.15);
}
.cp-prem-badge:hover {
  background: rgba(255,170,0,0.25);
  box-shadow: 0 0 16px rgba(255,170,0,0.3);
}

/* Tab Bar */
.cp-tab-bar {
  display: flex; gap: 8px;
  margin: 0 16px 16px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px; padding: 5px;
}
.cp-tab {
  flex: 1; text-align: center;
  padding: 10px 8px;
  border-radius: 10px;
  font-size: 13px; font-weight: 700;
  color: rgba(255,255,255,0.4);
  cursor: pointer; transition: all 0.2s;
  display: flex; align-items: center; justify-content: center; gap: 6px;
  position: relative;
}
.cp-tab.active {
  background: rgba(0,217,255,0.12);
  color: #00d9ff;
  border: 1px solid rgba(0,217,255,0.25);
  box-shadow: 0 2px 10px rgba(0,217,255,0.1);
}
.cp-tab:not(.active):hover {
  color: rgba(255,255,255,0.7);
  background: rgba(255,255,255,0.04);
}
.cp-riwayat-tab-count {
  background: #ef4444;
  color: #fff; font-size: 10px; font-weight: 900;
  padding: 1px 6px; border-radius: 20px;
  min-width: 16px; text-align: center;
  line-height: 1.4;
}
.cp-riwayat-tab-count.prem { background: #ffaa00; color: #000; }

/* Riwayat inline panel */
.cp-riwayat-panel {
  margin: 0 16px;
}
.cp-riwayat-panel-header {
  display: flex; justify-content: flex-end;
  margin-bottom: 10px;
}
.cp-riwayat-panel-header button {
  font-size: 12px; font-weight: 700;
  background: rgba(255,255,255,0.06);
  padding: 3px 10px; border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.1);
}

/* Premium info modal body */
.cp-prem-info-body {
  text-align: center; padding: 8px 0 18px;
}
.cp-prem-info-icon { font-size: 40px; margin-bottom: 10px; }
.cp-prem-info-title {
  font-size: 18px; font-weight: 800; color: #ffaa00; margin-bottom: 8px;
}
.cp-prem-info-desc {
  font-size: 13px; color: rgba(255,255,255,0.55);
  line-height: 1.6; margin-bottom: 16px;
}
.cp-prem-info-perks {
  display: flex; flex-direction: column; gap: 8px;
  text-align: left; margin-bottom: 4px;
}
.cp-perm-perk {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; color: rgba(255,255,255,0.8);
}
.cp-prem-logout-btn {
  width: 100%; padding: 13px;
  background: rgba(239,68,68,0.1);
  border: 1px solid rgba(239,68,68,0.3);
  color: #ef4444; border-radius: 12px;
  font-size: 14px; font-weight: 700;
  cursor: pointer; display: flex;
  align-items: center; justify-content: center; gap: 8px;
  transition: all 0.2s; margin-top: 4px;
}
.cp-prem-logout-btn:hover {
  background: rgba(239,68,68,0.2);
  box-shadow: 0 4px 16px rgba(239,68,68,0.2);
}

/* ── Result Panel ── */
.cpanel-result-plan-badge {
  display: inline-block;
  background: rgba(0,217,255,0.12);
  border: 1px solid rgba(0,217,255,0.3);
  color: #00d9ff; font-size: 12px; font-weight: 800;
  padding: 4px 14px; border-radius: 20px;
  margin-bottom: 14px; letter-spacing: 1px;
  text-transform: uppercase;
}
.cpanel-result-divider {
  font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 1px; color: rgba(255,255,255,0.35);
  text-align: center; margin: 14px 0 10px;
  position: relative;
}
.cpanel-result-divider::before, .cpanel-result-divider::after {
  content: ''; position: absolute; top: 50%;
  width: 30%; height: 1px; background: rgba(255,255,255,0.08);
}
.cpanel-result-divider::before { left: 0; }
.cpanel-result-divider::after { right: 0; }
.cpanel-result-specs {
  display: grid; grid-template-columns: repeat(3,1fr);
  gap: 8px; margin-bottom: 14px;
}
.cpanel-spec-box {
  background: rgba(0,217,255,0.06);
  border: 1px solid rgba(0,217,255,0.15);
  border-radius: 10px; padding: 10px 6px;
  text-align: center;
}
.cpanel-spec-val {
  font-size: 13px; font-weight: 800; color: #00d9ff;
  margin-bottom: 4px; word-break: break-all;
}
.cpanel-spec-label {
  font-size: 10px; color: rgba(255,255,255,0.4);
  text-transform: uppercase; letter-spacing: 0.5px;
}
.cpanel-copy-btn {
  width: 100%; padding: 12px;
  background: rgba(34,197,94,0.1);
  border: 1px solid rgba(34,197,94,0.3);
  color: #22c55e; border-radius: 10px;
  font-weight: 700; font-size: 13px;
  cursor: pointer; display: flex;
  align-items: center; justify-content: center;
  gap: 8px; transition: 0.2s;
}
.cpanel-copy-btn:hover { background: rgba(34,197,94,0.2); }

/* Result link & improved layout */
.cpanel-result-link {
  color: #00d9ff; font-size: 12px; font-weight: 600;
  text-decoration: none; word-break: break-all;
  text-align: right; max-width: 60%;
  border-bottom: 1px solid rgba(0,217,255,0.3);
  transition: color 0.2s;
}
.cpanel-result-link:hover { color: #fff; }
.cpanel-result-val { font-size: 13px; }
.cpanel-spec-val { font-size: 16px !important; }

/* ── Riwayat Panel ── */
.cpanel-history-wrap {
  margin: 16px 16px 0;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 14px; overflow: hidden;
}
.cpanel-history-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  font-size: 13px; font-weight: 700; color: #00d9ff;
}
.cpanel-history-clear {
  background: rgba(239,68,68,0.1); border: 1px solid rgba(239,68,68,0.25);
  color: #ef4444; border-radius: 8px; padding: 4px 10px;
  font-size: 11px; font-weight: 700; cursor: pointer; transition: 0.2s;
  display: flex; align-items: center; gap: 5px;
}
.cpanel-history-clear:hover { background: rgba(239,68,68,0.2); }
.cpanel-history-list { padding-bottom: 32px; }
.cpanel-history-item {
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  transition: background 0.2s;
}
.cpanel-history-item:last-child { border-bottom: none; }
.cpanel-history-item:hover { background: rgba(255,255,255,0.03); }
.cpanel-history-top {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 8px;
}
.cpanel-history-name {
  font-size: 13px; font-weight: 800; color: #fff;
  display: flex; align-items: center; gap: 6px;
}
.cpanel-history-badge {
  font-size: 10px; background: rgba(0,217,255,0.1);
  border: 1px solid rgba(0,217,255,0.25);
  color: #00d9ff; padding: 2px 8px; border-radius: 20px;
  font-weight: 700;
}
.cpanel-history-date { font-size: 10px; color: rgba(255,255,255,0.3); }
.cpanel-history-info {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 4px 12px; font-size: 11px; color: rgba(255,255,255,0.5);
  margin-bottom: 8px;
}
.cpanel-history-info span { color: rgba(255,255,255,0.8); }
.cpanel-history-actions {
  display: flex; gap: 6px;
}
.cpanel-history-btn {
  flex: 1; padding: 6px; border-radius: 8px;
  font-size: 11px; font-weight: 700; cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 5px;
  transition: 0.2s; border: 1px solid;
}
.cpanel-history-btn.copy {
  background: rgba(0,217,255,0.08); border-color: rgba(0,217,255,0.25); color: #00d9ff;
}
.cpanel-history-btn.copy:hover { background: rgba(0,217,255,0.18); }
.cpanel-history-btn.del {
  background: rgba(239,68,68,0.08); border-color: rgba(239,68,68,0.2); color: #ef4444;
}
.cpanel-history-btn.del:hover { background: rgba(239,68,68,0.18); }
.cpanel-history-empty {
  text-align: center; padding: 20px; font-size: 12px;
  color: rgba(255,255,255,0.3);
}

/* ── Result Baru ── */
.cpanel-result { padding: 0 !important; overflow: hidden; background: #0d1f35 !important; }
.cpr-header {
  display: flex; align-items: center; gap: 12px;
  padding: 16px; background: rgba(34,197,94,0.06);
  border-bottom: 1px solid rgba(34,197,94,0.15);
}
.cpr-icon-ok { font-size: 28px; color: #22c55e; }
.cpr-title { font-size: 14px; font-weight: 800; color: #fff; margin-bottom: 3px; }
.cpr-plan {
  display: inline-block; font-size: 11px; font-weight: 700;
  background: rgba(0,217,255,0.12); border: 1px solid rgba(0,217,255,0.25);
  color: #00d9ff; padding: 2px 10px; border-radius: 20px;
}
.cpr-section { padding: 14px 16px; border-bottom: 1px solid rgba(255,255,255,0.05); }
.cpr-section:last-of-type { border-bottom: none; }
.cpr-section-title {
  font-size: 10px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 1px; color: rgba(255,255,255,0.3);
  margin-bottom: 10px;
}
.cpr-login-url {
  display: block; color: #00d9ff; font-size: 12px; font-weight: 600;
  text-decoration: none; margin-bottom: 10px; word-break: break-all;
  padding: 8px 10px; background: rgba(0,217,255,0.06);
  border: 1px solid rgba(0,217,255,0.15); border-radius: 8px;
  transition: 0.2s;
}
.cpr-login-url:hover { background: rgba(0,217,255,0.12); }
.cpr-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 7px 0; border-bottom: 1px solid rgba(255,255,255,0.04);
  font-size: 13px;
}
.cpr-row:last-child { border-bottom: none; }
.cpr-row span { color: rgba(255,255,255,0.45); }
.cpr-row strong { color: #fff; font-weight: 700; }
.cpr-specs {
  display: grid; grid-template-columns: repeat(3,1fr); gap: 8px;
}
.cpr-spec {
  display: flex; align-items: center; gap: 8px;
  padding: 10px; border-radius: 10px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.07);
}
.cpr-spec i { font-size: 16px; color: #00d9ff; }
.cpr-spec b { display: block; font-size: 12px; color: #fff; font-weight: 800; }
.cpr-spec small { font-size: 10px; color: rgba(255,255,255,0.35); text-transform: uppercase; }
.cpr-copy-btn {
  width: 100%; padding: 13px; margin: 0;
  background: rgba(34,197,94,0.08);
  border: none; border-top: 1px solid rgba(34,197,94,0.15);
  color: #22c55e; font-size: 13px; font-weight: 700;
  cursor: pointer; display: flex; align-items: center;
  justify-content: center; gap: 8px; transition: 0.2s;
}
.cpr-copy-btn:hover { background: rgba(34,197,94,0.16); }

/* History item preview & clickable */
.cpanel-history-item { cursor: pointer; }
.cpanel-history-item:hover { background: rgba(0,217,255,0.04) !important; }
.cpanel-history-preview {
  font-size: 11px; color: rgba(255,255,255,0.35);
  margin: 4px 0 8px; white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis;
}

/* ── Result Modal Mengambang ── */
.cpanel-result-modal {
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(0,0,0,0.7); backdrop-filter: blur(6px);
  display: flex; align-items: flex-end; justify-content: center;
  animation: fadeIn 0.2s ease;
}
.cpanel-result-modal .cpanel-result {
  width: 100%; max-width: 500px;
  border-radius: 20px 20px 0 0 !important;
  border-left: none; border-right: none; border-bottom: none;
  max-height: 85vh; overflow-y: auto;
  animation: slideUp 0.3s ease;
}
@keyframes slideUp {
  from { transform: translateY(100%); }
  to   { transform: translateY(0); }
}

/* ===== CZ Custom Confirm Modal ===== */
#cz-confirm-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(0,0,0,0.75);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  align-items: center;
  justify-content: center;
}
#cz-confirm-overlay.show {
  display: flex;
}
#cz-confirm-box {
  background: linear-gradient(135deg, #0d1f3c 0%, #111e38 60%, #0a1628 100%);
  border: 1px solid rgba(0,217,255,0.25);
  border-top: 2px solid #00d9ff;
  border-radius: 18px;
  padding: 28px 24px 22px;
  width: 88%;
  max-width: 360px;
  box-shadow: 0 0 40px rgba(0,217,255,0.15), 0 20px 60px rgba(0,0,0,0.6);
  animation: czConfirmIn 0.22s cubic-bezier(.34,1.56,.64,1) both;
  position: relative;
  overflow: hidden;
}
#cz-confirm-box::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, #00d9ff, #00ffff, transparent);
  animation: czScanLine 2s linear infinite;
}
@keyframes czScanLine {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}
@keyframes czConfirmIn {
  from { opacity: 0; transform: scale(0.85) translateY(20px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}
#cz-confirm-icon {
  width: 56px; height: 56px;
  background: rgba(255,60,60,0.12);
  border: 2px solid rgba(255,80,80,0.4);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px;
  font-size: 22px;
  color: #ff5555;
  animation: czPulseRed 1.8s ease-in-out infinite;
}
@keyframes czPulseRed {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255,60,60,0.3); }
  50%       { box-shadow: 0 0 0 10px rgba(255,60,60,0); }
}
#cz-confirm-title {
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  text-align: center;
  margin-bottom: 10px;
  letter-spacing: 0.3px;
}
#cz-confirm-title span {
  color: #00d9ff;
}
#cz-confirm-msg {
  font-size: 13px;
  color: rgba(255,255,255,0.65);
  text-align: center;
  line-height: 1.6;
  margin-bottom: 22px;
  padding: 12px;
  background: rgba(255,60,60,0.06);
  border-radius: 10px;
  border: 1px solid rgba(255,80,80,0.15);
}
#cz-confirm-msg b {
  color: rgba(255,255,255,0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-bottom: 6px;
}
.cz-warn-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin-bottom: 6px;
}
.cz-warn-row i {
  color: #ffaa00;
  font-size: 14px;
  flex-shrink: 0;
}
.cz-warn-row b {
  color: rgba(255,255,255,0.9);
  font-size: 13px;
  display: inline !important;
  margin: 0 !important;
}
.cz-confirm-btns {
  display: flex;
  gap: 10px;
}
.cz-confirm-btns button {
  flex: 1;
  padding: 12px;
  border-radius: 10px;
  border: none;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  letter-spacing: 0.3px;
}
#cz-confirm-cancel {
  background: rgba(255,255,255,0.07);
  color: rgba(255,255,255,0.7);
  border: 1px solid rgba(255,255,255,0.12) !important;
}
#cz-confirm-cancel:hover {
  background: rgba(255,255,255,0.12);
  color: #fff;
}
#cz-confirm-ok {
  background: linear-gradient(135deg, #ff3c3c, #cc1a1a);
  color: #fff;
  box-shadow: 0 4px 15px rgba(255,60,60,0.35);
}
#cz-confirm-ok:hover {
  background: linear-gradient(135deg, #ff5555, #e02020);
  box-shadow: 0 4px 20px rgba(255,60,60,0.55);
  transform: translateY(-1px);
}
#cz-confirm-ok:active {
  transform: translateY(0);
}
/* ===== FILE TO URL ===== */
/* Tab switcher */
.zt-fu-tabs {
  display: flex;
  background: rgba(255,255,255,0.04);
  border-radius: 12px;
  padding: 4px;
  margin-bottom: 16px;
  gap: 4px;
}
.zt-fu-tab {
  flex: 1;
  padding: 10px;
  border: none;
  border-radius: 9px;
  background: transparent;
  color: rgba(255,255,255,0.45);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  position: relative;
}
.zt-fu-tab.active {
  background: rgba(0,217,255,0.15);
  color: #00d9ff;
  box-shadow: 0 0 12px rgba(0,217,255,0.1);
}
.zt-fu-hist-badge {
  background: #00d9ff;
  color: #000;
  font-size: 0.65rem;
  font-weight: 800;
  border-radius: 99px;
  padding: 1px 6px;
  min-width: 18px;
  text-align: center;
}

/* Dropzone */
.zt-fu-dropzone {
  border: 2px dashed rgba(0,217,255,0.35);
  border-radius: 14px; padding: 28px 20px; text-align: center;
  cursor: pointer; background: rgba(0,217,255,0.03);
  transition: all 0.2s; margin-bottom: 12px;
}
.zt-fu-dropzone:hover,.zt-fu-dropzone.drag-over {
  border-color: #00d9ff; background: rgba(0,217,255,0.08);
  box-shadow: 0 0 18px rgba(0,217,255,0.12);
}
.zt-fu-drop-icon { font-size:2rem; color:#00d9ff; display:block; margin-bottom:8px; }
.zt-fu-drop-text { font-size:0.9rem; color:#e0e8ff; font-weight:600; margin-bottom:3px; }
.zt-fu-drop-hint { font-size:0.73rem; color:rgba(255,255,255,0.38); }

/* Preview */
.zt-fu-preview-wrap {
  border-radius:12px; overflow:hidden;
  background:rgba(255,255,255,0.03);
  border:1px solid rgba(0,217,255,0.12); margin-bottom:12px;
}
.zt-fu-preview-wrap img,.zt-fu-preview-wrap video {
  width:100%; max-height:200px; object-fit:contain; display:block; background:#000;
}
.zt-fu-meta { padding:7px 12px; font-size:0.74rem; color:rgba(255,255,255,0.42); }

/* Upload btn */
.zt-fu-upload-btn {
  width:100%; padding:12px; border:none; border-radius:11px;
  background:linear-gradient(135deg,#00d9ff,#0055ff);
  color:#fff; font-size:0.92rem; font-weight:700;
  cursor:pointer; margin-bottom:12px; transition:opacity 0.2s,transform 0.15s;
}
.zt-fu-upload-btn:hover { opacity:0.85; transform:translateY(-1px); box-shadow:0 6px 20px rgba(0,217,255,0.28); }

/* Progress */
.zt-fu-progress-wrap { margin-bottom:12px; }
.zt-fu-bar-track { height:6px; border-radius:99px; background:rgba(255,255,255,0.09); overflow:hidden; margin-bottom:6px; }
.zt-fu-bar { height:100%; border-radius:99px; background:linear-gradient(90deg,#00d9ff,#0055ff); width:0%; transition:width 0.3s; }
.zt-fu-bar-label { font-size:0.76rem; color:rgba(255,255,255,0.45); text-align:center; }

/* Result */
.zt-fu-result {
  background:rgba(0,217,255,0.06); border:1px solid rgba(0,217,255,0.22);
  border-radius:13px; padding:14px; margin-bottom:14px;
}
.zt-fu-result-label { color:#00d9ff; font-weight:700; font-size:0.88rem; margin-bottom:10px; }
.zt-fu-url-wrap { display:flex; gap:7px; margin-bottom:11px; }
.zt-fu-result-url {
  flex:1; background:rgba(0,0,0,0.3); border:1px solid rgba(0,217,255,0.18);
  border-radius:8px; padding:8px 11px; color:#fff; font-size:0.79rem; outline:none;
}
.zt-fu-copy-btn {
  background:rgba(0,217,255,0.13); border:1px solid rgba(0,217,255,0.28);
  border-radius:8px; color:#00d9ff; padding:8px 12px; cursor:pointer;
  font-size:0.88rem; transition:background 0.2s;
}
.zt-fu-copy-btn:hover { background:rgba(0,217,255,0.26); }
.zt-fu-actions { display:flex; gap:8px; }
.zt-fu-action-btn {
  flex:1; text-align:center; padding:9px; border-radius:8px;
  font-size:0.8rem; font-weight:600; border:1px solid rgba(0,217,255,0.22);
  background:rgba(0,217,255,0.07); color:#e0e8ff; cursor:pointer;
  text-decoration:none; display:flex; align-items:center; justify-content:center; gap:5px;
  transition:background 0.2s;
}
.zt-fu-action-btn:hover { background:rgba(0,217,255,0.16); color:#fff; }

/* History view */
.zt-fu-hist-empty {
  text-align:center; padding:40px 20px;
  color:rgba(255,255,255,0.25); font-size:0.88rem;
}
.zt-fu-hist-empty i { font-size:2.2rem; display:block; margin-bottom:10px; color:rgba(0,217,255,0.2); }
.zt-fu-hist-top {
  display:flex; align-items:center; justify-content:space-between;
  margin-bottom:12px;
}
.zt-fu-hist-count { font-size:0.8rem; color:rgba(255,255,255,0.4); }
.zt-fu-hist-clear-btn {
  background:rgba(255,60,60,0.08); border:1px solid rgba(255,60,60,0.2);
  border-radius:8px; color:rgba(255,110,110,0.8); font-size:0.75rem;
  padding:6px 11px; cursor:pointer; transition:all 0.2s;
  display:flex; align-items:center; gap:5px;
}
.zt-fu-hist-clear-btn:hover { background:rgba(255,60,60,0.2); color:#ff7070; }
.zt-fu-history { display:flex; flex-direction:column; gap:12px; }

/* History card — layout vertikal, tombol di bawah */
.zt-fu-hist-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.25s;
  display: flex;
  flex-direction: column;
}
.zt-fu-hist-card:hover { border-color:rgba(0,217,255,0.25); background:rgba(0,217,255,0.03); }

/* Baris atas: thumb + info */
.zt-fu-hist-top-row {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 14px 14px 10px;
}
.zt-fu-hist-thumb {
  width: 58px; height: 58px; border-radius: 12px;
  background: rgba(0,217,255,0.08);
  display: flex; align-items: center; justify-content: center;
  color: #00d9ff; font-size: 1.4rem;
  flex-shrink: 0; overflow: hidden;
  border: 1px solid rgba(0,217,255,0.12);
}
.zt-fu-hist-thumb img {
  width:100%; height:100%; object-fit:cover; border-radius:12px;
}
.zt-fu-hist-info { flex:1; min-width:0; }
.zt-fu-hist-name {
  font-size:0.88rem; font-weight:700; color:#e0e8ff;
  white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
  margin-bottom:5px;
}
.zt-fu-hist-meta {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
}
.zt-fu-hist-size {
  display: inline-block;
  font-size: 0.71rem; font-weight: 700;
  background: rgba(0,217,255,0.12);
  color: #00d9ff;
  border-radius: 6px;
  padding: 2px 8px;
}
.zt-fu-hist-date {
  font-size:0.7rem; color:rgba(255,255,255,0.38);
  display:flex; align-items:center; gap:4px;
}

/* Divider tipis */
.zt-fu-hist-divider {
  height: 1px;
  background: rgba(255,255,255,0.06);
  margin: 0 14px;
}

/* Baris bawah: tombol full width berdampingan */
.zt-fu-hist-btns {
  display: flex;
  gap: 0;
  padding: 10px 14px 14px;
  gap: 10px;
}
.zt-fu-hbtn {
  flex: 1;
  border-radius: 10px; padding: 9px 0; cursor:pointer;
  font-size: 0.82rem; font-weight: 600; border: 1px solid;
  transition: all 0.18s; display:flex; align-items:center;
  justify-content: center; gap:6px; white-space:nowrap;
}
.zt-fu-hbtn-copy {
  background:rgba(0,217,255,0.1); border-color:rgba(0,217,255,0.3); color:#00d9ff;
}
.zt-fu-hbtn-copy:hover { background:rgba(0,217,255,0.22); border-color:rgba(0,217,255,0.5); }
.zt-fu-hbtn-del {
  background:rgba(255,60,60,0.08); border-color:rgba(255,60,60,0.25); color:rgba(255,110,110,0.9);
}
.zt-fu-hbtn-del:hover { background:rgba(255,60,60,0.2); color:#ff7070; border-color:rgba(255,60,60,0.45); }
.zt-fu-hbtn-del.deleting { opacity:0.5; pointer-events:none; }

/* ===== VIDEO TO AUDIO ===== */
/* VA Tabs */
.zt-va-tabs {
  display: flex; background: rgba(255,255,255,0.04);
  border-radius: 12px; padding: 4px; gap: 4px; margin-bottom: 16px;
}
.zt-va-tab {
  flex: 1; padding: 10px; border: none; border-radius: 9px;
  background: transparent; color: rgba(255,255,255,0.45);
  font-size: 0.85rem; font-weight: 600; cursor: pointer;
  transition: all 0.2s; display: flex; align-items: center;
  justify-content: center; gap: 6px; position: relative;
}
.zt-va-tab.active { background: rgba(0,217,255,0.15); color: #00d9ff; box-shadow: 0 0 12px rgba(0,217,255,0.1); }
.zt-va-hist-badge {
  background: #00d9ff; color: #000; font-size: 0.65rem; font-weight: 800;
  border-radius: 99px; padding: 1px 6px; min-width: 18px; text-align: center;
}
/* VA History panel */
.zt-va-hist-empty { text-align:center; padding:40px 20px; color:rgba(255,255,255,0.25); font-size:0.88rem; }
.zt-va-hist-empty i { font-size:2.2rem; display:block; margin-bottom:10px; color:rgba(0,217,255,0.2); }
.zt-va-hist-top { display:flex; align-items:center; justify-content:space-between; margin-bottom:12px; }
.zt-va-hist-count { font-size:0.8rem; color:rgba(255,255,255,0.4); }
.zt-va-hist-clear-btn {
  background:rgba(255,60,60,0.08); border:1px solid rgba(255,60,60,0.2);
  border-radius:8px; color:rgba(255,110,110,0.8); font-size:0.75rem;
  padding:6px 11px; cursor:pointer; transition:all 0.2s; display:flex; align-items:center; gap:5px;
}
.zt-va-hist-clear-btn:hover { background:rgba(255,60,60,0.2); color:#ff7070; }
.zt-va-history { display:flex; flex-direction:column; gap:12px; }
.zt-va-hist-card {
  background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px; overflow: hidden; transition: all 0.25s; display: flex; flex-direction: column;
}
.zt-va-hist-card:hover { border-color:rgba(0,217,255,0.25); background:rgba(0,217,255,0.03); }
.zt-va-hist-top-row { display: flex; align-items: center; gap: 13px; padding: 14px 14px 10px; }
.zt-va-hist-thumb {
  width: 58px; height: 58px; border-radius: 12px; background: rgba(0,217,255,0.08);
  display: flex; align-items: center; justify-content: center;
  color: #00d9ff; font-size: 1.4rem; flex-shrink: 0; border: 1px solid rgba(0,217,255,0.12);
}
.zt-va-hist-info { flex:1; min-width:0; }
.zt-va-hist-name { font-size:0.88rem; font-weight:700; color:#e0e8ff; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; margin-bottom:5px; }
.zt-va-hist-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.zt-va-hist-size { display:inline-block; font-size:0.71rem; font-weight:700; background:rgba(0,217,255,0.12); color:#00d9ff; border-radius:6px; padding:2px 8px; }
.zt-va-hist-date { font-size:0.7rem; color:rgba(255,255,255,0.38); display:flex; align-items:center; gap:4px; }
.zt-va-hist-divider { height: 1px; background: rgba(255,255,255,0.06); margin: 0 14px; }
.zt-va-hist-btns { display: flex; padding: 10px 14px 14px; gap: 10px; }
.zt-va-hbtn {
  flex: 1; border-radius: 10px; padding: 9px 0; cursor:pointer;
  font-size: 0.82rem; font-weight: 600; border: 1px solid;
  transition: all 0.18s; display:flex; align-items:center; justify-content: center; gap:6px; white-space:nowrap;
}
.zt-va-hbtn-dl { background:rgba(0,217,255,0.1); border-color:rgba(0,217,255,0.3); color:#00d9ff; }
.zt-va-hbtn-dl:hover { background:rgba(0,217,255,0.22); }
.zt-va-hbtn-dl[disabled] { opacity:0.4; pointer-events:none; cursor:default; }
.zt-va-hbtn-del { background:rgba(255,60,60,0.08); border-color:rgba(255,60,60,0.25); color:rgba(255,110,110,0.9); }
.zt-va-hbtn-del:hover { background:rgba(255,60,60,0.2); color:#ff7070; border-color:rgba(255,60,60,0.45); }

.zt-va-wrap { display:flex; flex-direction:column; gap:0; padding-bottom:10px; }
.zt-va-hero { text-align:center; padding:10px 0 0; }
.zt-va-icon {
  display:inline-flex; align-items:center; gap:10px;
  font-size:1.6rem; margin-bottom:16px;
  color:#00d9ff; filter:drop-shadow(0 0 8px rgba(0,217,255,0.4));
}
.zt-va-arrow { font-size:1rem; color:rgba(0,217,255,0.5); }
.zt-va-title { font-size:22px; font-weight:700; color:#fff; margin:0 0 4px; letter-spacing:1px; }
.zt-va-sub { font-size:13px; color:rgba(255,255,255,0.4); margin-bottom:20px; }

.zt-va-dropzone {
  border: 2px dashed rgba(0,217,255,0.25);
  border-radius: 16px;
  padding: 28px 20px;
  text-align: center;
  cursor: pointer;
  background: rgba(0,217,255,0.03);
  transition: all 0.2s;
}
.zt-va-dropzone:hover, .zt-va-dropzone.drag-over {
  border-color: rgba(0,217,255,0.6);
  background: rgba(0,217,255,0.07);
}
.zt-va-drop-icon { font-size:2rem; color:#00d9ff; display:block; margin-bottom:8px; }
.zt-va-drop-text { font-size:0.9rem; color:#e0e8ff; font-weight:600; margin-bottom:3px; }
.zt-va-drop-hint { font-size:0.72rem; color:rgba(255,255,255,0.35); }

.zt-va-fileinfo {
  display:flex; align-items:center; gap:12px;
  background:rgba(0,217,255,0.06);
  border:1px solid rgba(0,217,255,0.15);
  border-radius:12px; padding:12px 14px;
}
.zt-va-fileinfo-text { flex:1; min-width:0; }
.zt-va-filename { font-size:0.85rem; font-weight:700; color:#e0e8ff; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.zt-va-filesize { font-size:0.72rem; color:rgba(0,217,255,0.7); margin-top:3px; }
.zt-va-clear-btn {
  background:rgba(255,255,255,0.05); border:1px solid rgba(255,255,255,0.1);
  color:rgba(255,255,255,0.5); border-radius:8px; padding:6px 10px;
  cursor:pointer; flex-shrink:0; transition:0.18s;
}
.zt-va-clear-btn:hover { background:rgba(255,60,60,0.15); color:#ff7070; border-color:rgba(255,60,60,0.3); }

.zt-va-options { display:flex; flex-direction:column; gap:10px; margin-top:14px; }
#zt-va-convert-btn { margin-top:14px; }
.zt-va-opt-label { font-size:0.78rem; font-weight:700; color:rgba(255,255,255,0.5); margin-bottom:4px; display:flex; align-items:center; gap:6px; }
.zt-va-format-btns { display:flex; gap:8px; flex-wrap:wrap; }
.zt-va-fmt-btn {
  flex:1; min-width:60px; padding:8px 0;
  border-radius:10px; border:1px solid rgba(0,217,255,0.2);
  background:rgba(0,217,255,0.06); color:rgba(255,255,255,0.6);
  font-size:0.82rem; font-weight:700; cursor:pointer; transition:0.18s;
}
.zt-va-fmt-btn:hover { background:rgba(0,217,255,0.14); color:#00d9ff; }
.zt-va-fmt-btn.active { background:rgba(0,217,255,0.18); border-color:rgba(0,217,255,0.6); color:#00d9ff; box-shadow:0 0 10px rgba(0,217,255,0.15); }

.zt-va-convert-btn {
  width:100%; padding:13px; border-radius:14px;
  background:linear-gradient(135deg,#00d9ff,#0066ff);
  border:none; color:#fff; font-size:0.95rem; font-weight:700;
  cursor:pointer; transition:0.2s; display:flex; align-items:center; justify-content:center; gap:8px;
  box-shadow:0 4px 18px rgba(0,150,255,0.3);
}
.zt-va-convert-btn:hover { transform:translateY(-1px); box-shadow:0 6px 24px rgba(0,150,255,0.4); }
.zt-va-convert-btn:disabled { opacity:0.5; pointer-events:none; }

.zt-va-status { font-size:0.85rem; color:#00d9ff; font-weight:600; margin-bottom:10px; }
.zt-va-bar-track { height:8px; border-radius:99px; background:rgba(255,255,255,0.08); overflow:hidden; margin-bottom:6px; }
.zt-va-bar { height:100%; border-radius:99px; background:linear-gradient(90deg,#00d9ff,#0066ff); width:0%; transition:width 0.4s; }
.zt-va-progress-wrap { text-align:center; margin-top:14px; }
.zt-va-bar-label { font-size:0.75rem; color:rgba(255,255,255,0.4); }

.zt-va-result {
  text-align:center; padding:20px; margin-top:14px;
  background:rgba(0,217,255,0.05);
  border:1px solid rgba(0,217,255,0.15);
  border-radius:16px;
  display:flex; flex-direction:column; align-items:center; gap:12px;
}
.zt-va-result-icon { font-size:2.5rem; color:#00fff6; filter:drop-shadow(0 0 8px rgba(0,255,246,0.5)); }
.zt-va-result-text { font-size:0.9rem; font-weight:700; color:#e0e8ff; }
.zt-va-download-btn {
  display:flex; align-items:center; gap:8px;
  padding:12px 28px; border-radius:12px;
  background:linear-gradient(135deg,#00fff6,#00bcd4);
  color:#0a1628; font-size:0.9rem; font-weight:700;
  text-decoration:none; transition:0.2s; cursor:pointer; border:none;
  box-shadow:0 4px 16px rgba(0,255,246,0.3);
}
.zt-va-download-btn:hover { transform:translateY(-1px); box-shadow:0 6px 22px rgba(0,255,246,0.5); }
.zt-va-again-btn {
  background:rgba(255,255,255,0.05); border:1px solid rgba(255,255,255,0.1);
  color:rgba(255,255,255,0.6); border-radius:10px; padding:9px 20px;
  font-size:0.82rem; cursor:pointer; transition:0.18s; display:flex; align-items:center; gap:6px;
}
.zt-va-again-btn:hover { background:rgba(0,217,255,0.1); color:#00d9ff; }




/* ── KaTeX display math spacing fix ── */
.katex-display {
    margin: 4px 0 !important;
    overflow-x: auto;
    overflow-y: hidden;
}
.katex-display > .katex {
    white-space: normal;
}
.message-bubble .katex-display {
    margin: 2px 0 !important;
}

* {
  -webkit-tap-highlight-color: transparent;
}
* {
  scrollbar-width: none;
}
*::-webkit-scrollbar {
  display: none;
}
/* ── Screenshot Website ── */
.zt-ss-device-tabs {
  display: flex;
  gap: 6px;
  justify-content: center;
  margin-bottom: 14px;
}
.zt-ss-device-btn {
  flex: 1;
  padding: 7px 8px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.04);
  color: rgba(255,255,255,0.5);
  font-size: 12px;
  cursor: pointer;
  transition: all .18s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  font-weight: 600;
}
.zt-ss-device-btn.active {
  background: linear-gradient(135deg,#7c3aed,#6d28d9);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 0 10px rgba(124,58,237,0.35);
}
.zt-ss-device-btn:hover:not(.active) {
  background: rgba(124,58,237,0.1);
  border-color: rgba(124,58,237,0.3);
  color: #fff;
}
.zt-ss-result-img {
  width: 100%;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.08);
  display: block;
  margin-bottom: 10px;
  cursor: zoom-in;
}
.zt-ss-result-img.mobile-frame {
  max-width: 320px;
  margin: 0 auto 10px;
  display: block;
}
.zt-ss-fullscreen {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(0,0,0,0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  cursor: zoom-out;
}
.zt-ss-fullscreen img {
  max-width: 100%;
  max-height: 100%;
  border-radius: 8px;
  object-fit: contain;
}
.zt-ss-fullscreen-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  border: none;
  color: #fff;
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.zt-ss-info {
  font-size: 11px;
  color: rgba(255,255,255,0.35);
  text-align: center;
  margin-bottom: 10px;
}

/* ── Remini ── */
.zt-remini-upload-area {
  border: 2px dashed rgba(236,72,153,0.3);
  border-radius: 16px;
  padding: 28px 16px;
  text-align: center;
  cursor: pointer;
  transition: all .2s;
  background: rgba(236,72,153,0.04);
  margin-bottom: 14px;
  position: relative;
}
.zt-remini-upload-area:hover, .zt-remini-upload-area.drag {
  border-color: rgba(236,72,153,0.7);
  background: rgba(236,72,153,0.08);
}
.zt-remini-upload-area i {
  font-size: 32px;
  color: #ec4899;
  margin-bottom: 8px;
  display: block;
  opacity: 0.8;
}
.zt-remini-upload-area p {
  font-size: 13px;
  color: rgba(255,255,255,0.45);
  margin: 0;
}
.zt-remini-upload-area small {
  font-size: 11px;
  color: rgba(255,255,255,0.25);
  display: block;
  margin-top: 4px;
}
.zt-remini-preview {
  width: 100%;
  border-radius: 10px;
  display: block;
  margin-bottom: 10px;
  max-height: 220px;
  object-fit: contain;
  background: rgba(0,0,0,0.3);
}
.zt-remini-mode-tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 14px;
}
.zt-remini-mode-btn {
  flex: 1;
  padding: 7px 6px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.04);
  color: rgba(255,255,255,0.45);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all .18s;
  text-align: center;
}
.zt-remini-mode-btn.active {
  background: linear-gradient(135deg,#be185d,#ec4899);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 0 10px rgba(236,72,153,0.35);
}
.zt-remini-mode-btn:hover:not(.active) {
  background: rgba(236,72,153,0.1);
  border-color: rgba(236,72,153,0.3);
  color: #fff;
}
.zt-remini-btn {
  width: 100%;
  padding: 12px;
  border-radius: 12px;
  border: none;
  background: linear-gradient(135deg,#be185d,#ec4899);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all .2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 16px rgba(236,72,153,0.3);
}
.zt-remini-btn:hover { transform: translateY(-1px); }
.zt-remini-btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }
.zt-remini-compare {
  display: none;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(236,72,153,0.15);
  background: rgba(0,0,0,0.3);
  margin-top: 14px;
}
.zt-remini-compare-tabs {
  display: flex;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.zt-remini-compare-tab {
  flex: 1;
  padding: 8px;
  font-size: 12px;
  font-weight: 600;
  color: rgba(255,255,255,0.35);
  background: transparent;
  border: none;
  cursor: pointer;
  transition: all .2s;
  text-align: center;
}
.zt-remini-compare-tab.active {
  color: #ec4899;
  background: rgba(236,72,153,0.06);
  border-bottom: 2px solid #ec4899;
}
.zt-remini-compare-img { display: none; }
.zt-remini-compare-img.active { display: block; }
.zt-remini-compare-img img {
  width: 100%;
  display: block;
  max-height: 280px;
  object-fit: contain;
  background: #000;
}
.zt-remini-dl-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px;
  margin-top: 10px;
  border-radius: 12px;
  background: linear-gradient(135deg,#be185d,#ec4899);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all .2s;
  box-shadow: 0 4px 16px rgba(236,72,153,0.3);
}
.zt-remini-dl-btn:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(236,72,153,0.5); }

/* ── QR Download Buttons ── */
.zt-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  padding: 11px 20px; border-radius: 12px; font-size: 13px; font-weight: 700;
  cursor: pointer; border: none; transition: all 0.2s;
  background: linear-gradient(135deg,rgba(0,217,255,0.22),rgba(168,85,247,0.16));
  border: 1px solid rgba(0,217,255,0.35); color: #00d9ff;
  box-shadow: 0 4px 16px rgba(0,217,255,0.15);
}
.zt-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 22px rgba(0,217,255,0.3); }
#czm-artist-page {
  overscroll-behavior-y: contain;
}