
/* Nava4D Brand Theme Override */
:root {
  --nava-orange: #f28c1a;
  --nava-orange-dark: #d86b00;
  --nava-orange-deep: #b85300;
  --nava-gold: #ffbf2f;
  --nava-gold-soft: #ffe29b;
  --nava-cream: #fff8eb;
  --nava-cream-2: #fff3db;
  --nava-surface: #fffdf8;
  --nava-text: #3a2208;
  --nava-text-soft: #7a5b3a;
  --nava-border: #f0dcc2;
  --nava-shadow: 0 12px 32px rgba(178, 92, 0, 0.14);
}

/* Mobile Bottom Navigation */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #ffffff;
  border-top: 1px solid #f1dfc9;
  z-index: 9998; /* Below chat widget */
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
  display: none; /* Hidden on desktop */
}

.bottom-nav-inner {
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 2px 0;
  max-width: 640px;
  margin: 0 auto;
}

.bottom-nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 8px 8px;
  background: none;
  border: none;
  cursor: pointer;
  text-decoration: none;
  color: #6b7280;
  transition: all 0.3s ease;
  position: relative;
}

.bottom-nav-item:hover {
  color: #F28C1A;
}

.bottom-nav-item.active {
  flex-direction: row;
  gap: 8px;
  background: linear-gradient(135deg, #F28C1A 0%, #D97809 100%);
  color: white;
  border-radius: 20px;
  padding: 8px 16px;
  box-shadow: 0 2px 8px rgba(242, 140, 26, 0.3);
}

.bottom-nav-item-icon {
  width: 24px;
  height: 24px;
  position: relative;
}

.bottom-nav-item-icon svg {
  width: 100%;
  height: 100%;
}

/* Icon variant switching */
.bottom-nav-item .icon-outlined {
  display: block;
}

.bottom-nav-item .icon-filled {
  display: none;
}

.bottom-nav-item.active .icon-outlined {
  display: none;
}

.bottom-nav-item.active .icon-filled {
  display: block;
}

.bottom-nav-item-label {
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  display: none;
  white-space: nowrap;
}

.bottom-nav-item.active .bottom-nav-item-label {
  display: block;
}

/* Avatar styles for bottom-nav */
.bottom-nav-avatar-img,
.bottom-nav-avatar-initials {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: block;
}

.bottom-nav-avatar-img {
  object-fit: cover;
}

.bottom-nav-avatar-initials {
  background: linear-gradient(135deg, #F28C1A 0%, #D97809 100%);
  color: white;
  font-size: 10px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  letter-spacing: 0.5px;
}

/* Hide SVG when avatar is shown */
.bottom-nav-item-icon:has(.bottom-nav-avatar-img) .bottom-nav-svg-icon,
.bottom-nav-item-icon:has(.bottom-nav-avatar-initials) .bottom-nav-svg-icon {
  display: none;
}

/* Active state adjustments for avatar */
.bottom-nav-item.active .bottom-nav-avatar-initials {
  background: white;
  color: #F28C1A;
  border: 2px solid rgba(255, 255, 255, 0.8);
  box-sizing: border-box;
}

.bottom-nav-item.active .bottom-nav-avatar-img {
  border: 2px solid rgba(255, 255, 255, 0.9);
  box-sizing: border-box;
}

.bottom-nav-item-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: #e16f00;
  color: white;
  border-radius: 10px;
  padding: 2px 5px;
  font-size: 10px;
  font-weight: 600;
  min-width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

/* Show on mobile only */
@media (max-width: 640px) {
  .bottom-nav {
    display: block;
  }
  
  /* Add bottom padding to body to prevent content being hidden */
  body {
    padding-bottom: 60px;
  }
}

/* Mobile User Sheet - Bottom Sheet for Profile Menu */
.mobile-user-sheet {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 10000;
  pointer-events: none;
}

.mobile-user-sheet:not([hidden]) {
  pointer-events: auto;
}

.mobile-user-sheet-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  transition: opacity 0.2s ease-out;
}

.mobile-user-sheet.active .mobile-user-sheet-backdrop {
  opacity: 1;
}

.mobile-user-sheet-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: white;
  border-radius: 16px 16px 0 0;
  max-height: 80vh;
  overflow-y: auto;
  transform: translateY(100%);
  transition: transform 0.3s ease-out;
}

