/* ===== agents/css/liquid-glass.css ===== */
/* Soft Light / Spotlight Glassmorphism Design System tailored for MyBiz.lk */
/* Modern Robotic Clear Tech Typography: Space Grotesk & Orbitron */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@500;600;700;800&family=Orbitron:wght@600;700;800;900&family=Syne:wght@400;500;600;700;800&family=Google+Sans:wght@400;500;700&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
  --font-robotic: 'Space Grotesk', 'Orbitron', sans-serif;
  --font-display: 'Syne', sans-serif;
  --font-body: 'Google Sans', 'Plus Jakarta Sans', sans-serif;

  /* Official Main Website MyBiz.lk Brand Palette */
  --brand-main: #902943;          /* Main Brand Maroon */
  --brand-berry: #9b5163;         /* Berry Maroon Accent */
  --brand-mauve: #967881;         /* Dusty Rose / Mauve Accent */
  --brand-dark: #6f1d34;          /* Deep Dark Maroon */
  --brand-rose: #e11d48;
  --brand-glow: rgba(144, 41, 67, 0.25);

  /* Luminous Soft Light / Spotlight Background & Surfaces */
  --bg-dark: #f8fafc;             /* Soft Light Slate Background */
  --bg-card: rgba(255, 255, 255, 0.85);
  --bg-card-hover: rgba(255, 255, 255, 0.95);
  --glass-border: rgba(144, 41, 67, 0.15);
  --glass-border-light: rgba(155, 81, 99, 0.35);
  --glass-shadow: 0 15px 40px rgba(144, 41, 67, 0.08);

  /* High-Contrast Soft Light Typography */
  --text-main: #0f172a;          /* Rich Dark Text */
  --text-muted: #475569;         /* Slate Muted Text */
  --text-dim: #64748b;           /* Dim Text */

  /* Accents */
  --accent-gold: #d97706;
  --accent-cyan: #0284c7;
  --accent-emerald: #059669;

  /* Official Brand Gradients */
  --grad-brand: linear-gradient(135deg, #902943 0%, #9b5163 50%, #6f1d34 100%);
  --grad-emerald: linear-gradient(135deg, #059669 0%, #10b981 100%);
  --grad-gold: linear-gradient(135deg, #d97706 0%, #f59e0b 100%);
  --grad-glass: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(248, 250, 252, 0.75) 100%);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-dark);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
  padding-bottom: 75px;
}

@media (min-width: 992px) {
  body { padding-bottom: 0; }
}

h1, h2, h3, h4, h5, h6, .brand-font {
  font-family: var(--font-robotic);
  color: #0f172a;
}

/* Ambient Spotlight Radial Glow Orbs in #902943 Brand Maroon */
body::before, body::after {
  content: '';
  position: fixed;
  border-radius: 50%;
  filter: blur(120px);
  z-index: -1;
  pointer-events: none;
}

body::before {
  width: 650px;
  height: 650px;
  background: rgba(144, 41, 67, 0.15);
  top: -150px;
  left: -100px;
  animation: floatOrb 18s ease-in-out infinite alternate;
}

body::after {
  width: 700px;
  height: 700px;
  background: rgba(155, 81, 99, 0.12);
  bottom: -150px;
  right: -100px;
  animation: floatOrb 22s ease-in-out infinite alternate-reverse;
}

@keyframes floatOrb {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(40px, 20px) scale(1.08); }
  100% { transform: translate(-20px, 40px) scale(0.96); }
}

a {
  color: inherit;
  text-decoration: none;
}

/* Display Utility Classes */
.d-none { display: none !important; }
.d-block { display: block !important; }
.d-flex { display: flex !important; }
.d-inline-flex { display: inline-flex !important; }

@media (min-width: 576px) {
  .d-sm-inline-flex { display: inline-flex !important; }
}
@media (min-width: 992px) {
  .d-lg-none { display: none !important; }
  .d-lg-flex { display: flex !important; }
}
@media (min-width: 1200px) {
  .d-xl-block { display: block !important; }
}

