/* =========================================================
   EXPRESSBANA — CLEAN CONSISTENT STYLE (OPTIMIZED)
========================================================= */

/* ================= ROOT SYSTEM ================= */
:root {
  --red: #d00000;
  --yellow: #ffc107;
  --green: #198754;
  --black: #000;

  --bg: #f4f6f9;
  --card: #ffffff;
  --text: #111111;
  --border: #e5e7eb;
  --muted: #6b7280;

  --radius: 14px;
  --shadow: 0 6px 18px rgba(0, 0, 0, .08);

  --transition: .25s ease;
}

/* ================= DARK MODE ================= */
body.dark {
  --bg: #0f0f0f;
  --card: #161616;
  --text: #ffffff;
  --border: #2a2a2a;
  --muted: #9ca3af;
}

/* ================= BASE ================= */
body {
  margin: 0;
  font-family: 'Poppins', sans-serif;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  transition: background var(--transition), color var(--transition);
}

/* =========================================================
   NAVBAR
========================================================= */
.navbar {
  background: linear-gradient(90deg, var(--black), var(--red));
  padding: 12px 0;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.navbar.scrolled {
  background: #000;
}

.navbar-brand {
  font-weight: 800;
  font-size: 18px;
}

.nav-link {
  color: #fff !important;
  font-weight: 500;
  transition: color var(--transition);
}

.nav-link:hover {
  color: var(--yellow) !important;
}

/* =========================================================
   HERO
========================================================= */
.hero-banner {
  padding: 60px 0 55px;
  background: linear-gradient(135deg, var(--red), var(--black));
  border-bottom: 4px solid var(--yellow);
  color: #fff;
}

.hero-title {
  font-size: 42px;
  font-weight: 800;
}

.hero-sub {
  opacity: .9;
}

.hero-btn {
  background: var(--yellow);
  color: #000;
  font-weight: 700;
  padding: 12px 24px;
  border-radius: var(--radius);
  transition: transform var(--transition);
}

.hero-btn:hover {
  transform: translateY(-2px);
}


/* =========================================================
   CARD
========================================================= */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform var(--transition);
}

.card-news:hover {
  transform: translateY(-4px);
}

/* =========================================================
   FORM
========================================================= */
.form-control-lg {
  height: 52px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--text);
}

.form-control:focus {
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(208, 0, 0, .15);
}

/* =========================================================
   BUTTON
========================================================= */
.btn-danger {
  background: var(--red);
  border-color: var(--red);
}

.btn-danger:hover {
  background: #b20000;
  border-color: #b20000;
}

.btn-success {
  background: var(--green);
  border-color: var(--green);
}

/* =========================================================
   SHIPMENT TRACKER
========================================================= */
.shipment-tracker {
  position: relative;
  padding: 10px 0 25px;
}

.tracker-line,
.tracker-progress {
  position: absolute;
  top: 25px;
  left: 0;
  height: 4px;
  border-radius: 10px;
}

.tracker-line {
  width: 100%;
  background: var(--border);
}

body.dark .tracker-line {
  background: #2a2a2a;
}

.tracker-progress {
  width: 0%;
  background: linear-gradient(90deg, var(--red), var(--green));
  transition: width 1.2s cubic-bezier(.4, 0, .2, 1);
}

.tracker-steps {
  display: flex;
  justify-content: space-between;
  position: relative;
  z-index: 2;
}

.stage {
  flex: 1;
  text-align: center;
  opacity: .5;
  transition: all .4s ease;
}

.stage .icon {
  width: 46px;
  height: 46px;
  line-height: 46px;
  border-radius: 50%;
  background: #f1f1f1;
  margin: 0 auto 6px;
  font-size: 20px;
  transition: all .4s ease;
}

body.dark .stage .icon {
  background: #2a2a2a;
  color: #fff;
}

.stage.completed,
.stage.active {
  opacity: 1;
}

.stage.completed .icon {
  background: #ffff66;
  color: #fff;
  transform: scale(1.05);
}

.stage.active .icon {
  background: var(--red);
  color: #fff;
  animation: pop 0.6s ease;
  box-shadow: 0 0 0 6px rgba(208, 0, 0, .15);
}

.stage small {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
}

#trackerProgress {
    transition: width 1s ease-in-out;
}

@keyframes pop {
  0% { transform: scale(.7); }
  70% { transform: scale(1.15); }
  100% { transform: scale(1); }
}

/* =========================================================
   FOOTER
========================================================= */
.footer {
  background: var(--black);
  color: #ccc;
}

.footer a {
  color: #ccc;
  text-decoration: none;
  transition: color var(--transition);
}

.footer a:hover {
  color: var(--yellow);
}

/* =========================================================
   DARK TOGGLE
========================================================= */
#darkToggle {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--black);
  color: #fff;
  border: 2px solid var(--yellow);
  padding: 10px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 9999;
  transition: transform var(--transition);
}

#darkToggle:hover {
  transform: rotate(20deg);
}

/* =========================================================
   QRIS DONATE BUTTON
========================================================= */
#qrisBrandBtn {
  position: fixed;
  bottom: 95px;
  right: 24px;
  background: linear-gradient(135deg, var(--red), var(--black));
  color: #fff;
  border-radius: 50px;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  cursor: pointer;
  z-index: 9998;
  box-shadow: 0 8px 20px rgba(0,0,0,.25);
  animation: pulseExpress 2s infinite;
  transition: transform var(--transition);
}

