* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

body {
  background-color: #050814;
  color: #ffffff;
  padding-bottom: 90px;
}

.app-container {
  max-width: 480px;
  margin: 0 auto;
  padding: 15px;
}

/* TOP HEADER */
.top-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-icon {
  background: #6366f1;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.brand-title {
  font-size: 20px;
  font-weight: bold;
}

.brand-sub {
  font-size: 11px;
  color: #94a3b8;
}

.header-icons {
  display: flex;
  gap: 10px;
}

.icon-btn {
  background: #1e293b;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  font-size: 16px;
  border: 1px solid #334155;
}

.badge {
  position: absolute;
  top: -2px;
  right: -2px;
  background: #3b82f6;
  color: white;
  font-size: 10px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
}

/* WELCOME BANNER */
.welcome-banner {
  background: linear-gradient(135deg, #090e28 0%, #101942 100%);
  border: 1px solid #1e295d;
  border-radius: 16px;
  padding: 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.banner-title {
  color: #a855f7;
  font-weight: bold;
  font-size: 14px;
  margin-bottom: 6px;
}

.banner-text p {
  color: #94a3b8;
  font-size: 12px;
  line-height: 1.4;
  max-width: 280px;
}

.banner-mic {
  font-size: 40px;
  opacity: 0.8;
}

/* BALANCE CARD */
.balance-card {
  background: linear-gradient(180deg, #101636 0%, #0b0f26 100%);
  border: 1px solid #1d285c;
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 20px;
}

.balance-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.salio-label {
  font-size: 12px;
  color: #94a3b8;
  letter-spacing: 1px;
}

.level-badge {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 11px;
}

.balance-amount {
  font-size: 34px;
  font-weight: bold;
  text-align: center;
  margin: 10px 0 2px;
}

.balance-sub {
  text-align: center;
  color: #22c55e;
  font-size: 11px;
  font-weight: bold;
  margin-bottom: 15px;
}

.balance-actions {
  display: flex;
  gap: 10px;
}

.btn-balance {
  flex: 1;
  padding: 12px 8px;
  border-radius: 10px;
  border: none;
  font-weight: bold;
  font-size: 11px;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-withdraw { background: #3b82f6; color: white; }
.btn-support { background: #6366f1; color: white; }

/* ACTIVE ACCOUNT BUTTON */
.btn-active-account {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  background: linear-gradient(90deg, #6366f1 0%, #4f46e5 100%);
  color: white;
  text-decoration: none;
  padding: 16px;
  border-radius: 14px;
  font-weight: bold;
  font-size: 15px;
  margin-bottom: 25px;
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

/* SUPPLIERS SECTION */
.suppliers-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}

.suppliers-header h3 { font-size: 15px; color: #e2e8f0; }
.suppliers-header a { color: #6366f1; text-decoration: none; font-size: 12px; }

.supplier-card {
  background: #0b0f24;
  border: 1px solid #1a2342;
  border-radius: 16px;
  padding: 16px;
  margin-bottom: 15px;
}

.supplier-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.supplier-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.avatar-img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #334155;
}

.supplier-name {
  font-weight: bold;
  font-size: 14px;
}

.blue-tick {
  background: #3b82f6;
  color: white;
  font-size: 9px;
  padding: 1px 4px;
  border-radius: 50%;
}

.supplier-type {
  font-size: 11px;
  color: #64748b;
}

.payout-badge {
  background: rgba(16, 185, 129, 0.1);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 6px 12px;
  border-radius: 20px;
  font-weight: bold;
  font-size: 13px;
}

.message-box {
  background: #060919;
  border: 1px solid #151d36;
  padding: 12px;
  border-radius: 10px;
  font-size: 12px;
  color: #cbd5e1;
  line-height: 1.5;
  margin-bottom: 12px;
}

.rec-label {
  font-size: 11px;
  color: #94a3b8;
  margin-bottom: 8px;
  display: flex;
  justify-content: space-between;
}

.timer { color: #64748b; }

.action-row {
  display: flex;
  gap: 8px;
  margin-bottom: 8px;
}

.btn-record {
  flex: 1;
  background: #ef4444;
  color: white;
  border: none;
  padding: 12px;
  border-radius: 8px;
  font-weight: bold;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: background 0.3s ease;
}

.btn-record.recording {
  background: #dc2626;
  animation: pulse 1s infinite;
}

@keyframes pulse {
  0% { opacity: 1; }
  50% { opacity: 0.6; }
  100% { opacity: 1; }
}

.btn-play {
  background: #1e293b;
  color: white;
  border: 1px solid #334155;
  width: 42px;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-send {
  width: 100%;
  background: #151d33;
  color: #475569;
  border: none;
  padding: 12px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: bold;
  margin-bottom: 12px;
  cursor: not-allowed;
  transition: all 0.3s ease;
}

.btn-send.ready {
  background: #3b82f6;
  color: #ffffff;
  cursor: pointer;
}

.disabled-btn {
  opacity: 0.6;
  cursor: not-allowed !important;
  pointer-events: none;
}

.supplier-footer {
  display: flex;
  gap: 8px;
  font-size: 10px;
  color: #64748b;
}

.verified-text { color: #10b981; }

/* FLOATING WHATSAPP BUTTON */
.whatsapp-float {
  position: fixed;
  bottom: 80px;
  right: 20px;
  background-color: #25d366;
  color: #fff;
  width: 55px;
  height: 55px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
  z-index: 9999;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.whatsapp-float:hover { transform: scale(1.1); }

/* POPUP MODAL STYLING */
.custom-modal {
  position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
  background: rgba(0,0,0,0.85); z-index: 99999;
  display: flex; justify-content: center; align-items: center;
}

.modal-content {
  background: #0e142e; padding: 22px; border-radius: 20px;
  width: 90%; max-width: 400px; position: relative; border: 1px solid #1e295d;
}

/* WHATSAPP POPUP SPECIFIC DESIGNS */
.modal-phone-icon {
  width: 50px;
  height: 50px;
  background: #1e295d;
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin: 0 auto 12px;
}

.modal-title-custom {
  font-size: 18px;
  font-weight: bold;
  color: #ffffff;
  margin-bottom: 6px;
}

.modal-sub-custom {
  font-size: 12px;
  color: #94a3b8;
  margin-bottom: 20px;
}

.modal-options-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
}

.option-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: #060919;
  border: 1px solid #1e295d;
  padding: 14px;
  border-radius: 14px;
  text-decoration: none;
  color: white;
  text-align: left;
  transition: background 0.2s ease;
}

.option-card:hover {
  background: #111838;
}

.option-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.whatsapp-color { background: rgba(37, 211, 102, 0.15); color: #25d366; }
.group-color { background: rgba(99, 102, 241, 0.15); color: #6366f1; }

.option-text h4 {
  font-size: 13px;
  font-weight: bold;
  margin-bottom: 2px;
}

.option-text p {
  font-size: 11px;
  color: #64748b;
}

.option-arrow {
  margin-left: auto;
  color: #64748b;
  font-size: 14px;
}

.btn-close-outline {
  width: 100%;
  background: transparent;
  border: 1px solid #334155;
  color: #94a3b8;
  padding: 12px;
  border-radius: 10px;
  font-weight: bold;
  cursor: pointer;
  font-size: 13px;
}

.close-btn { position: absolute; right: 15px; top: 10px; font-size: 24px; cursor: pointer; color: #94a3b8; }
.form-control { width: 100%; padding: 12px; margin: 6px 0 14px; border-radius: 8px; border: 1px solid #1e295d; background: #060919; color: #fff; }
.btn-primary { width: 100%; background: #3b82f6; color: #fff; padding: 12px; border: none; border-radius: 8px; font-weight: bold; cursor: pointer; }
.error-box { background: rgba(239, 68, 68, 0.15); border: 1px solid #ef4444; padding: 15px; border-radius: 10px; text-align: center; color: #f87171; font-size: 13px; line-height: 1.4; }
.btn-active-account-popup { display: block; margin-top: 12px; background: #22c55e; color: #fff; padding: 10px; border-radius: 8px; text-decoration: none; font-weight: bold; text-align: center; }

.text-center { text-align: center; }
.success-icon { font-size: 45px; margin-bottom: 10px; }
.success-title { color: #22c55e; font-size: 18px; margin-bottom: 5px; }
.success-sub { font-size: 12px; color: #94a3b8; margin-bottom: 15px; }

.reward-box {
  background: #060919;
  border: 1px dashed #22c55e;
  padding: 15px;
  border-radius: 12px;
  margin-bottom: 20px;
}

.reward-label { font-size: 11px; color: #94a3b8; }
.reward-amount { color: #22c55e; font-size: 26px; font-weight: bold; margin: 5px 0; }
.reward-status { font-size: 11px; color: #10b981; font-weight: 500; }

.btn-success-close {
  background: linear-gradient(90deg, #22c55e 0%, #16a34a 100%);
  padding: 14px;
  font-size: 14px;
}

.spinner { display: inline-block; width: 14px; height: 14px; border: 2px solid rgba(255,255,255,0.3); border-radius: 50%; border-top-color: #fff; animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* BOTTOM NAVIGATION */
.bottom-nav {
  position: fixed; bottom: 0; left: 0; right: 0;
  background: #080c1e; border-top: 1px solid #161f3d;
  display: flex; justify-space: around; align-items: center;
  padding: 8px 0; height: 65px; z-index: 1000;
}

.nav-item {
  display: flex; flex-direction: column; align-items: center;
  color: #64748b; text-decoration: none; font-size: 10px;
}

.nav-item.active { color: #6366f1; }
.nav-icon { font-size: 18px; margin-bottom: 2px; }

.nav-mic-center { position: relative; top: -15px; }
.mic-bubble {
  width: 50px; height: 50px; background: #6366f1;
  border-radius: 50%; display: flex; align-items: center;
  justify-content: center; font-size: 22px;
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
}
/* INSTALL APP — TOP FLOATING NOTIFICATION */

/* =========================================================
   CUSTOMER ORDER - SMALL TOP INSTALL NOTIFICATION
   One authoritative rule set. Never fullscreen.
   ========================================================= */
#installNotice.install-notice {
  position: fixed !important;
  top: 12px !important;
  left: 50% !important;
  right: auto !important;
  bottom: auto !important;
  width: 300px !important;
  max-width: calc(100vw - 24px) !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: 64px !important;
  margin: 0 !important;
  padding: 7px !important;
  display: flex !important;
  align-items: center !important;
  gap: 7px !important;
  box-sizing: border-box !important;
  overflow: hidden !important;
  border-radius: 13px !important;
  border: 1px solid rgba(236,72,153,.55) !important;
  background: rgba(12,15,32,.98) !important;
  box-shadow: 0 5px 18px rgba(0,0,0,.38), 0 0 15px rgba(236,72,153,.20) !important;
  z-index: 2147483000 !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  transform: translate3d(-50%, -130%, 0) scale(.96) !important;
  transition: none !important;
}

#installNotice.install-notice.show {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
  animation: customerOrderInstallInOut 4.2s cubic-bezier(.22,1,.36,1) forwards !important;
}

#installNotice.install-notice::before {
  content: "" !important;
  position: absolute !important;
  inset: -1px !important;
  border-radius: 14px !important;
  pointer-events: none !important;
  box-shadow: 0 0 13px rgba(168,85,247,.16) !important;
}

#installNotice .install-avatar {
  width: 34px !important;
  height: 34px !important;
  min-width: 34px !important;
  flex: 0 0 34px !important;
  display: grid !important;
  place-items: center !important;
  border-radius: 9px !important;
  font-size: 16px !important;
  line-height: 1 !important;
  background: linear-gradient(145deg,#ec4899,#a855f7) !important;
  box-shadow: 0 0 10px rgba(236,72,153,.30) !important;
}

#installNotice .install-notice-text {
  min-width: 0 !important;
  flex: 1 1 auto !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 2px !important;
  overflow: hidden !important;
}

#installNotice .install-notice-text strong {
  font-size: 10px !important;
  line-height: 1.1 !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

#installNotice .install-notice-text span {
  font-size: 8.5px !important;
  line-height: 1.15 !important;
  color: #cbd5e1 !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

#installNotice .install-notice-install {
  flex: 0 0 auto !important;
  border: 0 !important;
  border-radius: 8px !important;
  padding: 7px 9px !important;
  color: #fff !important;
  background: linear-gradient(135deg,#ec4899,#a855f7) !important;
  font-size: 9px !important;
  line-height: 1 !important;
  font-weight: 900 !important;
  cursor: pointer !important;
  white-space: nowrap !important;
  box-shadow: 0 0 9px rgba(236,72,153,.25) !important;
}

@keyframes customerOrderInstallInOut {
  0% {
    opacity: 0;
    visibility: hidden;
    transform: translate3d(-50%, -130%, 0) scale(.96);
  }
  12% {
    opacity: 1;
    visibility: visible;
    transform: translate3d(-50%, 0, 0) scale(1);
  }
  72% {
    opacity: 1;
    visibility: visible;
    transform: translate3d(-50%, 0, 0) scale(1);
  }
  100% {
    opacity: 0;
    visibility: hidden;
    transform: translate3d(-50%, -130%, 0) scale(.96);
  }
}

.install-toast {
  position: fixed !important;
  left: 50% !important;
  bottom: 154px !important;
  transform: translateX(-50%) translateY(8px) !important;
  z-index: 2147483001 !important;
  background: #111838 !important;
  border: 1px solid #334155 !important;
  color: #fff !important;
  border-radius: 12px !important;
  padding: 10px 14px !important;
  font-size: 11px !important;
  opacity: 0 !important;
  pointer-events: none !important;
  transition: .25s ease !important;
  max-width: 88vw !important;
  text-align: center !important;
}
.install-toast.show {
  opacity: 1 !important;
  transform: translateX(-50%) translateY(0) !important;
}

@media (max-width: 360px) {
  #installNotice.install-notice {
    top: 8px !important;
    width: 286px !important;
    max-width: calc(100vw - 16px) !important;
  }
}