/* ===== LIQUID GLASS NAVBAR STYLES ===== */
.navbar-liquid {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  width: 92%;
  max-width: 1280px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: 9999px;
  padding: 10px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 10px 30px rgba(144, 41, 67, 0.1);
  z-index: 1000;
  transition: all 0.3s ease;
}

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

.nav-brand-img {
  height: 44px !important;
  max-height: 44px !important;
  width: auto !important;
  display: block;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 24px;
  list-style: none;
}

.nav-link {
  font-family: var(--font-robotic);
  font-size: 0.9rem;
  font-weight: 600;
  color: #334155;
  transition: color 0.2s ease;
}

.nav-link:hover {
  color: var(--brand-main);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Dropdown Language Menu */
.agent-lang-dropdown {
  position: relative;
}

.agent-lang-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(144, 41, 67, 0.2);
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
  padding: 8px;
  min-width: 140px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all 0.25s ease;
  z-index: 2000;
}

.agent-lang-menu.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* Mobile Toggle Hamburger Button */
.mobile-toggle-btn {
  background: rgba(144, 41, 67, 0.08);
  border: 1px solid rgba(144, 41, 67, 0.2);
  border-radius: 10px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-main);
  font-size: 1.1rem;
  cursor: pointer;
}

/* Mobile Navigation Drawer */
.mobile-nav-drawer {
  position: fixed;
  top: 0;
  right: -100%;
  width: 85%;
  max-width: 340px;
  height: 100vh;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border-left: 1px solid var(--glass-border);
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.15);
  z-index: 2000;
  transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
}

.mobile-nav-drawer.active {
  right: 0;
}

.mobile-drawer-header {
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.mobile-close-btn {
  background: none;
  border: none;
  font-size: 1.4rem;
  color: #0f172a;
  cursor: pointer;
}

.mobile-drawer-body {
  padding: 20px;
  overflow-y: auto;
  flex: 1;
}

.mobile-nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
}

.mobile-nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.03);
  color: #0f172a;
  font-weight: 600;
  font-size: 0.95rem;
}

.mobile-nav-item:hover {
  background: rgba(144, 41, 67, 0.08);
  color: var(--brand-main);
}

/* ===== HOMEPAGE HERO SECTION ===== */
.hero-section {
  padding: 120px 20px 60px;
  text-align: center;
  max-width: 960px;
  margin: 0 auto;
}

.hero-title {
  font-size: clamp(2rem, 5vw, 3.4rem);
  font-weight: 800;
  line-height: 1.25;
  margin: 20px 0;
  color: #0f172a;
}

