/* 9. SLIDING SIDEBAR DRAWER STYLES */
.sidebar-header {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--glass-border);
}
.sidebar-user {
  display: flex;
  align-items: center;
  gap: 12px;
}
.sidebar-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--indigo), var(--purple));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  color: #FFF;
  font-size: 16px;
  box-shadow: 0 0 14px var(--purple-glow);
  flex-shrink: 0;
}
.sidebar-wallet {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 12px 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  transition: all 0.2s ease;
}
.sidebar-wallet:active {
  transform: scale(0.98);
  background: rgba(255, 255, 255, 0.08);
}
.sidebar-close-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #FFF;
  transform: scale(1.05);
}
.sidebar-close-btn:active {
  transform: scale(0.92);
}

/* ==========================================================================
   9. ULTRA-LUXE SEEYOUSOON SUPER-APP SIDEBAR MENU SYSTEM
   ========================================================================== */

/* Fixed Header */
.menu-fixed-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: calc(var(--safe-top) + 14px) 16px 12px;
  background: rgba(10, 15, 34, 0.95);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
  flex-shrink: 0;
  z-index: 10;
}
.menu-header-circle-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #FFF;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  flex-shrink: 0;
}
.menu-header-circle-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.25);
  transform: scale(1.06);
}
.menu-header-circle-btn:active {
  transform: scale(0.92);
}
.menu-header-title-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 0;
  flex: 1;
  padding: 0 6px;
  overflow: hidden;
}
.menu-header-app-name {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 900;
  color: #FFF;
  letter-spacing: -0.3px;
  white-space: nowrap;
}
.menu-header-badge {
  font-size: 8.5px;
  font-weight: 900;
  letter-spacing: 0.5px;
  background: linear-gradient(135deg, #8B5CF6, #06B6D4);
  color: #FFF;
  padding: 1px 5px;
  border-radius: 999px;
}
.menu-header-sub {
  font-size: 10px;
  font-weight: 700;
  color: var(--paper-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}
.menu-header-role-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  padding: 5px 9px;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
  max-width: 120px;
  overflow: hidden;
}
.menu-header-role-btn:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.25);
}
.menu-header-role-icon {
  font-size: 13px;
  flex-shrink: 0;
}
.menu-header-role-name {
  font-size: 10.5px;
  font-weight: 800;
  color: #FFF;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}


/* Scrollable Body */
.sidebar-drawer-body {
  flex: 1;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding: 14px 16px 20px;
  scrollbar-width: thin;
  scrollbar-color: rgba(168, 85, 247, 0.35) transparent;
}
.sidebar-drawer-body::-webkit-scrollbar {
  width: 4px;
}
.sidebar-drawer-body::-webkit-scrollbar-thumb {
  background: rgba(168, 85, 247, 0.35);
  border-radius: 999px;
}

/* Hero Profile & Wallet Card */
.menu-hero-card {
  position: relative;
  background: linear-gradient(145deg, rgba(25, 34, 68, 0.8) 0%, rgba(10, 14, 32, 0.95) 100%);
  backdrop-filter: blur(28px) saturate(200%);
  -webkit-backdrop-filter: blur(28px) saturate(200%);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 22px;
  padding: 18px 16px;
  margin-bottom: 14px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.55), inset 0 1px 1.5px rgba(255, 255, 255, 0.25);
  overflow: hidden;
}
.menu-hero-card::before {
  content: '';
  position: absolute;
  top: -35px;
  right: -35px;
  width: 140px;
  height: 140px;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.35) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}
