/**
 * PASAR SENIMAN Design System & Custom CSS
 * Artistic, Creative & Modern Marketplace Aesthetic
 * Color Palette:
 * - Royal Artistic Indigo: #5B45B2 (Primary)
 * - Creative Coral Accent: #FF6B4A (Secondary/Accent)
 * - Deep Charcoal: #1E2022 (Dark Neutral)
 * - Pristine Off-White: #F8F9FA (Background Neutral)
 * - Soft Border & Surface: #E9ECEF
 */

:root {
  --sm-primary: #5B45B2;
  --sm-primary-hover: #483594;
  --sm-primary-light: #F0EDF9;
  --sm-secondary: #FF6B4A;
  --sm-secondary-hover: #E55737;
  --sm-secondary-light: #FFF0ED;
  --sm-dark: #1E2022;
  --sm-dark-rgb: 30, 32, 34;
  --sm-light: #F8F9FA;
  --sm-border: #E9ECEF;
  --sm-muted: #6C757D;
  --sm-card-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  --sm-hover-shadow: 0 10px 25px rgba(91, 69, 178, 0.12);
  --sm-radius: 12px;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background-color: var(--sm-light);
  color: var(--sm-dark);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1 0 auto;
}

/* Custom Typography & Links */
a {
  color: var(--sm-primary);
  text-decoration: none;
  transition: all 0.2s ease-in-out;
}
a:hover {
  color: var(--sm-primary-hover);
}

.text-primary-sm { color: var(--sm-primary) !important; }
.bg-primary-sm { background-color: var(--sm-primary) !important; }
.text-secondary-sm { color: var(--sm-secondary) !important; }
.bg-secondary-sm { background-color: var(--sm-secondary) !important; }

/* Buttons */
.btn-primary-sm {
  background-color: var(--sm-primary);
  border-color: var(--sm-primary);
  color: #fff;
  border-radius: 8px;
  padding: 0.5rem 1.25rem;
  font-weight: 500;
  transition: all 0.2s ease;
}
.btn-primary-sm:hover, .btn-primary-sm:focus {
  background-color: var(--sm-primary-hover);
  border-color: var(--sm-primary-hover);
  color: #fff;
  box-shadow: 0 4px 12px rgba(91, 69, 178, 0.25);
}

.btn-secondary-sm {
  background-color: var(--sm-secondary);
  border-color: var(--sm-secondary);
  color: #fff;
  border-radius: 8px;
  padding: 0.5rem 1.25rem;
  font-weight: 500;
}
.btn-secondary-sm:hover, .btn-secondary-sm:focus {
  background-color: var(--sm-secondary-hover);
  border-color: var(--sm-secondary-hover);
  color: #fff;
  box-shadow: 0 4px 12px rgba(255, 107, 74, 0.25);
}

.btn-outline-primary-sm {
  border: 1.5px solid var(--sm-primary);
  color: var(--sm-primary);
  border-radius: 8px;
  background: transparent;
  font-weight: 500;
}
.btn-outline-primary-sm:hover {
  background: var(--sm-primary);
  color: #fff;
}

/* Navbar */
.navbar-sm, .navbar.sticky-top {
  background: #ffffff;
  border-bottom: 1px solid var(--sm-border);
  box-shadow: 0 2px 10px rgba(0,0,0,0.03);
  padding: 0.75rem 0;
  z-index: 1030 !important;
}

/* Pastikan semua dropdown menu di navbar tampil di atas semua elemen sticky dan card konten */
.navbar .dropdown-menu {
  z-index: 1060 !important;
}

/* Elemen sticky di dalam konten halaman tidak boleh menutupi dropdown navbar */
.card.sticky-top,
.sidebar-sticky {
  z-index: 10 !important;
}
.navbar-brand-logo {
  font-weight: 800;
  letter-spacing: -0.5px;
  font-size: 1.4rem;
  color: var(--sm-primary) !important;
  display: flex;
  align-items: center;
  gap: 10px;
}
.navbar-brand-logo span {
  color: var(--sm-secondary);
}
.navbar-logo-img {
  height: 38px;
  width: auto;
  max-width: 44px;
  object-fit: contain;
  vertical-align: middle;
  display: inline-block;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,0.06));
}
.brand-logo-img-auth {
  height: 64px;
  width: auto;
  max-width: 72px;
  object-fit: contain;
  display: block;
  margin: 0 auto 0.75rem auto;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.08));
}