#qrisBrandBtn:hover {
  transform: translateY(-4px) scale(1.05);
}

@keyframes pulseExpress {
  0% { box-shadow: 0 0 0 0 rgba(208,0,0,.6); }
  70% { box-shadow: 0 0 0 16px rgba(208,0,0,0); }
  100% { box-shadow: 0 0 0 0 rgba(208,0,0,0); }
}

/* =========================================================
   QRIS MODAL
========================================================= */
.qris-modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.75);
  backdrop-filter: blur(6px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.qris-modal.active {
  display: flex;
}

.qris-box {
  background: var(--card);
  padding: 30px;
  border-radius: 20px;
  max-width: 420px;
  width: 90%;
  text-align: center;
  position: relative;
  transform: scale(.85);
  opacity: 0;
  transition: var(--transition);
  box-shadow: 0 25px 60px rgba(0,0,0,.35);
}

.qris-modal.active .qris-box {
  transform: scale(1);
  opacity: 1;
}

.qris-close {
  position: absolute;
  right: 15px;
  top: 12px;
  border: none;
  background: none;
  font-size: 22px;
  cursor: pointer;
  color: var(--text);
}

.qris-glow {
  padding: 12px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--yellow), var(--red));
  animation: glowPulse 2.5s infinite;
}

.qris-glow img {
  width: 100%;
  border-radius: 12px;
}

@keyframes glowPulse {
  0% { box-shadow: 0 0 18px rgba(255,193,7,.6); }
  50% { box-shadow: 0 0 45px rgba(255,193,7,1); }
  100% { box-shadow: 0 0 18px rgba(255,193,7,.6); }
}

/* =========================================================
   TIMELINE EFFECT
========================================================= */
.timeline-item {
  background: #fff;
  border-left: 4px solid #d00000;
  transition: all .3s ease;
  animation: fadeInUp .5s ease both;
}

.timeline-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 18px rgba(0,0,0,.08);
}

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

/* =========================================================
   PREMIUM SECTION
========================================================= */
.premium-section {
  background: linear-gradient(135deg,#fff 0%,#fff5f5 100%);
  padding: 60px 0;
  position: relative;
  overflow: hidden;
}

.glass-box {
  background: rgba(255,255,255,0.7);
  backdrop-filter: blur(10px);
  border-radius: 18px;
  border: 1px solid rgba(0,0,0,0.05);
  box-shadow: 0 20px 40px rgba(0,0,0,0.08);
  transition: 0.3s ease;
}

.glass-box:hover {
  transform: translateY(-5px);
  box-shadow: 0 25px 50px rgba(0,0,0,0.12);
}

.feature-card {
  background: #fff;
  padding: 25px 20px;
  border-radius: 16px;
  text-align: center;
  border: 1px solid #f1f1f1;
  box-shadow: 0 10px 25px rgba(0,0,0,0.05);
  transition: 0.3s ease;
  height: 100%;
}

.feature-card i {
  font-size: 28px;
  color: #d00000;
  margin-bottom: 10px;
  display: block;
}

.feature-card h6 {
  font-weight: 600;
  margin-bottom: 8px;
}

.feature-card p {
  font-size: 13px;
  color: #777;
  margin-bottom: 0;
}

.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 15px 35px rgba(208,0,0,0.15);
}

/* =========================================================
   WA FOOTER ANIMATION
========================================================= */
.wa-footer-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #25D366 !important;
  font-weight: 600;
  text-decoration: none;
  transition: .3s;
}

.wa-footer-link:hover {
  color: #1ebe5d !important;
  transform: translateX(4px);
}

.wa-ping {
  position: absolute;
  right: -10px;
  top: -5px;
  width: 10px;
  height: 10px;
  background: #25D366;
  border-radius: 50%;
  animation: waPing 1.8s infinite;
}

@keyframes waPing {
  0%   { transform: scale(.8); opacity:.8; }
  70%  { transform: scale(2); opacity:0; }
  100% { opacity:0; }
}

/* =========================================================
   STORE BADGE SMALL VERSION
========================================================= */
.store-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #000;
  color: #fff;
  padding: 7px 14px;
  border-radius: 10px;
  text-decoration: none;
  min-width: 165px;
  transition: .3s ease;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.15);
  font-size: 13px;
}

.store-badge i { font-size: 22px; }

.store-text small {
  font-size: 9px;
  letter-spacing: .4px;
  opacity: .7;
}

.store-text strong {
  font-size: 14px;
  display: block;
  margin-top: -1px;
}

.store-badge:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(0,0,0,.35);
  border-color: rgba(255,255,255,.4);
}

.store-badge::before {
  content: '';
  position: absolute;
  top: 0;
  left: -75%;
  width: 50%;
  height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,.4), transparent);
  transform: skewX(-20deg);
}

.store-badge:hover::before {
  animation: shine 0.8s forwards;
}

@keyframes shine {
  100% { left: 130%; }
}

/* =========================================================
   RESPONSIVE
========================================================= */
@media (max-width:768px) {
  .hero-title { font-size: 32px; }
  .stage .icon { width: 44px; height: 44px; font-size: 18px; }
  .premium-section { padding: 40px 0; }
}