.hero-sub {
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: var(--text-muted);
  max-width: 780px;
  margin: 0 auto 32px;
  line-height: 1.7;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.text-gradient {
  background: var(--grad-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ===== CATEGORIES & TIERS SECTION ===== */
.tiers-section {
  padding: 60px 20px;
  max-width: 1280px;
  margin: 0 auto;
}

.section-title {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 800;
  text-align: center;
  margin-bottom: 8px;
  color: #0f172a;
}

.section-sub {
  font-size: 1rem;
  color: var(--text-muted);
  text-align: center;
  max-width: 680px;
  margin: 0 auto 40px;
}

.tiers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  align-items: stretch;
}

.tier-card {
  padding: 32px;
  border-radius: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
}

.tier-card.featured {
  border: 2px solid var(--brand-main);
  box-shadow: 0 20px 50px rgba(144, 41, 67, 0.2);
}

.tier-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 9999px;
  font-size: 0.72rem;
  font-weight: 800;
  color: #fff;
  background: var(--grad-brand);
  margin-bottom: 12px;
}

.tier-name {
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 8px;
  color: #0f172a;
}

.tier-fee {
  font-family: var(--font-robotic);
  font-size: 2rem;
  font-weight: 900;
  color: var(--brand-main);
  margin-bottom: 12px;
}

.tier-features {
  list-style: none;
  margin: 20px 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 0.9rem;
  color: #334155;
}

.tier-features li {
  display: flex;
  align-items: center;
  gap: 10px;
}

.tier-features i {
  color: var(--accent-emerald);
}

/* ===== COMMISSION CALCULATOR SECTION ===== */
.calc-box {
  max-width: 850px;
  margin: 0 auto;
  padding: 36px;
  border-radius: 28px;
}

.calc-slider-group {
  margin-bottom: 28px;
}

.slider-label {
  display: flex;
  justify-content: space-between;
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 10px;
  color: #0f172a;
}

.range-slider {
  width: 100%;
  height: 8px;
  border-radius: 4px;
  background: rgba(144, 41, 67, 0.15);
  outline: none;
  accent-color: var(--brand-main);
  cursor: pointer;
}

.calc-results {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  text-align: center;
  padding-top: 24px;
  border-top: 1px solid rgba(144, 41, 67, 0.15);
}

.res-val {
  font-family: var(--font-robotic);
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 900;
  color: var(--brand-main);
  margin-top: 4px;
}

/* ===== SOFT LIGHT LIQUID GLASS PANELS ===== */
.glass-panel {
  background: var(--grad-glass);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  box-shadow: var(--glass-shadow);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.glass-panel::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(144, 41, 67, 0.4), transparent);
}

.glass-panel:hover {
  border-color: rgba(144, 41, 67, 0.35);
  transform: translateY(-4px);
}

/* Glass Header */
.glass-header {
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--glass-border);
}

/* Glass Pills & Badges */
.glass-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(144, 41, 67, 0.08);
  border: 1px solid rgba(144, 41, 67, 0.2);
  border-radius: 9999px;
  color: var(--brand-main);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* ===== LIQUID GLASS BUTTONS ===== */
.btn-liquid {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 14px;
  font-family: var(--font-robotic);
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  border: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
  text-decoration: none;
}

.btn-brand {
  background: var(--grad-brand);
  color: #ffffff;
  box-shadow: 0 8px 25px rgba(144, 41, 67, 0.3);
}

.btn-brand:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 12px 35px rgba(144, 41, 67, 0.45);
  color: #ffffff;
}

.btn-emerald {
  background: var(--grad-emerald);
  color: #ffffff;
  box-shadow: 0 8px 25px rgba(5, 150, 105, 0.3);
}

.btn-emerald:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 12px 35px rgba(5, 150, 105, 0.45);
}

.btn-glass {
  background: rgba(255, 255, 255, 0.85);
  color: #0f172a;
  border: 1px solid rgba(144, 41, 67, 0.2);
}

.btn-glass:hover {
  background: #ffffff;
  border-color: var(--brand-main);
  transform: translateY(-2px);
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.85rem;
  border-radius: 10px;
}

.w-100 { width: 100% !important; }

/* ===== DASHBOARDS SIDEBAR LAYOUT & RIGHT SECTION VIEW ===== */
.dashboard-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 30px 20px 80px;
}

.dashboard-layout-wrapper {
  display: flex;
  gap: 28px;
  align-items: flex-start;
}

/* Left Liquid Glass Sidebar */
.dashboard-sidebar {
  width: 300px;
  min-width: 300px;
  position: sticky;
  top: 90px;
  padding: 20px;
  border-radius: 24px;
}

.sidebar-brand-badge {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 18px;
  margin-bottom: 18px;
  border-bottom: 1px solid rgba(144, 41, 67, 0.15);
}

.sidebar-nav-menu {
  display: flex;
  flex-direction: column;
  gap: 8px;
  list-style: none;
}

.sidebar-nav-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  border-radius: 14px;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-family: var(--font-robotic);
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  width: 100%;
  text-align: left;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.sidebar-nav-item i {
  font-size: 1.1rem;
  width: 20px;
  text-align: center;
  transition: transform 0.2s ease;
}