.mobile-user-sheet.active .mobile-user-sheet-content {
  transform: translateY(0);
}

.mobile-user-sheet-handle {
  width: 40px;
  height: 4px;
  background: #edd7b5;
  border-radius: 2px;
  margin: 12px auto 16px;
}

.mobile-user-sheet-header {
  padding: 0 20px 16px;
  border-bottom: 1px solid #f1dfc9;
}

.mobile-user-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.mobile-user-avatar {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, #FFE7CC 0%, #FFD9A8 50%, #FFCC80 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: #D97809;
  font-weight: 600;
}

.mobile-user-details {
  flex: 1;
}

.mobile-user-name {
  font-weight: 600;
  font-size: 16px;
  color: #1f2937;
  margin-bottom: 4px;
}

.mobile-user-email {
  font-size: 13px;
  color: #6b7280;
}

.mobile-user-sheet-body {
  padding: 8px 0;
}

.mobile-user-sheet-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  background: none;
  border: none;
  width: 100%;
  text-align: left;
  cursor: pointer;
  text-decoration: none;
  color: #55381f;
  transition: background 0.2s;
}

.mobile-user-sheet-item:hover {
  background: #f9fafb;
}

.mobile-user-sheet-icon {
  font-size: 20px;
  width: 24px;
  text-align: center;
}

.mobile-user-sheet-label {
  font-size: 15px;
  font-weight: 500;
}

