/* Playable Krafto iOS Simulator Styles */
.sim-section { padding: 72px 0; }
.sim-grid {
  background: linear-gradient(180deg, rgba(21,26,39,0.96), rgba(11,14,22,0.99));
  border: 1px solid rgba(255,255,255,0.11);
  border-radius: 30px;
  padding: 34px;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 36px;
  align-items: center;
  box-shadow: 0 30px 80px rgba(0,0,0,0.45);
}

/* Quest Tracker Panel */
.quest-header {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin-bottom: 14px;
}
.quest-score {
  background: rgba(16,185,129,0.15); border: 1px solid rgba(16,185,129,0.35);
  color: #6EE7B7; font-size: 12.5px; font-weight: 800; padding: 5px 12px; border-radius: 999px;
}
.quest-progress-bar {
  height: 7px; background: rgba(255,255,255,0.08); border-radius: 999px; overflow: hidden; margin-bottom: 18px;
}
.quest-progress-fill {
  height: 100%; width: 0%; background: linear-gradient(90deg, #D96543, #F79400, #10B981);
  transition: width 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.quest-list { display: grid; gap: 11px; }
.quest-card {
  width: 100%; text-align: left; cursor: pointer;
  background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.09);
  border-radius: 16px; padding: 14px 16px; color: #F8FAFC;
  display: flex; align-items: flex-start; gap: 12px;
  transition: all 0.18s ease;
}
.quest-card:hover { background: rgba(255,255,255,0.06); transform: translateX(3px); }
.quest-card.active {
  background: linear-gradient(135deg, rgba(217,101,67,0.20), rgba(247,148,0,0.09));
  border-color: #F79400;
  box-shadow: 0 10px 26px rgba(217,101,67,0.18);
}
.quest-card.done { border-color: rgba(16,185,129,0.45); }
.q-check {
  flex-shrink: 0; width: 26px; height: 26px; border-radius: 8px;
  background: rgba(255,255,255,0.08); color: #94A3B8;
  display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 13px; margin-top: 2px;
}
.quest-card.active .q-check { background: #F79400; color: #fff; }
.quest-card.done .q-check { background: #10B981; color: #fff; }
.q-title { font-size: 15px; font-weight: 700; margin-bottom: 3px; display: block; }
.q-desc { font-size: 13px; color: #94A3B8; line-height: 1.42; display: block; }
.quest-card.active .q-title { color: #FDE68A; }

.quest-reward {
  margin-top: 16px; padding: 16px; border-radius: 16px;
  background: linear-gradient(135deg, rgba(16,185,129,0.16), rgba(247,148,0,0.10));
  border: 1px solid rgba(16,185,129,0.4);
  display: none; animation: popUp 0.35s ease;
}
.quest-reward.show { display: block; }

/* Realistic iPhone 16 Pro Shell */
.sim-phone-col { display: flex; flex-direction: column; align-items: center; }
.iphone-shell {
  width: 342px; height: 700px;
  background: #1C1F26;
  border-radius: 50px;
  padding: 12px;
  border: 2.5px solid #474D5E;
  box-shadow: 0 34px 80px rgba(0,0,0,0.7), inset 0 0 0 2px #0B0D13;
  position: relative;
  user-select: none;
}
.iphone-viewport {
  width: 100%; height: 100%;
  background: #F2F2F7;
  border-radius: 38px;
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
  color: #111827;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", sans-serif;
}

/* Status Bar + Dynamic Island */
.ios-statusbar {
  height: 46px; padding: 12px 22px 0;
  display: flex; align-items: center; justify-content: space-between;
  font-size: 12px; font-weight: 700; color: #111827;
  background: #F2F2F7; flex-shrink: 0; position: relative; z-index: 20;
}
.dynamic-island {
  position: absolute; top: 10px; left: 50%; transform: translateX(-50%);
  min-width: 96px; height: 26px; padding: 0 10px;
  background: #000; color: #fff; border-radius: 999px;
  display: flex; align-items: center; justify-content: center; gap: 6px;
  font-size: 10.5px; font-weight: 700; white-space: nowrap;
  transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  z-index: 30;
}
.dynamic-island.expanded {
  min-width: 215px; height: 32px; padding: 0 12px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.35);
}
.di-dot { width: 7px; height: 7px; border-radius: 999px; background: #F79400; animation: pulseDot 1.2s infinite; }

/* App Viewport Content */
.ios-body {
  flex: 1; overflow-y: auto; overflow-x: hidden;
  padding: 6px 14px 86px; position: relative;
}
.ios-body::-webkit-scrollbar { width: 0; }
.ios-title-row {
  display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px;
}
.ios-h1 { font-size: 21px; font-weight: 800; letter-spacing: -0.4px; color: #111827; }
.ios-sub { font-size: 11.5px; color: #6B7280; margin-top: 1px; }
.ios-pill-sm {
  font-size: 10px; font-weight: 700; padding: 4px 8px; border-radius: 999px;
  background: rgba(217,101,67,0.12); color: #C2410C;
}

/* SwiftUI POS Cards */
.pos-cat-row { display: flex; gap: 6px; overflow-x: auto; margin-bottom: 10px; padding-bottom: 2px; }
.pos-cat {
  font-size: 11px; font-weight: 600; padding: 5px 10px; border-radius: 999px;
  background: #fff; color: #4B5563; border: 1px solid #E5E7EB; cursor: pointer; white-space: nowrap;
}
.pos-cat.active { background: #D96543; color: #fff; border-color: #D96543; }
.pos-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.pos-card {
  background: #fff; border-radius: 14px; padding: 8px; position: relative;
  border: 1.5px solid transparent; box-shadow: 0 2px 6px rgba(0,0,0,0.04);
  cursor: pointer; transition: transform 0.12s cubic-bezier(0.34, 1.56, 0.64, 1), border-color 0.15s;
}
.pos-card:active { transform: scale(0.94); }
.pos-card.selected { border-color: #D96543; }
.pos-thumb {
  height: 62px; border-radius: 10px; background: #F3F4F6;
  display: flex; align-items: center; justify-content: center; font-size: 26px; margin-bottom: 6px; position: relative;
}
.pos-tag {
  position: absolute; top: 5px; left: 5px; font-size: 8.5px; font-weight: 800;
  padding: 2px 6px; border-radius: 999px; color: #fff;
}
.pos-qty-badge {
  position: absolute; top: -6px; right: -5px;
  width: 22px; height: 22px; border-radius: 999px; background: #D96543; color: #fff;
  font-size: 11px; font-weight: 800; display: none; align-items: center; justify-content: center;
  box-shadow: 0 3px 8px rgba(217,101,67,0.4); animation: bouncePop 0.25s ease;
}
.pos-qty-badge.show { display: flex; }
.pos-name { font-size: 12px; font-weight: 700; color: #111827; line-height: 1.25; }
.pos-price { font-size: 12px; font-weight: 800; color: #D96543; margin-top: 2px; }
.pos-margin { font-size: 9.5px; font-weight: 700; color: #059669; }

/* Floating POS Cart Bar (Exact match to POSFloatingCartBarView) */
.pos-float-bar {
  position: absolute; left: 10px; right: 10px; bottom: 68px; z-index: 15;
  display: flex; gap: 7px; transform: translateY(120px); opacity: 0;
  transition: all 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}
.pos-float-bar.visible { transform: translateY(0); opacity: 1; }
.btn-hold {
  background: #8E8E93; color: #fff; border: none; border-radius: 15px;
  padding: 0 12px; font-size: 11.5px; font-weight: 700; cursor: pointer;
}
.btn-pay-bar {
  flex: 1; background: #D96543; color: #fff; border: none; border-radius: 15px;
  padding: 8px 13px; display: flex; align-items: center; justify-content: space-between;
  cursor: pointer; box-shadow: 0 6px 18px rgba(217,101,67,0.4);
}
.btn-pay-bar:active { transform: scale(0.97); }

/* Dapur AI Scan Card */
.receipt-paper {
  background: #fff; border: 1px dashed #CBD5E1; border-radius: 14px; padding: 12px;
  position: relative; overflow: hidden; margin-bottom: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}
.scan-laser {
  position: absolute; left: 0; right: 0; height: 4px; top: -10px;
  background: linear-gradient(90deg, transparent, #F79400, #D96543, transparent);
  box-shadow: 0 0 14px #F79400; display: none;
}
.scan-laser.scanning { display: block; animation: laserSweep 1.15s ease-in-out forwards; }
.ai-result-card {
  background: #fff; border-radius: 14px; padding: 11px; border: 1.5px solid #F79400;
  margin-bottom: 10px; animation: popUp 0.3s ease;
}
.ing-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 6px 0; border-bottom: 1px solid #F3F4F6; font-size: 11.5px;
}
.ing-row:last-child { border: none; }

/* Agenda PO Card */
.po-card {
  background: #fff; border-radius: 14px; padding: 11px 12px; margin-bottom: 10px;
  border-left: 4px solid #F59E0B; box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
.po-card.ready { border-left-color: #3B82F6; }
.po-card.paid { border-left-color: #10B981; }
.ios-btn-full {
  width: 100%; border: none; border-radius: 12px; padding: 9px 12px;
  font-size: 12px; font-weight: 700; cursor: pointer; margin-top: 7px;
  transition: transform 0.12s;
}
.ios-btn-full:active { transform: scale(0.97); }
.ios-btn-terra { background: #D96543; color: #fff; }
.ios-btn-wa { background: #16A34A; color: #fff; }
.ios-btn-dark { background: #1F2937; color: #fff; }

/* Bon Kuning Card (Exact match to ConsignmentDropPaperCardView) */
.bon-kuning {
  background: #FFFBE0; border: 1.5px solid rgba(245, 158, 11, 0.45);
  border-radius: 14px; padding: 13px; box-shadow: 0 4px 12px rgba(0,0,0,0.06);
  color: #451A03;
}
.bon-divider { border-top: 1px dashed rgba(217, 119, 6, 0.4); margin: 8px 0; }
.stepper { display: inline-flex; align-items: center; gap: 6px; background: rgba(255,255,255,0.75); border-radius: 8px; padding: 2px 6px; border: 1px solid rgba(217,119,6,0.3); }
.stepper button {
  width: 22px; height: 22px; border-radius: 6px; border: none;
  background: #D97706; color: #fff; font-weight: 800; cursor: pointer; font-size: 13px;
}

/* Beranda 3 Kantong */
.pocket-card {
  background: #fff; border-radius: 14px; padding: 10px 12px; margin-bottom: 8px;
  display: flex; justify-content: space-between; align-items: center;
  box-shadow: 0 2px 6px rgba(0,0,0,0.04);
}
.security-badge-ios {
  background: #ECFDF5; border: 1px solid #A7F3D0; border-radius: 12px; padding: 9px 11px;
  font-size: 10.5px; color: #065F46; margin-top: 8px; line-height: 1.4;
}

/* Bottom Sheet inside iPhone */
.ios-sheet-backdrop {
  position: absolute; inset: 0; background: rgba(0,0,0,0.45);
  display: none; align-items: flex-end; z-index: 40;
}
.ios-sheet-backdrop.open { display: flex; }
.ios-sheet {
  width: 100%; background: #fff; border-radius: 22px 22px 0 0;
  padding: 14px 16px 24px; animation: slideUpSheet 0.25s cubic-bezier(0.22, 1, 0.36, 1);
  max-height: 82%; overflow-y: auto;
}
.sheet-handle { width: 38px; height: 4px; background: #D1D5DB; border-radius: 99px; margin: 0 auto 10px; }

/* Floating "+Rp" Game Toast */
.coin-toast {
  position: absolute; left: 50%; top: 52%; transform: translate(-50%, 0);
  background: #10B981; color: #fff; font-size: 12.5px; font-weight: 800;
  padding: 7px 14px; border-radius: 999px; box-shadow: 0 8px 22px rgba(16,185,129,0.45);
  pointer-events: none; z-index: 60; opacity: 0;
}
.coin-toast.fly { animation: coinFloat 1.45s cubic-bezier(0.22, 1, 0.36, 1) forwards; }

/* 5 Native iOS Bottom Tabs (Exact RootTabView labels) */
.ios-tabbar {
  position: absolute; left: 0; right: 0; bottom: 0; height: 60px;
  background: rgba(255,255,255,0.95); backdrop-filter: blur(10px);
  border-top: 1px solid #E5E7EB;
  display: grid; grid-template-columns: repeat(5, 1fr);
  padding-bottom: 6px; z-index: 25;
}
.ios-tab {
  background: none; border: none; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  color: #8E8E93; font-size: 9.5px; font-weight: 600;
}
.ios-tab .t-ico { font-size: 16px; line-height: 1; }
.ios-tab.active { color: #D96543; font-weight: 800; }

/* Ecosystem 4 Pillars Grid */
.eco-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(245px, 1fr)); gap: 18px; }
.eco-card {
  background: #151A27; border: 1px solid rgba(255,255,255,0.09);
  border-radius: 20px; padding: 22px; transition: transform 0.16s ease, border-color 0.16s ease;
}
.eco-card:hover { transform: translateY(-3px); border-color: rgba(247,148,0,0.45); }
.eco-icon {
  width: 44px; height: 44px; border-radius: 12px;
  background: rgba(217,101,67,0.16); border: 1px solid rgba(247,148,0,0.3);
  display: flex; align-items: center; justify-content: center; font-size: 21px; margin-bottom: 14px;
}
.eco-card h3 { font-size: 17px; margin-bottom: 7px; color: #fff; }
.eco-card p { font-size: 13.5px; color: #94A3B8; line-height: 1.55; }

@keyframes bouncePop {
  0% { transform: scale(0.4); }
  65% { transform: scale(1.25); }
  100% { transform: scale(1); }
}
@keyframes popUp {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes slideUpSheet {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}
@keyframes laserSweep {
  0% { top: 0; opacity: 1; }
  50% { top: 92%; opacity: 1; }
  100% { top: 0; opacity: 0; }
}
@keyframes coinFloat {
  0% { opacity: 0; transform: translate(-50%, 10px) scale(0.85); }
  20% { opacity: 1; transform: translate(-50%, -12px) scale(1); }
  80% { opacity: 1; transform: translate(-50%, -44px) scale(1); }
  100% { opacity: 0; transform: translate(-50%, -62px) scale(0.95); }
}
@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.45; transform: scale(0.8); }
}

@media (max-width: 920px) {
  .sim-grid { grid-template-columns: 1fr; padding: 22px 16px; }
  .iphone-shell { width: 326px; height: 670px; }
}