.sidebar-nav-item:hover {
  background: rgba(144, 41, 67, 0.08);
  color: var(--brand-main);
  transform: translateX(4px);
}

.sidebar-nav-item.active {
  background: var(--grad-brand);
  color: #ffffff;
  box-shadow: 0 8px 25px rgba(144, 41, 67, 0.3);
}

.sidebar-nav-item.active i {
  color: #ffffff !important;
  transform: scale(1.1);
}

/* Right-Hand Main Content View Panel */
.dashboard-main-content {
  flex: 1;
  min-width: 0;
}

.dash-section {
  display: none;
  animation: fadeInSection 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.dash-section.active-section {
  display: block;
}

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

.dash-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 28px;
}

.dash-title {
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  font-weight: 800;
  color: #0f172a;
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-bottom: 32px;
}

.metric-card {
  padding: 24px;
  border-radius: 20px;
}

.metric-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}

.metric-value {
  font-family: var(--font-robotic);
  font-size: clamp(1.8rem, 3.5vw, 2.4rem);
  font-weight: 900;
  color: #0f172a;
  margin-bottom: 4px;
}

.glass-card {
  padding: 28px;
  border-radius: 24px;
}

/* Glass Tables Desktop Styling */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: 16px;
}

.glass-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 0.9rem;
}

.glass-table th {
  background: rgba(144, 41, 67, 0.06);
  color: #0f172a;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  padding: 16px;
  text-align: left;
  border-bottom: 2px solid rgba(144, 41, 67, 0.15);
  white-space: nowrap;
}

.glass-table td {
  padding: 16px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  color: #334155;
  vertical-align: middle;
}

.glass-table tr:last-child td {
  border-bottom: none;
}

.glass-table tr:hover td {
  background: rgba(144, 41, 67, 0.03);
}

/* Status Badges */
.badge-status {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
}

.status-approved, .status-won {
  background: rgba(16, 185, 129, 0.15);
  color: #059669;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.status-pending {
  background: rgba(245, 158, 11, 0.15);
  color: #d97706;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.status-rejected {
  background: rgba(239, 68, 68, 0.15);
  color: #dc2626;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

/* Language Selector Dropdown */
.lang-selector-container {
  position: relative;
}

.lang-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(144, 41, 67, 0.2);
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
  padding: 8px;
  min-width: 140px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all 0.25s ease;
  z-index: 2000;
}

.lang-dropdown-menu.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.lang-opt {
  padding: 8px 14px;
  background: transparent;
  border: none;
  border-radius: 8px;
  text-align: left;
  font-size: 0.88rem;
  font-weight: 600;
  color: #0f172a;
  cursor: pointer;
  transition: background 0.2s ease;
}

.lang-opt:hover, .lang-opt.active {
  background: rgba(144, 41, 67, 0.1);
  color: var(--brand-main);
}

/* Forms */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}

.form-label {
  font-size: 0.88rem;
  font-weight: 600;
  color: #0f172a;
}

.form-control {
  width: 100%;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(144, 41, 67, 0.25);
  border-radius: 12px;
  color: #0f172a;
  font-family: inherit;
  font-size: 0.95rem;
  outline: none;
  transition: all 0.2s ease;
  min-height: 48px;
}

.form-control:focus {
  border-color: var(--brand-main);
  background: #ffffff;
  box-shadow: 0 0 15px var(--brand-glow);
}

.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%23902943' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 18px center;
}

/* Modal */
.modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(12px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-content {
  max-width: 620px;
  width: 100%;
  max-height: 92vh;
  overflow-y: auto;
  padding: 24px;
}

/* ===== FOOTER STYLES ===== */
.footer-liquid {
  background: #0f172a;
  color: #94a3b8;
  padding: 60px 20px 40px;
  margin-top: 80px;
  position: relative;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  width: 100%;
}

.footer-content {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 40px;
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-top: 8px;
}

.social-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px !important;
  height: 44px !important;
  min-width: 44px !important;
  min-height: 44px !important;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  transition: all 0.25s ease;
  overflow: hidden;
}