.mobile-user-sheet-divider {
  height: 1px;
  background: #f1dfc9;
  margin: 8px 0;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideUp {
  from {
    transform: translateY(100%);
  }
  to {
    transform: translateY(0);
  }
}

/* Ensure chat widget works well with bottom nav */
@media (max-width: 640px) {
  .chat-widget {
    bottom: 0 !important; /* Chat opens from bottom */
  }
  
  .chat-popup {
    /* Chat popup should be above bottom nav */
    z-index: 9999;
  }
}


/* =========================================================
   MODERN REDESIGN OVERRIDE
   Fresh palette, typography, cards, controls & effects
   ========================================================= */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Space+Grotesk:wght@500;600;700&display=swap');

:root{
  --rd-bg:#07111f;
  --rd-bg2:#0c1728;
  --rd-surface:#101d30;
  --rd-surface2:#14243b;
  --rd-border:rgba(148,163,184,.18);
  --rd-text:#eef6ff;
  --rd-muted:#91a4bc;
  --rd-primary:#6d5dfc;
  --rd-primary2:#19c6b7;
  --rd-accent:#ffcf5a;
  --rd-danger:#ff6b81;
  --rd-shadow:0 18px 55px rgba(0,0,0,.28);
  --rd-radius:18px;
}

html{background:var(--rd-bg)!important;}
body{
  background:
    radial-gradient(circle at 10% 0%, rgba(109,93,252,.18), transparent 28%),
    radial-gradient(circle at 90% 15%, rgba(25,198,183,.13), transparent 24%),
    linear-gradient(145deg,var(--rd-bg),var(--rd-bg2))!important;
  color:var(--rd-text)!important;
  font-family:"DM Sans",system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif!important;
  min-height:100vh;
}

h1,h2,h3,h4,h5,h6,.title,.heading{
  font-family:"Space Grotesk","DM Sans",sans-serif!important;
  color:var(--rd-text)!important;
  letter-spacing:-.02em;
}

a{color:#8f83ff;transition:.2s ease;}
a:hover{color:#19c6b7;}

button,input,select,textarea{
  font:inherit;
}

input,select,textarea{
  background:rgba(16,29,48,.9)!important;
  color:var(--rd-text)!important;
  border:1px solid var(--rd-border)!important;
  border-radius:12px!important;
  outline:none!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.025);
}
input:focus,select:focus,textarea:focus{
  border-color:rgba(109,93,252,.75)!important;
  box-shadow:0 0 0 4px rgba(109,93,252,.12)!important;
}

button,.btn,[type="button"],[type="submit"]{
  border:0!important;
  border-radius:12px!important;
  color:#fff!important;
  background:linear-gradient(135deg,var(--rd-primary),#8b7cff)!important;
  box-shadow:0 10px 25px rgba(109,93,252,.22)!important;
  transition:transform .18s ease,filter .18s ease,box-shadow .18s ease!important;
}
button:hover,.btn:hover,[type="button"]:hover,[type="submit"]:hover{
  transform:translateY(-2px);
  filter:saturate(1.12);
  box-shadow:0 14px 32px rgba(109,93,252,.30)!important;
}

header,nav,.navbar,.topbar,.header,.site-header{
  background:rgba(7,17,31,.78)!important;
  border-color:var(--rd-border)!important;
  backdrop-filter:blur(18px)!important;
  -webkit-backdrop-filter:blur(18px)!important;
}

.card,.box,.panel,.modal-content,.dropdown-menu,.payment-card,.container-card,.content-box{
  background:linear-gradient(155deg,rgba(20,36,59,.94),rgba(12,23,40,.94))!important;
  color:var(--rd-text)!important;
  border:1px solid var(--rd-border)!important;
  border-radius:var(--rd-radius)!important;
  box-shadow:var(--rd-shadow)!important;
}

.card:hover,.payment-card:hover,.content-box:hover{
  border-color:rgba(109,93,252,.35)!important;
  transform:translateY(-2px);
  transition:.2s ease;
}

table{
  background:transparent!important;
  color:var(--rd-text)!important;
  border-color:var(--rd-border)!important;
}
th{
  background:rgba(109,93,252,.12)!important;
  color:#dcd8ff!important;
}
td,th{
  border-color:var(--rd-border)!important;
}
tr:hover td{background:rgba(255,255,255,.025)!important;}

hr{border-color:var(--rd-border)!important;opacity:1;}

.text-muted,.muted,.secondary,.description,.small{
  color:var(--rd-muted)!important;
}

.badge,.tag,.label{
  background:rgba(25,198,183,.12)!important;
  color:#6de5d9!important;
  border:1px solid rgba(25,198,183,.22)!important;
  border-radius:999px!important;
}

.alert,.notice,.message{
  border-radius:14px!important;
  border:1px solid var(--rd-border)!important;
  background:rgba(255,255,255,.035)!important;
}

footer{
  background:#050d18!important;
  color:var(--rd-muted)!important;
  border-top:1px solid var(--rd-border)!important;
}

::selection{
  background:rgba(109,93,252,.45);
  color:#fff;
}

/* Scrollbar */
::-webkit-scrollbar{width:10px;height:10px;}
::-webkit-scrollbar-track{background:#07111f;}
::-webkit-scrollbar-thumb{
  background:linear-gradient(var(--rd-primary),var(--rd-primary2));
  border-radius:99px;
}

/* Common payment-page elements */
.payment-method,.method,.payment-option,.bank-item,.ewallet-item{
  background:rgba(16,29,48,.72)!important;
  border:1px solid var(--rd-border)!important;
  border-radius:16px!important;
}
.payment-method:hover,.method:hover,.payment-option:hover,.bank-item:hover,.ewallet-item:hover{
  border-color:rgba(25,198,183,.48)!important;
  background:rgba(20,36,59,.95)!important;
}
.price,.amount,.total,.nominal{
  color:var(--rd-accent)!important;
  font-family:"Space Grotesk",sans-serif!important;
}
.status-success,.success,.paid{
  color:#67e8c8!important;
}
.status-pending,.pending{
  color:#ffd76a!important;
}
.status-failed,.failed,.error{
  color:#ff8294!important;
}

/* Decorative glow for prominent sections */
.hero,.hero-section,.payment-header,.main-card{
  position:relative;
  overflow:hidden;
}
.hero::before,.hero-section::before,.payment-header::before,.main-card::before{
  content:"";
  position:absolute;
  width:260px;height:260px;
  right:-100px;top:-120px;
  background:radial-gradient(circle,rgba(109,93,252,.28),transparent 68%);
  pointer-events:none;
}

