/* ===================================================
   1. VARIABLE ROOT
=================================================== */
:root {
    --primary-teal: #00A8B5; 
    --bg-body: #f2f5f8;
    --primary-green: #008444; 
    --text-dark: #1a1a1a;
    --bg-body: url('https://i.ibb.co.com/F4fNZdNX/kertas2.jpg');
    --text-dark: #431407;
    --radius: 16px;
    --shadow: 8px 10px 5px rgba(2, 15, 22, 0.35);
}

/* ===================================================
   2. RESET & GLOBAL LAYOUT
=================================================== */
* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Plus Jakarta Sans', sans-serif; }
body { background-color: #e5e7eb; display: flex; justify-content: center; overflow-x: hidden; background-image: none; font-size: 11px; }
.app-container { width: 100%; max-width: 480px; background-color: var(--bg-body); min-height: 100vh; position: relative; padding-bottom: 90px !important; }

/* ===================================================
   3. HEADER
=================================================== */
.header-wrapper { background: linear-gradient(135deg, var(--primary-teal), #008b94); border-radius: 0 0 40px 40px; padding: 20px 0 30px 0; box-shadow: var(--shadow); position: relative; z-index: 1000; }
.header-top { display: flex; justify-content: space-between; align-items: center; padding: 0 20px 15px; color: white; }
.logo { font-size: 14px; font-weight: 800; letter-spacing: 0.5px; }
.cart-trigger { position: relative; cursor: pointer; font-size: 16px; }
.badge { position: absolute; top: -8px; right: -10px; background: #ef4444; color: white; font-size: 8px; padding: 2px 5px; border-radius: 50%; border: 2px solid var(--primary-teal); transition: transform 0.3s; font-weight: 800; }
.badge.bounce { transform: scale(1.4); }

/* ===================================================
   4. BANNER SWIPER / SLIDER
=================================================== */
.swiper { width: 100%; height: 170px; padding: 0 15px; }
.swiper-slide { border-radius: 24px; overflow: hidden; position: relative; border: 2px solid rgba(255,255,255,0.2); }
.swiper-slide img { width: 100%; height: 100%; object-fit: cover; }
.banner-text { position: absolute; bottom: 0; left: 0; right: 0; background: linear-gradient(transparent, rgba(0,0,0,0.7)); padding: 20px 15px 12px; color: white; }
.banner-text h3 { font-size: 11px; font-weight: 800; margin: 0; }
.dot { width:8px; height:8px; border-radius:50%; background:#d1d5db; transition:0.3s; }
.dot.active { width:20px; background:var(--primary-teal); border-radius:4px; }
#promoSlider::-webkit-scrollbar { display: none; }
#promoSlider{ scroll-snap-type: x mandatory; }

/* ===================================================
   5. PAGE & ANIMASI
=================================================== */
.page { display: none; padding: 20px; position: relative; z-index: 1 !important; }
.page.active { display: block; animation: slideUp 0.3s ease-out; }
@keyframes slideUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

/* ===================================================
   6. SERVICE GRID (ICON 4 MENU ATAS)
=================================================== */
.service-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 15px 5px; margin-top: 15px; }
.service-item { display: flex; flex-direction: column; align-items: center; color: #333; cursor: pointer; transition: .2s; }
.service-item .icon-bg { width: 42px; height: 42px; background: #ffffff; border-radius: 18px; display: flex; justify-content: center; align-items: center; font-size: 18px; margin-bottom: 8px; box-shadow: var(--shadow); border: 1.5px solid #f1f5f9; color: var(--primary-teal); transition: .25s; }
.service-item:active .icon-bg{ transform: scale(0.9); background: var(--primary-teal); color: #fff; }
.service-item span { font-size: 9px; font-weight: 700; }

/* ===================================================
   7. MENU CARD TOKO / LIST RESTO
=================================================== */
.menu-card { background: white; padding: 12px; border-radius: 20px; display: flex; gap: 15px; align-items: center; border: 1px solid #f1f5f9; box-shadow: var(--shadow); cursor: pointer; margin-bottom: 12px; position: relative; transition: .2s; }
.menu-card:hover{ transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0,0,0,0.08); }
.menu-card img { width: 75px; height: 75px; border-radius: 15px; object-fit: cover; }
.menu-card.closed { filter: grayscale(1); opacity: 0.7; }
.menu-card.closed::after { content: "TUTUP"; position: absolute; right: 15px; background: #666; color: white; padding: 2px 8px; border-radius: 5px; font-size: 8px; font-weight: 800; }
.resto-info h4 { font-size: 11px; font-weight: 800; }
.resto-info p { font-size: 9px; color: #777; margin-top: 2px; }

/* ===================================================
   8. GRID PRODUK / MENU MAKANAN
=================================================== */
.submenu-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; padding: 8px; padding-top: 10px;}
.grid-item { background: white; border-radius: 18px; padding: 10px; text-align: center; border: 1px solid #f1f5f9; box-shadow: var(--shadow); transition: .2s; }
.grid-item:active{ transform: scale(0.96); }
.grid-item img { width: 100%; height: 85px; object-fit: cover; border-radius: 12px; margin-bottom: 8px; }
.grid-item h5 { font-size: 7.5px; font-weight: 600; margin-bottom: 3px; height: 22px; overflow: hidden; line-height: 1.2; }
.grid-item p, .grid-item .price { font-size: 10px !important; margin-bottom: 3px !important; }
.btn-add { background: var(--primary-teal); color: white; border: none; width: 100%; padding: 4px 0; border-radius: 8px; font-size: 8px; font-weight: 800; cursor: pointer; transition: .2s; }
.btn-add:active{ transform: scale(0.95); }
.fly-item { position: fixed; width: 40px; height: 40px; border-radius: 8px; object-fit: cover; z-index: 9999; pointer-events: none; transition: all 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55); }
/* ===================================================
   9. FORM, INPUT, BUTTON
=================================================== */
.input-box { width: 100%; padding: 12px 14px; border-radius: 12px; border: 1.5px solid #e0e0e0; font-size: 11px; margin-bottom: 12px; outline: none; background: #fafafa; transition: .2s; }
.input-box:focus{ border-color: var(--primary-teal); background: #fff; box-shadow: 0 0 0 3px rgba(0,168,181,0.1); }
.note-area { width: 100%; padding: 12px 14px; border-radius: 12px; border: 1.5px solid #e0e0e0; font-size: 11px; min-height: 60px; outline: none; background: #fafafa; font-family: 'Plus Jakarta Sans', sans-serif; }
.btn-primary { background: linear-gradient(135deg, var(--primary-teal), #008b94); color: white; width: 100%; border: none; padding: 14px; border-radius: 14px; font-weight: 800; cursor: pointer; font-size: 11px; box-shadow: 0 8px 20px rgba(0,168,181,0.25); transition: .2s; }
.btn-primary:active{ transform: scale(0.97); }
.sort-btn { flex: 1; padding: 8px; border: 1.5px solid var(--primary-teal); background: white; color: var(--primary-teal); border-radius: 12px; font-size: 10px; font-weight: 700; transition: .2s; }
.sort-btn.active { background: var(--primary-teal); color: white; }

/* ===================================================
   10. PROFIL & ORDER
=================================================== */
.profile-header { background: linear-gradient(135deg, var(--primary-teal), #008b94); margin: -20px 0 0; padding: 30px 20px 60px; border-radius: 0 0 30px 30px; text-align: center; width: 100%;}
.profile-avatar { width: 80px; height: 80px; background: white; border-radius: 50%; margin: 0 auto 10px; display: flex; align-items: center; justify-content: center; font-size: 32px; color: var(--primary-teal); box-shadow: 0 4px 15px rgba(0,0,0,0.15); }
.profile-card { background: white; border-radius: 20px; padding: 20px; margin: -40px 0 0; position: relative; z-index: 2; box-shadow: var(--shadow); }
.stat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 15px 0 25px; }
.stat-card { background: white; border-radius: 15px; padding: 15px 10px; text-align: center; box-shadow: var(--shadow); }
.stat-card h3 { font-size: 14px; font-weight: 800; margin-bottom: 4px; color: var(--primary-teal); }
.stat-card p { font-size: 9px; color: #666; font-weight: 600; }
.section-title { font-weight: 800; font-size: 11px; margin-bottom: 12px; margin-top:35px; }
.order-card { background: white; border-radius: 15px; padding: 12px; margin-bottom: 10px; border: 1px solid #eee; }
.order-top { display: flex; justify-content: space-between; margin-bottom: 6px; font-size: 10px; }
/* STATUS WARNA RIWAYAT */
.status-baru{ background:#e5e7eb; color:#374151; padding:3px 8px; border-radius:6px; font-size:10px; }
.status-diproses{ background:#fde68a; color:#92400e; padding:3px 8px; border-radius:6px; font-size:10px; }
.status-selesai{ background:#a7f3d0; color:#065f46; padding:3px 8px; border-radius:6px; font-size:10px; }
/* ===================================================
   11. BOTTOM NAV
=================================================== */
.bottom-nav { 
  position: fixed !important; bottom: 0 !important; left: 0 !important; right: 0 !important;
  width: 100% !important; max-width: 480px !important; margin: 0 auto !important;
  background: var(--primary-teal); height: 75px; display: flex; justify-content: space-around; align-items: center; 
  border-radius: 25px 25px 0 0; box-shadow: 0 -5px 20px rgba(0, 168, 181, 0.25);
  z-index: 99997 !important; backdrop-filter: blur(10px); border-top: 1px solid rgba(255,255,255,0.1);
}
.nav-item { display: flex; flex-direction: column; align-items: center; color: rgba(255,255,255,0.65); font-size: 8px; font-weight: 700; cursor: pointer; position: relative; transition: .25s ease; padding-top: 5px; }
.nav-item i { font-size: 16px; margin-bottom: 4px; transition: .25s ease; }
.nav-item.active { color: white; transform: translateY(-5px); }
.nav-item.active i { transform: scale(1.1); }
.nav-item.active::before { content: ''; position: absolute; top: 0; width: 30px; height: 3px; background: white; border-radius: 0 0 10px 10px; }

/* ===================================================
   12. QRIS MODAL / POPUP BAYAR
=================================================== */
#qrisBox { 
    position: fixed !important; bottom: -100% !important; left: 0 !important; right: 0 !important;
    width: 100% !important; max-width: 480px !important; margin: 0 auto !important;
    z-index: 99999 !important; text-align: center; background: white !important;
    padding: 15px 20px 25px 20px !important; border-radius: 25px 25px 0 0 !important;
    box-shadow: 0 -8px 30px rgba(0,0,0,0.25) !important;
    transition: bottom 0.4s cubic-bezier(0.25, 1, 0.5, 1) !important;
    visibility: hidden; opacity: 0; font-size: 11px;
}
#qrisBox.active { bottom: 80px !important; visibility: visible; opacity: 1; }
#qrisOverlay { z-index: 99998 !important; }

/* ===================================================
   13. INFO BOX & TOGGLE
=================================================== */
.info-box { background: #fffbe6; border: 1px solid #ffe58f; padding: 15px; border-radius: 15px; margin-top: 30px; display: flex; gap: 12px; }
.info-box i { color: #faad14; }
.info-box p { font-size: 9px; color: #856404; line-height: 1.5; }
.info-toggle {
    width: 100%; background: white; border: 1.5px solid #008444; border-radius: 14px;
    padding: 12px 14px; display: flex; align-items: center; gap: 10px;
    font-size: 11px; font-weight: 800; color: var(--text-dark); cursor: pointer;
}
body.yellow-mode.info-toggle i:first-child { color: black; }
#infoArrow { margin-left: auto; transition: transform 0.3s; }
#infoArrow.rotate { transform: rotate(180deg); }
.info-content { margin-top: 3px; }
.info-content .info-box { background: #fafafa; padding: 9px 12px; font-size: 9px; color: black; line-height: 1.4; margin: 0 !important; border-radius: 0; }
.info-content .info-box p { margin: 0; color: black; }
.info-content .info-box:first-child { border-radius: 10px 10px 0 0; }
.info-content .info-box + .info-box { margin-top: -1px !important; border-radius: 0 0 10px 10px; }
body.yellow-mode .info-box {background: white ;}

/* ===================================================
   14. JASA - BANNER, GRID, CARD
=================================================== */
.jasa-galeri-grid { 
  display: grid; 
  grid-template-columns: 2fr 1fr; 
  grid-template-rows: 100px 100px; 
  gap: 4px; 
  padding: 0; 
  overflow:hidden;
  border-radius:12px;
}
.jasa-galeri-grid img { 
  width: 100%; 
  height: 100%; 
  object-fit: cover; 
  display:block;
}
.jasa-galeri-grid img:nth-child(1) { grid-row: 1 / 3; border-radius: 12px 0 0 12px; }
.jasa-galeri-grid img:nth-child(2) { border-radius: 0 12px 0 0; }
.jasa-galeri-grid img:nth-child(3) { border-radius: 0 0 12px 0; }

.jasa-banner { 
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  background: linear-gradient(135deg, #0b5f52, #149180);
  margin: 0 16px 20px 16px; 
  border-radius: 16px; 
  padding:12px;
  cursor: pointer; 
  box-shadow: 0 4px 12px rgba(13,110,94,0.25); 
  overflow:hidden;
  border: none;
}
.jasa-banner img { 
  width: 90px; 
  height: 90px; 
  object-fit: cover; 
  display: block; 
  border-radius:12px;
  flex-shrink:0;
  order:2;
  border:2px solid rgba(255,255,255,0.3);
}
.jasa-text { 
  position: static; 
  background: none; 
  padding: 2px;
  flex:1;
  order:1;
}
.jasa-text h4 { font-weight: 800; font-size: 11px; margin:0 0 4px 0; color:#fff; line-height:1.2; }
.jasa-text p { font-size: 9px; margin: 0; color:rgba(255,255,255,0.85); line-height:1.35; }
.jasa-text span, .jasa-text .lihat-toko{ display:inline-block; margin-top:8px; font-size:9px; font-weight:700; color:#fff; background:rgba(255,255,255,0.2); padding:4px 10px; border-radius:20px; }
.jasa-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media(min-width: 600px){ .jasa-grid { grid-template-columns: repeat(3, 1fr); } }
.jasa-card { box-shadow: var(--shadow); background: white; border-radius: 16px; overflow: hidden; border:1px solid #f0f0f0; }
.jasa-card img { width: 100%; height: 120px; object-fit: cover; display:block; }
.jasa-info { padding: 10px; }
.jasa-info h5 { font-size: 10px; font-weight: 800; margin: 0 0 4px 0; }
.jasa-info p { font-size: 9px; color: #666; margin: 0 0 10px 0; height: 30px; overflow: hidden; }
.btn-wa-jasa { width: 100%; background: #00A8B5; color: white; border: none; padding: 8px; border-radius: 8px; font-weight: 700; font-size: 9px; cursor: pointer; }

/* ===================================================
   15. THEME TOGGLE
=================================================== */
.theme-toggle { cursor: pointer; font-size: 14px; color: white; width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,0.15); display: flex; align-items: center; justify-content: center; transition: .3s; }
.theme-toggle:active { transform: scale(0.9); background: rgba(255,255,255,0.25); }

/* ===================================================
   16. TEMA KUNING BATUJAJAR
=================================================== */
body.yellow-mode { --primary-teal: #00BFA6; --primary-green: #004D40; --bg-body: #F5F5F5; background-color: #F5F5F5; color: #000; }
body.yellow-mode .header-wrapper { background: linear-gradient(135deg, #004D40 0%, #00BFA6 100%) !important; border-radius: 0 0 25px 25px !important; }
body.yellow-mode .header-wrapper * { color: #FFFFFF !important; }
body.yellow-mode .bottom-nav { background: linear-gradient(135deg, #004D40 0%, #00BFA6 100%) !important; border-radius: 25px 25px 0 0 !important; }
body.yellow-mode .nav-item { color: #B2DFDB !important; }
body.yellow-mode .nav-item.active, body.yellow-mode .nav-item i { color: #FFFFFF !important; }
body.yellow-mode .btn-add, body.yellow-mode .btn-detail, body.yellow-mode .info-toggle, body.yellow-mode .btn, body.yellow-mode #btnBayar, body.yellow-mode #btnWa, body.yellow-mode .btn-primary {
    background: linear-gradient(135deg, #004D40 0%, #00BFA6 100%) !important; color: #FFFFFF !important; border: none !important; font-weight: 800 !important; border-radius: 12px !important; box-shadow: 0 4px 10px rgba(0,191,166,0.3) !important;
}
body.yellow-mode .service-item .icon-bg { background: linear-gradient(135deg, #004D40 0%, #00BFA6 100%) !important; }
body.yellow-mode .service-item .icon-bg i { color: #FFFFFF !important; }
body.yellow-mode .section-title, body.yellow-mode h3 { color: #004D40 !important; font-weight: 800 !important; }
body.yellow-mode .btn-wa-jasa { width: 100%; background: linear-gradient(135deg, #004D40 0%, #00BFA6 100%); color: white; border: none; padding: 8px; border-radius: 8px; font-weight: 700; font-size: 9px; cursor: pointer; }

/* ===== PANDUAN & INFO - BATUJAJAR APP ===== */
/* Judul utama - GEDE */
.info-wrapper{padding:12px}
.info-toggle{
  width:100%;
  background:#00A8B5;
  color:white;
  border:none;
  border-radius:14px;
  padding:16px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  font-weight:700;
  font-size:12px;
  box-shadow:0 3px 10px rgba(0,0,0,.15);
  cursor:pointer
}
.info-content{
  display:none;
  margin-top:10px;
  padding-left:8px; /* agak masuk ke dalem */
  border-left:3px solid #e2e8f0;
  margin-left:8px;
}

/* Sub panduan - KECIL */
.guide-item{
  background:white;
  border-radius:12px;
  margin-bottom:8px;
  overflow:hidden;
  border:1px solid #e2e8f0;
  box-shadow:0 1px 4px rgba(0,0,0,.04);
}
.guide-head{
  width:100%;
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:11px 14px;
  background:white;
  border:none;
  font-weight:600;
  font-size:11px; /* lebih kecil */
  color:#334155;
  cursor:pointer;
}
.guide-head i{font-size:11px; transition:.3s}
.guide-head.active i{transform:rotate(180deg)}
.guide-body{display:none;padding:0 8px 8px;background:#f8fafc}
.step{
  background:white;
  border-radius:16px;
  overflow:hidden;
  margin-top:10px;
  border:1px solid #e2e8f0;
  display:flex;
  flex-direction:column;
  align-items:center;
}
.step img{
  width: 75%;
  height: auto;
  max-height: 420px;
  object-fit: contain;
  background: white;
  display: block;
  margin: 10px auto 0;
}
.step .txt{
  width:100%;
  padding:12px 14px;
  text-align:left;
  background:white;
  border-top:1px solid #f1f5f9;
}
.step b{font-size:13px; line-height:1.3}
.step p{font-size:11px; color:#64748b; margin-top:2px}

#syaratAplikasi{
  position:fixed; inset:0; z-index:999999;
  background:#00A8B5; overflow-y:auto; padding:20px;
  font-family:Arial, sans-serif;
}
.syarat-box{max-width:500px; margin:0 auto;}
.syarat-box h1{font-size:26px; font-weight:900; text-align:center; margin:0; line-height:1.2;}
.sub{text-align:center; font-size:9px; color:#666; margin:5px 0 15px 0; font-weight:none;}
.divider{height:2px; background:#000; margin:10px 0;}
.syarat-box h2{font-size:14px; font-weight:900; margin:20px 0 8px 0;}
.syarat-box p, .syarat-box li{font-size:11px; line-height:1.6; color:#111;}
.syarat-box ul{padding-left:18px; margin:10px 0;}
.syarat-list{background:#f9f9f9; border:1px solid #ddd; border-radius:10px; padding:12px 14px; margin:10px 0;}
.syarat-list p{margin:6px 0; font-size:11px;}
.cek-area{background:#fffbe6; border:2px solid #000; border-radius:12px; padding:14px; margin:20px 0;}
.cek-area label{display:flex; gap:12px; align-items:flex-start; cursor:pointer;}
#cekSyarat{width:22px; height:22px; margin-top:2px; accent-color:#16a34a;}
.cek-area span{font-size:12px; line-height:1.4;}
#btnMasukApp{width:100%; padding:16px; border:none; border-radius:14px; font-size:14px; font-weight:900; background:#9ca3af; color:#fff; opacity:0.5; transition:0.2s;}
#btnMasukApp.active{background:#00A8B5; opacity:1;}
.note{text-align:center; font-size:5px; color:#999; margin-top:10px;}