/* Search bar on navbar */
.navbar-search-input {
  border-radius: 50px;
  padding-left: 2.5rem;
  background-color: #f1f3f5;
  border: 1px solid transparent;
  font-size: 0.9rem;
}
.navbar-search-input:focus {
  background-color: #ffffff;
  border-color: var(--sm-primary);
  box-shadow: 0 0 0 3px rgba(91, 69, 178, 0.15);
}
.navbar-search-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--sm-muted);
}

/* Animated Expandable Icon Navbar Menu */
@media (min-width: 992px) {
  .nav-icon-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 38px;
    min-width: 38px;
    padding: 0 11px !important;
    border-radius: 50px;
    background-color: #f8f9fa;
    border: 1px solid var(--sm-border);
    color: #495057 !important;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    white-space: nowrap;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  }

  .nav-icon-pill .nav-icon {
    font-size: 1.15rem;
    line-height: 1;
    color: var(--sm-primary);
    transition: transform 0.25s ease, color 0.25s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
  }

  .nav-icon-pill .nav-icon-label {
    display: inline-block;
    max-width: 0;
    opacity: 0;
    overflow: hidden;
    white-space: nowrap;
    margin-left: 0;
    font-size: 0.86rem;
    font-weight: 600;
    color: var(--sm-primary);
    transform: translateX(-8px);
    transition: max-width 0.35s cubic-bezier(0.4, 0, 0.2, 1),
                opacity 0.25s ease,
                transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                margin-left 0.3s ease;
  }

  .nav-icon-pill:hover,
  .nav-icon-pill:focus-visible {
    background-color: var(--sm-primary-light);
    border-color: rgba(91, 69, 178, 0.28);
    box-shadow: 0 3px 12px rgba(91, 69, 178, 0.14);
    color: var(--sm-primary) !important;
  }

  .nav-icon-pill:hover .nav-icon,
  .nav-icon-pill:focus-visible .nav-icon {
    transform: scale(1.12);
  }

  .nav-icon-pill:hover .nav-icon-label,
  .nav-icon-pill:focus-visible .nav-icon-label {
    max-width: 170px;
    opacity: 1;
    transform: translateX(0);
    margin-left: 8px;
    padding-right: 4px;
  }
}

@media (max-width: 991.98px) {
  .nav-icon-pill {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0.65rem 1rem !important;
    border-radius: 10px;
    color: #495057 !important;
    text-decoration: none;
    transition: background 0.2s ease;
  }

  .nav-icon-pill:hover {
    background-color: #f1f3f5;
  }

  .nav-icon-pill .nav-icon {
    font-size: 1.2rem;
    color: var(--sm-primary);
  }

  .nav-icon-pill .nav-icon-label {
    display: inline-block;
    font-size: 0.92rem;
    font-weight: 500;
    color: #212529;
  }
}

/* Mode Switcher Pill Banner */
.mode-switcher-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0.35rem 0.8rem;
  border-radius: 50px;
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
}
.mode-customer {
  background: #E8F4FD;
  color: #0C63E4;
  border: 1px solid #B6D4FE;
}
.mode-artist {
  background: var(--sm-secondary-light);
  color: var(--sm-secondary);
  border: 1px solid #FFD4CC;
}
.mode-switcher-badge:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

/* Cards & Service Cards */
.card-service {
  background: #ffffff;
  border: 1px solid var(--sm-border);
  border-radius: var(--sm-radius);
  overflow: hidden;
  transition: all 0.25s ease-in-out;
  box-shadow: var(--sm-card-shadow);
  display: flex;
  flex-direction: column;
  height: 100%;
}
.card-service:hover {
  transform: translateY(-4px);
  box-shadow: var(--sm-hover-shadow);
  border-color: #D3CDEE;
}
.service-img-wrapper {
  position: relative;
  width: 100%;
  padding-top: 66.66%; /* 3:2 ratio */
  background: #eaecef;
  overflow: hidden;
}
.service-img-wrapper img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.card-service:hover .service-img-wrapper img {
  transform: scale(1.04);
}
.service-type-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 50px;
  backdrop-filter: blur(4px);
}