.social-btn:hover {
  transform: translateY(-3px);
  background: rgba(144, 41, 67, 0.25);
  border-color: var(--brand-main);
}

.social-icon-img {
  width: 32px !important;
  height: 32px !important;
  max-width: 32px !important;
  max-height: 32px !important;
  object-fit: contain !important;
  border-radius: 6px;
  display: block;
}

/* ===== SMARTPHONE FLOATING BOTTOM DOCK NAVIGATION ===== */
.mobile-bottom-dock {
  position: fixed;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 24px);
  max-width: 480px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(144, 41, 67, 0.25);
  border-radius: 9999px;
  box-shadow: 0 12px 40px rgba(144, 41, 67, 0.2);
  padding: 8px 12px;
  display: flex;
  align-items: center;
  justify-content: space-around;
  z-index: 1900;
}

.dock-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  color: var(--text-muted);
  font-size: 0.7rem;
  font-weight: 600;
  text-decoration: none;
  padding: 4px 8px;
  border-radius: 12px;
  transition: all 0.2s ease;
}

.dock-item i {
  font-size: 1.1rem;
}

.dock-item.active, .dock-item:hover {
  color: var(--brand-main);
  background: rgba(144, 41, 67, 0.08);
}

/* ===== RESPONSIVE MEDIA QUERIES ===== */
@media (max-width: 992px) {
  .dashboard-layout-wrapper {
    flex-direction: column;
    gap: 20px;
  }

  .dashboard-sidebar {
    width: 100%;
    min-width: 100%;
    position: static;
    padding: 12px;
  }

  .sidebar-nav-menu {
    flex-direction: row;
    overflow-x: auto;
    gap: 8px;
    padding-bottom: 4px;
  }

  .sidebar-nav-item {
    white-space: nowrap;
    padding: 10px 14px;
    font-size: 0.82rem;
  }
}

/* SMARTPHONE RESPONSIVE TABLE & RECORD LISTINGS CARDS (<= 768px) */
@media (max-width: 768px) {
  .navbar-liquid {
    padding: 8px 16px;
    width: 95%;
    top: 8px;
  }

  .nav-brand-img {
    height: 34px !important;
    max-height: 34px !important;
  }

  .dashboard-container {
    padding: 16px 12px 90px;
  }

  .dash-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .w-100-mobile {
    width: 100% !important;
  }

  .metrics-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 12px !important;
  }

  .metric-card {
    padding: 16px !important;
    border-radius: 16px !important;
  }

  .metric-title {
    font-size: 0.72rem !important;
  }

  .metric-value {
    font-size: 1.4rem !important;
  }

  .glass-card {
    padding: 16px !important;
    border-radius: 18px !important;
  }

  .calc-results {
    grid-template-columns: 1fr !important;
  }

  /* Transform Tables into Mobile Responsive Cards */
  .table-responsive {
    border-radius: 14px;
    border: none;
    overflow-x: visible !important;
  }

  .glass-table, 
  .glass-table tbody, 
  .glass-table tr, 
  .glass-table td {
    display: block;
    width: 100% !important;
    box-sizing: border-box;
  }

  .glass-table thead {
    display: none;
  }

  .glass-table tr {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 14px 16px;
    margin-bottom: 14px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
  }

  .glass-table td {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0 !important;
    border-bottom: 1px dashed rgba(0, 0, 0, 0.08) !important;
    font-size: 0.85rem;
    text-align: right;
  }

  .glass-table td:last-child {
    border-bottom: none !important;
    padding-bottom: 0 !important;
  }

  .glass-table td[data-label]::before {
    content: attr(data-label);
    font-weight: 700;
    color: var(--text-muted);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    text-align: left;
    padding-right: 12px;
    flex-shrink: 0;
  }
}

@media (max-width: 480px) {
  .metrics-grid {
    grid-template-columns: 1fr !important;
  }
}
