:root {
  --bg-dark: #050509;
  --glass-bg: rgba(255, 255, 255, 0.03);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-shine: rgba(255, 255, 255, 0.15);
  --accent-pink: #ff2a7f;
  --accent-teal: #1cc7c7;
  --text-main: #ffffff;
  --text-muted: #a0a0b0;
  --shadow-soft: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

/* BASE RESET */
body {
  margin: 0;
  background: var(--bg-dark);
  color: var(--text-main);
  font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, Roboto, sans-serif;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  background-image: 
    radial-gradient(circle at 15% 50%, rgba(255, 42, 127, 0.08), transparent 25%),
    radial-gradient(circle at 85% 30%, rgba(28, 199, 199, 0.08), transparent 25%);
  background-attachment: fixed;
}

.bg-glow, .bg-glow-2 {
  position: fixed; z-index: -1;
  width: 500px; height: 500px;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.4;
  pointer-events: none;
  animation: floatOrb 10s ease-in-out infinite alternate;
}
.bg-glow { background: radial-gradient(circle, var(--accent-pink) 0%, transparent 70%); top: -100px; left: -100px; }
.bg-glow-2 { background: radial-gradient(circle, var(--accent-teal) 0%, transparent 70%); bottom: -100px; right: -100px; animation-delay: 2s; }

@keyframes floatOrb {
  0% { transform: translate(0, 0); }
  100% { transform: translate(30px, 20px); }
}

.app { max-width: 1100px; margin: 0 auto; padding: 20px; position: relative; z-index: 1; }

/* UTILS GLASSMORPHISM */
.card-glass {
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-top: 1px solid var(--glass-shine);
  border-radius: 20px;
  padding: 24px;
  box-shadow: var(--shadow-soft);
}

.full-width { width: 100%; }

/* HEADER */
.app-header {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 30px; gap: 20px;
}
.logo-block { display: flex; align-items: center; gap: 15px; }
.logo-img {
  width: 55px; height: 55px; border-radius: 50%; object-fit: cover;
  border: 2px solid rgba(255,255,255,0.1);
  box-shadow: 0 0 20px rgba(28, 199, 199, 0.2);
}

.logo-text { display: flex; flex-direction: column; justify-content: center; }
.logo-top { font-size: 11px; letter-spacing: 2px; color: var(--accent-teal); font-weight: 600; text-transform: uppercase; }
.logo-main { 
  font-size: 20px; font-weight: 800; letter-spacing: 0.5px; color: #fff;
  display: flex; align-items: center; gap: 6px;
}

/* VERIFIED BADGE (REVISI BARU) */
.verified-badge {
    width: 18px; height: 18px;
    margin-left: 5px;
    vertical-align: middle;
}

.header-right { text-align: right; }
.brand-title h1 { margin: 0 0 5px 0; font-size: 26px; font-weight: 800; background: linear-gradient(to right, #fff, #ccc); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.brand-title p { margin: 0; font-size: 13px; color: var(--text-muted); letter-spacing: 0.5px; }

/* NAV */
.main-nav { margin-top: 15px; display: flex; gap: 10px; justify-content: flex-end; }
.nav-link {
  color: #ccc; text-decoration: none; font-size: 14px; font-weight: 500;
  padding: 8px 20px; border-radius: 30px; transition: 0.3s;
  border: 1px solid rgba(255,255,255,0.05); background: rgba(0,0,0,0.2);
}
.nav-link:hover, .nav-link.active {
  color: #fff;
  border-color: var(--accent-pink);
  background: rgba(255,42,127,0.15);
  box-shadow: 0 0 15px rgba(255,42,127,0.3);
}

/* STATS PANEL */
.stats-panel { 
    margin-bottom: 30px; 
    display: flex; justify-content: space-between; align-items: center; 
}
.stats-header h2 { margin: 0 0 5px 0; font-size: 18px; }
.trusted { margin: 0; color: var(--accent-teal); font-size: 12px; font-weight: 600; }

.stats-grid { display: flex; gap: 15px; flex-wrap: wrap; }
.stat-card {
  background: rgba(255,255,255,0.03);
  padding: 12px 20px; border-radius: 14px;
  display: flex; flex-direction: column; align-items: center;
  min-width: 110px; border: 1px solid rgba(255,255,255,0.05);
  transition: transform 0.2s;
}
.stat-card:hover { transform: translateY(-3px); background: rgba(255,255,255,0.05); }
.stat-label { font-size: 11px; color: var(--text-muted); margin-bottom: 4px; }
.stat-value { font-size: 18px; font-weight: 700; color: #fff; }
.stat-refresh { font-size: 10px; color: #666; align-self: flex-end; white-space: nowrap;}

/* SHOP LAYOUT */
.shop-layout { 
    display: flex; flex-direction: column; gap: 30px; 
}

/* PRODUCTS LIST */
.products-panel h2 { margin-top: 0; }
.product-list { 
    display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); 
    gap: 15px; margin-top: 20px;
}

/* Modern Glass Product Card */
.product-card {
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 16px; padding: 18px;
  display: flex; flex-direction: column; justify-content: space-between; gap: 12px;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  position: relative; overflow: hidden;
}
.product-card::before {
    content: ''; position: absolute; top: 0; left: -100%; width: 50%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.05), transparent);
    transform: skewX(-25deg); transition: 0.5s; pointer-events: none;
}
.product-card:hover { 
    border-color: rgba(255,255,255,0.2); 
    background: rgba(255,255,255,0.04); 
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}
.product-card:hover::before { left: 150%; }

.pc-head { display: flex; justify-content: space-between; align-items: flex-start; }
.pc-title { font-weight: 700; font-size: 16px; color: #fff; line-height: 1.3; }
.pc-variant { font-size: 12px; color: var(--accent-pink); margin-top: 4px; font-weight: 600; letter-spacing: 0.5px; }
.pc-price { font-weight: 800; color: var(--accent-teal); font-size: 16px; text-shadow: 0 0 10px rgba(28,199,199,0.3); }

/* Description with Toggle */
.pc-desc-box { position: relative; }
.pc-desc { 
    font-size: 13px; color: #ccc; line-height: 1.5; 
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
    transition: all 0.3s ease;
}
.pc-desc.expanded { -webkit-line-clamp: unset; display: block; }

.pc-readmore {
    font-size: 11px; color: var(--text-muted); cursor: pointer; 
    margin-top: 4px; text-decoration: underline; display: inline-block;
}
.pc-readmore:hover { color: #fff; }

.pc-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 5px; padding-top: 10px; border-top: 1px solid rgba(255,255,255,0.05); }
.pc-stock { font-size: 11px; color: #888; background: rgba(0,0,0,0.3); padding: 4px 10px; border-radius: 6px; }

.btn-buy {
  background: rgba(255,42,127,0.1); border: 1px solid var(--accent-pink); color: var(--accent-pink);
  padding: 8px 20px; border-radius: 25px; cursor: pointer; font-size: 12px; font-weight: 600;
  transition: 0.3s;
}
.btn-buy:hover { background: var(--accent-pink); color: #fff; box-shadow: 0 0 15px var(--accent-pink); }

/* FLOW CONTAINER (HIDDEN INITIALLY) */
.flow-container {
    opacity: 0; max-height: 0; overflow: hidden; transform: translateY(20px);
    transition: all 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
}
.flow-container.visible {
    opacity: 1; max-height: 2000px; transform: translateY(0);
    margin-top: 20px;
}

/* FLOW STEPS */
.steps-indicator { display: flex; gap: 8px; margin-bottom: 24px; overflow-x: auto; padding-bottom: 8px; scrollbar-width: none; }
.step-dot { 
    font-size: 12px; padding: 8px 16px; background: rgba(255,255,255,0.05); 
    border-radius: 20px; color: #777; white-space: nowrap; border: 1px solid transparent; 
    transition: 0.3s;
}
.step-dot.active { 
    background: var(--accent-pink); color: #fff; font-weight: 700; 
    box-shadow: 0 4px 15px rgba(255,42,127,0.4); border-color: transparent;
}
.step-dot.done { color: var(--accent-teal); border-color: var(--accent-teal); background: rgba(28,199,199,0.1); }

.step-card { display: none; animation: fadeIn 0.4s ease; }
.step-card.active { display: block; }
@keyframes fadeIn { from { opacity: 0; transform: scale(0.98); } to { opacity: 1; transform: scale(1); } }

.highlight { color: var(--accent-teal); font-weight: bold; background: rgba(28,199,199,0.1); padding: 2px 6px; border-radius: 4px; }

/* FORMS GLASS */
.form-grid { display: grid; gap: 16px; }
.form-row { display: flex; flex-direction: column; gap: 8px; }
label { font-size: 13px; color: #ccc; font-weight: 500; margin-left: 4px; }
input, textarea {
  background: rgba(0,0,0,0.3); border: 1px solid rgba(255,255,255,0.1); color: #fff; 
  padding: 14px 16px; border-radius: 12px; font-size: 14px;
  transition: 0.3s;
}
input:focus { border-color: var(--accent-teal); background: rgba(0,0,0,0.5); outline: none; box-shadow: 0 0 15px rgba(28,199,199,0.1); }

/* NOTE DISCLAIMER */
.form-note {
    font-size: 11px;
    color: #a0a0b0;
    background: rgba(255, 255, 255, 0.03);
    border-left: 2px solid var(--accent-teal);
    padding: 8px 10px;
    border-radius: 0 6px 6px 0;
    margin-top: 4px;
    line-height: 1.4;
    display: flex; gap: 6px;
}
.form-note .icon { font-size: 12px; }

.form-actions { display: flex; justify-content: flex-end; gap: 12px; margin-top: 24px; }
.btn-primary { 
    background: linear-gradient(135deg, var(--accent-pink), #e01b6a); 
    border: none; padding: 12px 30px; border-radius: 30px; 
    color: #fff; font-weight: 600; cursor: pointer; font-size: 14px;
    box-shadow: 0 5px 20px rgba(255,42,127,0.3);
    transition: transform 0.2s, box-shadow 0.2s;
}
.btn-primary:hover { box-shadow: 0 8px 25px rgba(255,42,127,0.5); transform: translateY(-2px); }
.btn-primary:active { transform: scale(0.96); }
.btn-secondary { 
    background: transparent; border: 1px solid rgba(255,255,255,0.2); color: #ccc; 
    padding: 12px 24px; border-radius: 30px; cursor: pointer; font-size: 14px; transition: 0.3s;
}
.btn-secondary:hover { border-color: #fff; color: #fff; background: rgba(255,255,255,0.05); }

/* QRIS AREA */
.qris-layout { display: flex; flex-direction: column; align-items: center; gap: 20px; text-align: center; }
.qr-box { 
    width: 240px; height: 240px; background: #fff; padding: 10px; border-radius: 16px;
    box-shadow: 0 0 40px rgba(255,255,255,0.1);
}
.qr-box img { width: 100%; height: 100%; object-fit: contain; }
.alert-box {
    margin-top: 15px; padding: 14px; background: rgba(255,217,102,0.1); 
    border: 1px solid rgba(255,217,102,0.3); color: #ffd966; font-size: 13px; line-height: 1.5; border-radius: 12px;
}
.summary-box { background: rgba(28,199,199,0.05); border-color: rgba(28,199,199,0.2); color: #fff; text-align: left; }
.sb-row { display: flex; justify-content: space-between; margin-bottom: 5px; }
.glass-divider { border: 0; border-top: 1px solid rgba(255,255,255,0.1); margin: 10px 0; }
.buyer-details { font-size: 12px; color: #ccc; line-height: 1.6; }

/* TRACK ORDER UI */
.track-toggles {
    display: flex; gap: 5px; margin-bottom: 25px;
    background: rgba(0,0,0,0.3); padding: 5px; border-radius: 16px; border: 1px solid rgba(255,255,255,0.05);
}
.track-btn {
    flex: 1; background: transparent; border: none; color: #888;
    padding: 12px; border-radius: 12px; cursor: pointer; font-weight: 600; font-size: 13px;
    transition: 0.3s;
}
.track-btn.active {
    background: var(--accent-teal); color: #000; box-shadow: 0 4px 15px rgba(28,199,199,0.3);
}

/* FOOTER BARU */
.app-footer {
    margin-top: 60px;
    background: rgba(0,0,0,0.4);
    border-top: 1px solid rgba(255,255,255,0.05);
    padding: 40px 20px 20px;
}
.footer-content {
    display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 30px;
    max-width: 1000px; margin: 0 auto; margin-bottom: 30px;
}
.footer-col h4 { color: #fff; font-size: 14px; margin: 0 0 15px 0; text-transform: uppercase; letter-spacing: 1px; }
.brand-col .footer-logo { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--accent-pink); margin-bottom: 10px; }
.brand-col p { font-size: 12px; color: #888; line-height: 1.6; }
.links-col, .contact-col { display: flex; flex-direction: column; gap: 10px; }
.links-col a, .social-link { text-decoration: none; font-size: 13px; color: #aaa; transition: 0.2s; }
.links-col a:hover, .social-link:hover { color: var(--accent-teal); transform: translateX(3px); display: inline-block;}
.social-link span { color: #fff; font-weight: 600; margin-right: 5px; }
.footer-bottom { text-align: center; border-top: 1px solid rgba(255,255,255,0.05); padding-top: 20px; font-size: 11px; color: #555; }

/* SUCCESS WRAPPER */
.success-wrapper { text-align: center; padding: 20px 0; }
.success-icon { font-size: 50px; margin-bottom: 15px; animation: bounce 1s infinite; }
.trx-display { background: rgba(255,255,255,0.05); border: 1px dashed rgba(255,255,255,0.1); padding: 10px; border-radius: 8px; margin: 15px 0; }
.succ-msg { font-size: 12px; color: #888; margin-bottom: 0; }
@keyframes bounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* RESPONSIVE */
@media (max-width: 850px) {
    .app { padding: 15px; }
    
    .app-header { flex-direction: column; align-items: flex-start; gap: 20px; }
    .header-right { text-align: left; width: 100%; }
    .main-nav { justify-content: flex-start; overflow-x: auto; width: 100%; padding-bottom: 5px; }
    .nav-link { white-space: nowrap; font-size: 13px; padding: 8px 18px; }

    .stats-panel { flex-direction: column; align-items: flex-start; gap: 20px; }
    .stats-grid { width: 100%; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
    .stat-card { width: auto; }

    .shop-layout { display: block; }
    
    /* Product Grid Mobile: Single Column */
    .product-list { grid-template-columns: 1fr; } 
    
    .form-actions { flex-direction: column-reverse; gap: 10px; }
    .btn-primary, .btn-secondary { width: 100%; text-align: center; }

    /* Footer Responsive */
    .footer-content { grid-template-columns: 1fr; text-align: center; }
    .brand-col { align-items: center; display: flex; flex-direction: column; }
}