/* Universal Responsive Image Rules */
img {
  max-width: 100%;
  height: auto;
}

/* Artist Avatar & Verified Badge (Enforced Fixed Dimensions & Auto-Crop) */
.artist-avatar-sm {
  width: 32px !important;
  height: 32px !important;
  min-width: 32px !important;
  min-height: 32px !important;
  max-width: 32px !important;
  max-height: 32px !important;
  aspect-ratio: 1 / 1 !important;
  border-radius: 50% !important;
  object-fit: cover !important;
  border: 1.5px solid #fff;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  display: inline-block;
  flex-shrink: 0;
}
.artist-avatar-md {
  width: 54px !important;
  height: 54px !important;
  min-width: 54px !important;
  min-height: 54px !important;
  max-width: 54px !important;
  max-height: 54px !important;
  aspect-ratio: 1 / 1 !important;
  border-radius: 50% !important;
  object-fit: cover !important;
  border: 2px solid #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  display: inline-block;
  flex-shrink: 0;
}
.artist-avatar-lg {
  width: 90px !important;
  height: 90px !important;
  min-width: 90px !important;
  min-height: 90px !important;
  max-width: 90px !important;
  max-height: 90px !important;
  aspect-ratio: 1 / 1 !important;
  border-radius: 50% !important;
  object-fit: cover !important;
  border: 3px solid #fff;
  box-shadow: 0 4px 14px rgba(0,0,0,0.15);
  display: inline-block;
  flex-shrink: 0;
}
.artist-avatar-xl {
  width: 120px !important;
  height: 120px !important;
  min-width: 120px !important;
  min-height: 120px !important;
  max-width: 120px !important;
  max-height: 120px !important;
  aspect-ratio: 1 / 1 !important;
  border-radius: 50% !important;
  object-fit: cover !important;
  border: 4px solid #fff;
  box-shadow: 0 6px 18px rgba(0,0,0,0.15);
  display: inline-block;
  flex-shrink: 0;
}
.verified-icon {
  color: #0d6efd;
  font-size: 0.95em;
}

/* Category Pill & Category Grid */
.category-card {
  background: #ffffff;
  border: 1px solid var(--sm-border);
  border-radius: var(--sm-radius);
  padding: 1.25rem 1rem;
  text-align: center;
  transition: all 0.2s ease;
  box-shadow: var(--sm-card-shadow);
  display: block;
  color: var(--sm-dark);
}
.category-card:hover {
  border-color: var(--sm-primary);
  transform: translateY(-3px);
  box-shadow: var(--sm-hover-shadow);
  color: var(--sm-primary);
}
.category-icon-wrapper {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  background: var(--sm-primary-light);
  color: var(--sm-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 0.75rem auto;
  font-size: 1.5rem;
}

/* Hero Section with Background Banner Slider */
.hero-section {
  position: relative;
  overflow: hidden;
  color: #ffffff;
  padding: 4.5rem 0;
  background-color: #1a103c; /* fallback color */
  min-height: 520px;
}

.hero-carousel {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hero-carousel .carousel-inner,
.hero-carousel .carousel-item {
  width: 100%;
  height: 100%;
}

.hero-slide-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.05);
  transition: transform 6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.hero-carousel .carousel-item.active .hero-slide-img {
  transform: scale(1);
}

/* Semi-transparent artistic dark-purple gradient overlay for crisp text contrast */
.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(20, 14, 48, 0.86) 0%, rgba(42, 27, 107, 0.78) 50%, rgba(18, 12, 42, 0.84) 100%);
  z-index: 2;
  pointer-events: none;
}

/* Hero Carousel Controls & Indicators */
.hero-carousel .carousel-indicators {
  margin-bottom: 1.25rem;
  z-index: 4;
}

.hero-carousel .carousel-indicators [data-bs-target] {
  width: 32px;
  height: 5px;
  border-radius: 4px;
  background-color: rgba(255, 255, 255, 0.5);
  border: none;
  transition: all 0.3s ease;
}

.hero-carousel .carousel-indicators .active {
  width: 50px;
  background-color: var(--sm-secondary);
}