.menu-user-row {
  display: flex;
  align-items: center;
  margin-bottom: 14px;
}
.menu-avatar-wrap {
  position: relative;
  width: 52px;
  height: 52px;
  border-radius: 18px;
  background: linear-gradient(135deg, #8B5CF6 0%, #3B82F6 50%, #06B6D4 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 19px;
  color: #FFF;
  box-shadow: 0 6px 20px rgba(139, 92, 246, 0.5), inset 0 1px 1px rgba(255, 255, 255, 0.4);
  flex-shrink: 0;
}
.menu-avatar-online {
  position: absolute;
  bottom: -2px;
  right: -2px;
  width: 12px;
  height: 12px;
  background: #10B981;
  border: 2px solid #0B1021;
  border-radius: 50%;
  box-shadow: 0 0 8px #10B981;
}
.menu-user-meta {
  flex: 1;
  margin-left: 12px;
  min-width: 0;
}
html[dir="rtl"] .menu-user-meta {
  margin-left: 0;
  margin-right: 12px;
}
.menu-user-name {
  font-size: 15px;
  font-weight: 900;
  color: #FFF;
  display: flex;
  align-items: center;
  gap: 8px;
  letter-spacing: -0.2px;
}
.bankid-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 10px;
  font-weight: 800;
  color: #10B981;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 1px 6px;
  border-radius: 6px;
}
.menu-vip-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 4px;
  font-size: 11px;
  font-weight: 800;
  color: #FBBF24;
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.3);
  padding: 2px 8px;
  border-radius: 999px;
}

/* Dual Mini-Cards */
.menu-hero-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.menu-hero-card .menu-hero-tile {
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  border-radius: 14px;
  padding: 10px 12px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-decoration: none;
}
.menu-hero-card .menu-hero-tile:hover {
  background: rgba(255, 255, 255, 0.1) !important;
  border-color: rgba(255, 255, 255, 0.25) !important;
  transform: translateY(-2px);
}
.menu-hero-card .menu-hero-tile:active {
  transform: scale(0.97);
}
.menu-hero-tile-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 4px;
}
.tile-label-green {
  font-size: 9.5px;
  font-weight: 900;
  color: #10B981;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  white-space: nowrap;
}
.tile-tag-green {
  font-size: 9px;
  font-weight: 900;
  color: #10B981;
  background: rgba(16, 185, 129, 0.15);
  padding: 1px 5px;
  border-radius: 999px;
  white-space: nowrap;
}
.tile-label-gold {
  font-size: 9.5px;
  font-weight: 900;
  color: #FBBF24;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  white-space: nowrap;
}
.tile-tag-gold {
  font-size: 9px;
  font-weight: 900;
  color: #FBBF24;
  background: rgba(245, 158, 11, 0.15);
  padding: 1px 5px;
  border-radius: 999px;
  white-space: nowrap;
}
.menu-hero-tile-val {
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 900;
  color: #10B981;
  margin-top: 5px;
}

/* In-Menu Search Input */
.menu-search-wrap {
  position: relative;
  margin-bottom: 12px;
}
.menu-search-input {
  width: 100%;
  height: 42px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  padding: 0 16px 0 42px;
  color: #FFF;
  font-size: 13px;
  font-weight: 600;
  outline: none;
  transition: all 0.2s ease;
  box-sizing: border-box;
}
html[dir="rtl"] .menu-search-input {
  padding: 0 42px 0 16px;
}
.menu-search-input:focus {
  background: rgba(255, 255, 255, 0.1);
  border-color: #8B5CF6;
  box-shadow: 0 0 16px rgba(139, 92, 246, 0.4);
}
.menu-search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 17px;
  height: 17px;
  color: #94A3B8;
  pointer-events: none;
}
html[dir="rtl"] .menu-search-icon {
  left: auto;
  right: 14px;
}

/* In-Menu Filter Chips */
.menu-chips-scroll {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 2px 2px 10px 2px;
  margin-bottom: 4px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.menu-chips-scroll::-webkit-scrollbar {
  display: none;
}
.menu-chip-btn {
  height: 32px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  padding: 0 13px;
  color: #94A3B8;
  font-size: 11.5px;
  font-weight: 800;
  white-space: nowrap;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  flex-shrink: 0;
}
.menu-chip-btn:hover {
  background: rgba(255, 255, 255, 0.09);
  color: #FFF;
}
.menu-chip-btn:active {
  transform: scale(0.95);
}
.menu-chip-btn.active {
  background: #8B5CF6;
  color: #FFF;
  border-color: #A855F7;
  box-shadow: 0 0 14px rgba(139, 92, 246, 0.4);
}