.hero-carousel-control {
  width: 5%;
  opacity: 0.4;
  transition: opacity 0.25s ease;
  z-index: 4;
}

.hero-carousel-control:hover {
  opacity: 0.95;
}

/* Dashboard Sidebar & Nav */
.sidebar-wrapper {
  background: #ffffff;
  border: 1px solid var(--sm-border);
  border-radius: var(--sm-radius);
  box-shadow: var(--sm-card-shadow);
  overflow: hidden;
}
.sidebar-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0.75rem 1.25rem;
  color: #495057;
  font-weight: 500;
  border-left: 3px solid transparent;
  transition: all 0.15s ease;
}
.sidebar-link i {
  font-size: 1.15rem;
  color: var(--sm-muted);
}
.sidebar-link:hover {
  background-color: #f8f9fa;
  color: var(--sm-primary);
}
.sidebar-link.active {
  background-color: var(--sm-primary-light);
  color: var(--sm-primary);
  border-left-color: var(--sm-primary);
  font-weight: 600;
}
.sidebar-link.active i {
  color: var(--sm-primary);
}

/* Order Status Badges (13 States) */
.badge-status {
  padding: 0.4rem 0.75rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.75rem;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.status-pending_payment { background: #FFF3CD; color: #856404; }
.status-payment_verification { background: #CFE2FF; color: #084298; }
.status-paid { background: #D1E7DD; color: #0F5132; }
.status-waiting_artist { background: #E2D9F3; color: #5B45B2; }
.status-in_progress { background: #CFF4FC; color: #055160; }
.status-waiting_review { background: #FDE8E4; color: #B33D22; }
.status-revision_requested { background: #FCE8E6; color: #C92A2A; }
.status-revision_in_progress { background: #FFF0F6; color: #A61E4D; }
.status-completed { background: #D1E7DD; color: #0F5132; }
.status-cancellation_requested { background: #F8D7DA; color: #842029; }
.status-cancelled { background: #E9ECEF; color: #495057; }
.status-disputed { background: #F8D7DA; color: #842029; font-weight: 700; }
.status-refunded { background: #D3D3D3; color: #212529; }

/* Timeline Step Visualizer */
.order-timeline {
  position: relative;
  padding-left: 2rem;
  border-left: 2px dashed #CED4DA;
  margin-left: 1rem;
}
.timeline-item {
  position: relative;
  margin-bottom: 1.5rem;
}
.timeline-item::before {
  content: "";
  position: absolute;
  left: -2.45rem;
  top: 0.2rem;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--sm-primary);
  border: 3px solid #fff;
  box-shadow: 0 0 0 2px var(--sm-primary);
}
.timeline-item.past::before {
  background: #198754;
  box-shadow: 0 0 0 2px #198754;
}

/* Chat Layout */
.chat-container {
  height: 650px;
  background: #ffffff;
  border: 1px solid var(--sm-border);
  border-radius: var(--sm-radius);
  overflow: hidden;
  box-shadow: var(--sm-card-shadow);
}
.chat-message-list {
  height: 480px;
  overflow-y: auto;
  padding: 1.25rem;
  background-color: #f9fbfd;
}
.chat-bubble {
  max-width: 75%;
  padding: 0.75rem 1rem;
  border-radius: 14px;
  margin-bottom: 0.75rem;
  position: relative;
  font-size: 0.92rem;
  line-height: 1.45;
}
.chat-bubble.mine {
  background-color: var(--sm-primary);
  color: #ffffff;
  margin-left: auto;
  border-bottom-right-radius: 2px;
}
.chat-bubble.theirs {
  background-color: #ffffff;
  color: var(--sm-dark);
  margin-right: auto;
  border: 1px solid var(--sm-border);
  border-bottom-left-radius: 2px;
}

/* Footer */
.footer-sm {
  background: #141618;
  color: #adb5bd;
  border-top: 1px solid #2b2f33;
}
.footer-sm a {
  color: #ced4da;
}
.footer-sm a:hover {
  color: #ffffff;
}

/* Password Visibility Toggle */
.btn-toggle-password {
  background-color: #f8f9fa;
  border-color: #dee2e6;
  color: #6c757d;
  cursor: pointer;
  transition: all 0.15s ease-in-out;
}
.btn-toggle-password:hover,
.btn-toggle-password:focus {
  background-color: #e9ecef;
  color: var(--sm-primary);
  border-color: #dee2e6;
  box-shadow: none;
}

/* ========================================================================== */
/* DESKTOP-FIRST & ADAPTIVE MOBILE LAYOUT ENGINE                             */
/* ========================================================================== */

/* --- 1. Global Viewport & Overflow Safety --- */
html {
  box-sizing: border-box;
  -webkit-text-size-adjust: 100%;
}
*, *:before, *:after {
  box-sizing: inherit;
}
html, body {
  max-width: 100%;
  overflow-x: hidden;
}

/* --- 2. Desktop-First Base & Large Desktop Breakpoints (>= 1920px) --- */
@media (min-width: 1920px) {
  .container, .container-lg, .container-xl, .container-xxl {
    max-width: 1720px;
  }
  .display-4 {
    font-size: 3.5rem;
  }
}

/* --- 3. Standard Desktop Breakpoint (1280px - 1919.98px) --- */
@media (min-width: 1280px) and (max-width: 1919.98px) {
  .container, .container-lg, .container-xl {
    max-width: 1240px;
  }
}

/* --- 4. Small Laptop Breakpoint (1024px - 1279.98px) --- */
@media (min-width: 1024px) and (max-width: 1279.98px) {
  .container {
    max-width: 990px;
  }
  .admin-sidebar a {
    padding: 0.65rem 1rem;
    font-size: 0.85rem;
  }
}

/* --- 5. Tablet Experience Breakpoint (768px - 1023.98px) --- */
@media (min-width: 768px) and (max-width: 1023.98px) {
  .mobile-bottom-nav {
    display: none !important;
  }
  .admin-sidebar {
    min-height: 100vh;
  }
  .card-service {
    margin-bottom: 1rem;
  }
  .modal-dialog {
    max-width: 82% !important;
  }
}

/* --- 6. Smartphone Experience Breakpoint (<= 767.98px) --- */
@media (max-width: 767.98px) {
  /* Prevent background scroll when offcanvas/modal active */
  body.has-mobile-bottom-nav {
    padding-bottom: 74px !important;
  }

  /* Typography Scales for Smartphone */
  h1, .h1 { font-size: 1.75rem; }
  h2, .h2 { font-size: 1.45rem; }
  h3, .h3 { font-size: 1.25rem; }
  h4, .h4 { font-size: 1.15rem; }
  h5, .h5 { font-size: 1.05rem; }
  h6, .h6 { font-size: 0.95rem; }

  /* Navbar Adjustments on Mobile */
  .navbar-sm, .navbar.sticky-top {
    padding: 0.5rem 0;
  }
  .navbar-brand-logo {
    font-size: 1.2rem;
    gap: 8px;
  }
  .navbar-logo-img {
    height: 32px;
  }

  /* Offcanvas Drawers on Smartphone */
  .offcanvas-lg.offcanvas-start {
    width: 290px !important;
    max-width: 86vw !important;
    box-shadow: 4px 0 25px rgba(0, 0, 0, 0.2);
    border-right: 1px solid var(--sm-border);
  }
  .offcanvas-lg.admin-sidebar {
    width: 290px !important;
    background-color: #1a1e24 !important;
  }

  /* Form Controls Touch Targets (Min 44px & 16px Font to Prevent iOS Auto-Zoom) */
  input[type="text"],
  input[type="email"],
  input[type="password"],
  input[type="number"],
  input[type="search"],
  input[type="tel"],
  input[type="url"],
  input[type="date"],
  select.form-select,
  textarea.form-control,
  .form-control {
    font-size: 16px !important;
    min-height: 44px;
    border-radius: 10px;
  }
  select.form-select-sm,
  .form-control-sm {
    min-height: 38px;
    font-size: 15px !important;
  }
  .form-label {
    font-size: 0.88rem;
    font-weight: 600;
    margin-bottom: 0.35rem;
  }

  /* Interactive Buttons Touch Targets */
  .btn {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    padding: 0.55rem 1.15rem;
    border-radius: 9px;
  }
  .btn-sm {
    min-height: 36px;
    padding: 0.4rem 0.85rem;
    font-size: 0.84rem;
  }

  /* Hero Section Adaptations on Mobile */
  .hero-section {
    min-height: 400px;
    padding: 2.75rem 0.5rem;
  }
  .hero-section .display-4 {
    font-size: 1.85rem !important;
    line-height: 1.25 !important;
    margin-bottom: 0.75rem !important;
  }
  .hero-section .lead {
    font-size: 0.95rem !important;
    line-height: 1.45 !important;
    margin-bottom: 1.25rem !important;
  }

  /* Table Momentum Touch Scroll & Shadow */
  .table-responsive {
    -webkit-overflow-scrolling: touch;
    border-radius: 10px;
    margin-bottom: 1rem;
    position: relative;
    border: 1px solid var(--sm-border);
  }
  .table-responsive table {
    margin-bottom: 0;
    min-width: 620px;
  }
  .table th, .table td {
    padding: 0.75rem 0.65rem;
    font-size: 0.85rem;
  }

  /* Modals Optimization for Mobile Viewports */
  .modal-dialog {
    margin: 0.5rem auto !important;
    max-width: calc(100% - 1rem) !important;
  }
  .modal-content {
    border-radius: 16px !important;
  }
  .modal-header {
    padding: 1rem 1.25rem !important;
  }
  .modal-body {
    padding: 1.25rem !important;
    max-height: 75vh;
    overflow-y: auto;
  }
  .modal-footer {
    padding: 0.75rem 1.25rem !important;
    flex-wrap: nowrap;
  }
  .modal-footer .btn {
    flex: 1;
  }

  /* Chat Interface on Mobile */
  .chat-sidebar-col,
  .chat-window-col {
    height: calc(100vh - 180px) !important;
    min-height: 480px;
  }
  .chat-message-list {
    height: auto !important;
    flex-grow: 1 !important;
    padding: 0.85rem;
  }
  .chat-bubble {
    max-width: 86% !important;
    font-size: 0.88rem !important;
    padding: 0.65rem 0.85rem !important;
  }

  /* Dropdown Menus on Mobile (Prevent Overflow Off-screen) */
  .dropdown-menu-end {
    right: 0 !important;
    left: auto !important;
    max-width: calc(100vw - 24px) !important;
  }

  /* Card and Spacing Adjustments */
  .card {
    border-radius: 12px;
  }
  .container {
    padding-left: 14px;
    padding-right: 14px;
  }
}

/* --- 7. Small Smartphone Breakpoint (<= 359.98px) --- */
@media (max-width: 359.98px) {
  .container {
    padding-left: 10px;
    padding-right: 10px;
  }
  .navbar-brand-logo {
    font-size: 1.05rem;
  }
  .navbar-logo-img {
    height: 28px;
  }
  .hero-section .display-4 {
    font-size: 1.6rem !important;
  }
  .bottom-nav-label {
    font-size: 0.64rem !important;
  }
  .bottom-nav-icon {
    font-size: 1.15rem !important;
  }
  .btn {
    padding: 0.45rem 0.75rem;
    font-size: 0.82rem;
  }
}

/* --- 8. Mobile Bottom Navigation Styling --- */
.mobile-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 62px;
  background-color: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 -4px 18px rgba(0, 0, 0, 0.05);
  z-index: 1040;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-bottom: env(safe-area-inset-bottom, 0);
}

.mobile-bottom-nav-inner {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 0 4px;
}

.bottom-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: #6c757d;
  font-size: 0.72rem;
  font-weight: 500;
  padding: 4px 6px;
  border-radius: 10px;
  transition: all 0.15s ease;
  min-width: 56px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.bottom-nav-icon {
  font-size: 1.25rem;
  line-height: 1.1;
  margin-bottom: 2px;
  transition: transform 0.15s ease, color 0.15s ease;
}

.bottom-nav-label {
  font-size: 0.7rem;
  letter-spacing: -0.2px;
  line-height: 1;
}

.bottom-nav-item:hover,
.bottom-nav-item:focus {
  color: var(--sm-primary);
}

.bottom-nav-item.active {
  color: var(--sm-primary) !important;
  font-weight: 700;
}

.bottom-nav-item.active .bottom-nav-icon {
  color: var(--sm-primary) !important;
  transform: translateY(-2px);
}



