/* =====================================================
   SIN PLATFORM 3.0 — Modern Marketplace Design System
   Theme: Clean Red (#DC2626), Yellow (#FACC15) & White (#FFFFFF)
   ===================================================== */

/* ---- Variables ---- */
:root {
  --primary: #DC2626;
  --primary-dark: #B91C1C;
  --primary-light: #FEE2E2;
  --primary-soft: #FEF2F2;
  --secondary: #FACC15;
  --secondary-dark: #EAB308;
  --danger: #EF4444;
  --success: #16A34A;
  --info: #0284C7;
  --rental: #B91C1C;
  --rental-light: #FEE2E2;
  --market: #DC2626;
  --market-light: #FEE2E2;
  --text: #0F172A;
  --text-2: #475569;
  --text-3: #94A3B8;
  --border: #E2E8F0;
  --bg: #FFFFFF;
  --white: #FFFFFF;
  --card-shadow: 0 2px 12px rgba(15, 23, 42, 0.05), 0 1px 3px rgba(15, 23, 42, 0.04);
  --card-shadow-hover: 0 12px 26px -6px rgba(220, 38, 38, 0.14), 0 4px 12px -2px rgba(15, 23, 42, 0.06);
  --radius: 16px;
  --radius-sm: 10px;
  --radius-full: 9999px;
  --transition: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  --font: 'Inter', 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --max-w: 1240px;

  --orange-50: #FEFCE8;
  --orange-100: #FEF9C3;
  --orange-200: #FEF08A;
  --orange-500: #DC2626;
  --orange-600: #B91C1C;
  --orange-700: #991B1B;
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  max-width: 100vw;
}
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  max-width: 100vw;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }
input, select, textarea {
  font-family: inherit;
  font-size: 0.94rem;
}

/* ---- Layout ---- */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 20px; position: relative; z-index: 1; }
.page { min-height: calc(100vh - 70px); padding-bottom: 64px; position: relative; z-index: 1; }

/* ---- Navigation (Glassmorphic Sticky Header) ---- */
#navbar {
  position: sticky; top: 0; z-index: 120;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1.5px solid #F1F5F9;
  box-shadow: 0 2px 12px rgba(15, 23, 42, 0.04);
}
.nav-inner {
  max-width: var(--max-w); margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 0 20px; height: 68px;
}
.nav-left {
  display: flex; align-items: center; gap: 16px; flex-shrink: 0;
}
.nav-section-links {
  display: flex; align-items: center; gap: 6px;
}
.nav-logo {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: 'Plus Jakarta Sans', var(--font);
  font-size: 1.45rem; font-weight: 800;
  color: var(--text);
  letter-spacing: -0.6px; flex-shrink: 0;
  cursor: pointer; user-select: none;
}
.nav-logo-badge {
  width: 36px; height: 36px; border-radius: 10px;
  background: linear-gradient(135deg, #EF4444 0%, #B91C1C 100%);
  color: #ffffff; display: inline-flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 10px rgba(185, 28, 28, 0.28);
  font-size: 1.15rem;
}
.nav-logo-text {
  background: linear-gradient(135deg, #0F172A 0%, #DC2626 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.nav-logo-tag {
  font-size: 0.68rem; font-weight: 700; color: #DC2626;
  background: #FEF9C3; padding: 2px 7px; border-radius: 999px;
  border: 1px solid #FDE047;
  letter-spacing: 0; -webkit-text-fill-color: #DC2626;
}
.nav-search {
  flex: 1; max-width: 440px; min-width: 180px;
  display: flex; align-items: center; gap: 8px;
  background: #F8FAFC; border: 1.5px solid #E2E8F0;
  border-radius: var(--radius-full); padding: 4px 5px 4px 14px;
  transition: all var(--transition);
}
.nav-search:focus-within {
  background: var(--white);
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.12);
}
.nav-search input {
  flex: 1; background: none; border: none; outline: none;
  font-size: 0.88rem; color: var(--text); font-weight: 500;
  min-width: 0;
}
.nav-search input::placeholder { color: #64748b; font-weight: 400; }
.nav-search-btn {
  background: var(--primary); color: white;
  border: none; border-radius: var(--radius-full);
  padding: 7px 16px; font-size: 0.82rem; font-weight: 700;
  cursor: pointer; transition: all var(--transition);
  flex-shrink: 0;
}
.nav-search-btn:hover { background: var(--primary-dark); transform: scale(1.02); }

.nav-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; margin-left: auto; }
.nav-link {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 12px; border-radius: var(--radius-full);
  font-size: 0.85rem; font-weight: 600; color: var(--text-2);
  transition: all var(--transition); cursor: pointer; white-space: nowrap;
}
.nav-link:hover { background: #f1f5f9; color: var(--text); }
.nav-link.active {
  background: var(--primary-light); color: var(--primary); font-weight: 700;
}
.nav-link.active-rental-nav {
  background: var(--rental-light); color: var(--rental); font-weight: 700;
}

/* Modern sleek icon buttons for Chat and Notification */
.nav-icon-btn {
  position: relative;
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  background: #ffffff;
  color: #475569;
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer; transition: all var(--transition);
  padding: 0; flex-shrink: 0;
}
.nav-icon-btn:hover {
  background: #f8fafc;
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-1px);
}
.nav-icon-badge {
  position: absolute;
  top: -3px; right: -3px;
  background: var(--primary);
  color: #ffffff;
  font-size: 0.65rem; font-weight: 800;
  min-width: 17px; height: 17px;
  padding: 0 4px; border-radius: 999px;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid #ffffff; line-height: 1;
}
.nav-icon-badge-danger { background: #ef4444; }

.nav-tasks-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 7px 12px;
  border-radius: 999px;
  background: #F8FAFC;
  color: #0F172A;
  border: 1.5px solid #E2E8F0;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
  flex-shrink: 0;
}
.nav-tasks-btn:hover {
  background: #F1F5F9;
  border-color: var(--primary);
  color: var(--primary);
}
.nav-tasks-btn.active {
  background: #DC2626;
  color: #FFFFFF;
  border-color: #DC2626;
  box-shadow: 0 4px 12px rgba(220, 38, 38, 0.25);
}
.nav-tasks-btn.active:hover {
  background: #B91C1C;
  border-color: #B91C1C;
  color: #FFFFFF;
}

.nav-admin-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 7px 13px;
  border-radius: 999px;
  background: #FEF2F2;
  color: #B91C1C;
  border: 1.5px solid #FECACA;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
  flex-shrink: 0;
}
.nav-admin-btn:hover {
  background: #FEE2E2;
  border-color: #FCA5A5;
}

.nav-avatar-role-badge {
  position: absolute; bottom: -2px; right: -2px;
  font-size: 0.6rem; font-weight: 800;
  padding: 1px 4px; border-radius: 999px;
  white-space: nowrap; border: 1.5px solid #ffffff;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  line-height: 1.1;
}

.btn-post {
  display: inline-flex; align-items: center; gap: 7px;
  background: linear-gradient(135deg, #EF4444 0%, #DC2626 50%, #B91C1C 100%);
  color: white; padding: 8px 16px; border-radius: var(--radius-full);
  font-weight: 700; font-size: 0.86rem; cursor: pointer; border: 1px solid rgba(253, 224, 71, 0.55);
  box-shadow: 0 4px 14px rgba(185, 28, 28, 0.3);
  transition: transform var(--transition), box-shadow var(--transition), filter var(--transition);
  white-space: nowrap; flex-shrink: 0;
}
.btn-post:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(185, 28, 28, 0.42);
  filter: brightness(1.04);
}
.nav-avatar {
  width: 38px; height: 38px; border-radius: 50%; cursor: pointer;
  border: 2px solid var(--primary-light); overflow: hidden;
  transition: all var(--transition); object-fit: cover; flex-shrink: 0;
}
.nav-avatar:hover { border-color: var(--primary); transform: scale(1.04); }

/* Mobile Search Sub-bar inside Navbar */
.nav-mobile-search-bar {
  display: none;
  padding: 0 16px 10px;
}
.nav-mobile-search-inner {
  display: flex; align-items: center; gap: 8px;
  background: #f1f5f9; border: 1.5px solid var(--border);
  border-radius: var(--radius-full); padding: 6px 8px 6px 14px;
}
.nav-mobile-search-inner:focus-within {
  background: #ffffff; border-color: var(--primary);
}
.nav-mobile-search-inner input {
  flex: 1; border: none; background: none; outline: none;
  font-size: 0.86rem; color: var(--text);
}

/* Mobile Bottom Navigation Bar */
.mobile-bottom-nav {
  display: none;
}
@media (max-width: 1080px) {
  .nav-section-links { display: none; }
  .nav-search { max-width: 320px; }
}
@media (max-width: 820px) {
  .nav-search { display: none; }
}
@media (max-width: 768px) {
  .nav-inner {
    padding: 0 14px;
    height: 58px;
    gap: 10px;
  }
  .nav-actions .btn-post {
    display: none !important;
  }
  /* Ẩn nút Sổ SIN trên top navbar vì đã có nút SIN nổi bật ở chính giữa thanh dưới */
  .nav-actions .nav-sin-btn {
    display: none !important;
  }
  /* Thu gọn nút Công việc & Quản trị thành icon tròn đồng bộ với thanh icon trên mobile */
  .nav-actions .nav-tasks-btn,
  .nav-actions .nav-admin-btn {
    width: 38px;
    height: 38px;
    padding: 0;
    border-radius: 50%;
    gap: 0;
  }
  .nav-tasks-label,
  .nav-admin-label {
    display: none;
  }
  .nav-mobile-search-bar { display: block; }
  .mobile-bottom-nav {
    display: flex;
    position: fixed; bottom: 0; left: 0; right: 0;
    height: auto;
    min-height: 58px;
    background: #FFFFFF;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-top: 1.5px solid rgba(217, 119, 6, 0.36);
    box-shadow: 0 -6px 22px rgba(120, 53, 15, 0.14);
    z-index: 115;
    align-items: flex-start;
    justify-content: space-around;
    padding-top: 6px;
    padding-bottom: max(env(safe-area-inset-bottom, 0px), 18px);
    padding-left: max(env(safe-area-inset-left, 0px), 6px);
    padding-right: max(env(safe-area-inset-right, 0px), 6px);
  }
  .mobile-bottom-nav.hidden-on-detail {
    display: none !important;
  }
  .mnav-item {
    flex: 1;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 2px; padding: 3px 2px;
    color: #1E293B; font-size: 0.72rem; font-weight: 700;
    cursor: pointer; transition: all 0.15s ease;
    position: relative;
    border: none; background: transparent;
  }
  .mnav-icon-wrap {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 3px 14px;
    border-radius: 999px;
    transition: all 0.18s ease;
  }
  .mnav-item.active .mnav-icon-wrap {
    background: #FEE2E2;
  }
  .mnav-item.active {
    color: #DC2626;
    font-weight: 800;
  }
  .mnav-icon-box {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  .mnav-post-wrap {
    flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
    cursor: pointer;
  }
  .mnav-post-btn {
    width: 46px; height: 46px; border-radius: 50%;
    background: linear-gradient(135deg, #EF4444 0%, #DC2626 50%, #B91C1C 100%);
    color: #ffffff; display: flex; align-items: center; justify-content: center;
    box-shadow: 0 4px 16px rgba(220, 38, 38, 0.45), 0 0 0 3px rgba(251, 191, 36, 0.55);
    margin-top: -17px; border: 2.5px solid #FFFFFF;
    font-size: 1.2rem;
  }
  .mnav-post-label {
    font-size: 0.72rem; font-weight: 800; color: #DC2626; margin-top: 2px;
  }
  .page {
    padding-bottom: calc(90px + max(env(safe-area-inset-bottom, 0px), 18px)) !important;
  }
}

@media (max-width: 480px) {
  .nav-inner {
    padding: 0 10px;
    height: 56px;
    gap: 8px;
  }
  .nav-left {
    min-width: 0;
    flex-shrink: 1;
  }
  .nav-logo {
    gap: 7px;
    min-width: 0;
    max-width: 100%;
    flex-shrink: 1;
  }
  .nav-logo-badge {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
  }
  .nav-logo-badge img {
    width: 100% !important;
    height: 100% !important;
  }
  .nav-logo-tag {
    display: none !important;
  }
  .nav-logo-text {
    font-size: 1.12rem !important;
  }
  .nav-page-brand {
    overflow: hidden;
  }
  .nav-page-subtitle {
    font-size: 0.88rem !important;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .nav-actions {
    gap: 5px;
  }
  .nav-icon-btn,
  .nav-actions .nav-tasks-btn,
  .nav-actions .nav-admin-btn,
  .nav-avatar {
    width: 34px;
    height: 34px;
  }
}

/* =====================================================
   DASHBOARD 3-COLUMN LAYOUT (Chính xác theo thiết kế mẫu)
   ===================================================== */
.dashboard-shell {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr) 290px;
  gap: 22px;
  max-width: 1440px;
  margin: 0 auto;
  padding: 18px 20px;
  align-items: start;
}

/* ---- SIDEBAR TRÁI ---- */
.dashboard-sidebar-left {
  position: sticky;
  top: 80px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.sidebar-menu-card {
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
  border: 1.5px solid rgba(217, 119, 6, 0.28);
  border-radius: 18px;
  padding: 8px;
  box-shadow: 0 4px 16px rgba(146, 64, 14, 0.08);
}
.sidebar-item {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 10px 14px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.88rem;
  color: #475569;
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
}
.sidebar-item:hover {
  background: #FFF7E0;
  color: #0f172a;
}
.sidebar-item.active {
  background: linear-gradient(90deg, #FEF2F2 0%, #FFF7E0 100%);
  color: #DC2626;
  font-weight: 700;
  box-shadow: inset 3px 0 0 #DC2626;
}
.sb-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  flex-shrink: 0;
}
.sb-badge-count {
  margin-left: auto;
  background: #ef4444;
  color: #ffffff;
  font-size: 0.68rem;
  font-weight: 800;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.sidebar-divider {
  height: 1px;
  background: #f1f5f9;
  margin: 6px 8px;
}
.sidebar-gps-card {
  background: rgba(255, 255, 255, 0.94);
  border: 1.5px solid rgba(217, 119, 6, 0.28);
  border-radius: 16px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  transition: all 0.15s ease;
  box-shadow: 0 4px 14px rgba(146, 64, 14, 0.06);
}
.sidebar-gps-card:hover {
  border-color: #DC2626;
  background: #FFFBEB;
  transform: translateY(-1px);
}
.sidebar-gps-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: #ecfdf5;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  flex-shrink: 0;
}
.sidebar-gps-title {
  font-weight: 700;
  font-size: 0.86rem;
  color: #0f172a;
}
.sidebar-gps-sub {
  font-size: 0.74rem;
  color: #64748b;
  font-weight: 500;
  margin-top: 1px;
}
.sidebar-post-promo {
  background: linear-gradient(135deg, #FFF7E0 0%, #FEF2F2 100%);
  border: 1.5px solid rgba(220, 38, 38, 0.28);
  border-radius: 18px;
  padding: 16px 14px;
  text-align: center;
  box-shadow: 0 4px 14px rgba(185, 28, 28, 0.08);
}
.promo-icon-wrap {
  font-size: 1.8rem;
  margin-bottom: 2px;
}
.promo-title {
  font-weight: 800;
  font-size: 0.92rem;
  color: #0f172a;
}
.promo-sub {
  font-size: 0.76rem;
  color: #64748b;
  margin-bottom: 12px;
  margin-top: 2px;
}
.promo-btn {
  background: linear-gradient(135deg, #EF4444 0%, #DC2626 50%, #B91C1C 100%);
  color: white;
  font-weight: 700;
  font-size: 0.84rem;
  padding: 8px 18px;
  border-radius: 999px;
  cursor: pointer;
  border: 1px solid rgba(253, 224, 71, 0.55);
  width: 100%;
  transition: all 0.15s ease;
  box-shadow: 0 4px 12px rgba(185, 28, 28, 0.3);
}
.promo-btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
}

/* ---- CỘT GIỮA: NỘI DUNG CHÍNH ---- */
.dashboard-feed-center {
  min-width: 0;
}
/* ---- BANNER HERO HIỆN ĐẠI (Royal Gold & Crimson Silk) ---- */
.home-hero-banner-card {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  padding: 22px 28px;
  min-height: 154px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: radial-gradient(circle at 88% 15%, rgba(220, 38, 38, 0.16) 0%, transparent 45%), linear-gradient(135deg, #FFF7DC 0%, #FFE4A3 55%, #FFD27A 100%);
  border: 1.5px solid rgba(220, 38, 38, 0.3);
  box-shadow: 0 8px 26px rgba(180, 83, 9, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.7);
  margin-bottom: 20px;
}
.hero-banner-left {
  position: relative;
  z-index: 2;
  flex: 1;
  min-width: 0;
}
.hero-clean-tag {
  display: inline-block;
  background: linear-gradient(135deg, #EF4444 0%, #B91C1C 100%);
  color: #ffffff;
  font-weight: 800;
  font-size: 0.72rem;
  padding: 3px 10px;
  border-radius: 999px;
  letter-spacing: 0.6px;
  margin-bottom: 10px;
  border: 1px solid rgba(253, 224, 71, 0.6);
  box-shadow: 0 3px 10px rgba(185, 28, 28, 0.28);
  user-select: none;
}
.hero-clean-title {
  font-family: 'Plus Jakarta Sans', var(--font);
  font-size: clamp(1.4rem, 2.3vw, 1.95rem);
  font-weight: 900;
  color: #0f172a;
  line-height: 1.22;
  margin-bottom: 14px;
  letter-spacing: -0.6px;
}
.hero-clean-dots {
  display: flex;
  align-items: center;
  gap: 5px;
}
.hero-clean-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(146, 64, 14, 0.25);
  transition: all 0.2s ease;
  cursor: pointer;
}
.hero-clean-dot.active {
  width: 18px;
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(90deg, #DC2626, #F59E0B);
}

.hero-clean-art-wrap {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-shrink: 0;
  margin-right: 28px;
}
.hero-clean-art {
  height: 142px;
  width: auto;
  max-width: 270px;
  object-fit: contain;
  display: block;
  user-select: none;
  mix-blend-mode: multiply;
  -webkit-mask-image: radial-gradient(ellipse 90% 90% at 50% 50%, #000 72%, transparent 100%);
  mask-image: radial-gradient(ellipse 90% 90% at 50% 50%, #000 72%, transparent 100%);
  filter: drop-shadow(0 6px 14px rgba(180, 83, 9, 0.14));
}

.hero-clean-arrow {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(0, 0, 0, 0.06);
  color: #475569;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 3;
  transition: all 0.15s ease;
}
.hero-clean-arrow:hover {
  background: #ffffff;
  color: var(--primary);
  transform: translateY(-50%) scale(1.08);
  box-shadow: 0 4px 12px rgba(234, 88, 12, 0.2);
}

@media (max-width: 640px) {
  .home-hero-banner-card {
    padding: 16px 14px 16px 18px;
    border-radius: 18px;
    min-height: 136px;
  }
  .hero-clean-title {
    font-size: 1.35rem;
    margin-bottom: 10px;
  }
  .hero-clean-art-wrap {
    margin-right: 20px;
  }
  .hero-clean-art {
    height: 112px;
    max-width: 160px;
  }
  .hero-clean-arrow {
    right: 8px;
    width: 28px;
    height: 28px;
  }
}

@media (max-width: 400px) {
  .hero-clean-title {
    font-size: 1.18rem;
  }
  .hero-clean-art {
    height: 94px;
    max-width: 135px;
  }
}

/* Thanh chọn Mode & Danh mục */
.home-mode-filter-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.mode-buttons-group {
  display: inline-flex;
  gap: 6px;
  flex-shrink: 0;
}
.btn-mode-tab {
  padding: 7px 15px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.84rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
  border: 1.5px solid rgba(217, 119, 6, 0.3);
  background: rgba(255, 255, 255, 0.95);
  color: #475569;
}
.btn-mode-tab.active {
  background: linear-gradient(135deg, #EF4444 0%, #DC2626 50%, #B91C1C 100%);
  border-color: #B91C1C;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(185, 28, 28, 0.3);
}
.cat-chips-scroll-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
  flex: 1;
  padding: 2px 0;
}
.cat-chips-scroll-bar::-webkit-scrollbar {
  display: none;
}
.home-cat-chip {
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  color: #475569;
  background: rgba(255, 255, 255, 0.94);
  border: 1.5px solid rgba(217, 119, 6, 0.26);
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease;
}
.home-cat-chip:hover {
  border-color: #DC2626;
  color: var(--primary);
  background: #FEF2F2;
}
.home-cat-chip.active {
  background: linear-gradient(135deg, #FEF2F2, #FFFBEB);
  color: #DC2626;
  border-color: rgba(220, 38, 38, 0.45);
  font-weight: 700;
}
.btn-advanced-filter {
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  color: #334155;
  background: #ffffff;
  border: 1.5px solid var(--border);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  flex-shrink: 0;
}
.btn-advanced-filter:hover {
  border-color: var(--primary);
  color: var(--primary);
}

/* Phần hiển thị sản phẩm */
.feed-section {
  margin-bottom: 24px;
}
.feed-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  gap: 12px;
  flex-wrap: wrap;
}
.feed-header-left {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.feed-section-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: #0f172a;
  display: flex;
  align-items: center;
  gap: 6px;
}
/* Nút chia sẻ vị trí hiện tại tìm trọ */
.btn-share-location-home {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #f0f9ff;
  border: 1.5px solid #7dd3fc;
  color: #0284c7;
  padding: 5px 13px;
  border-radius: 9999px;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 1px 3px rgba(2, 132, 199, 0.08);
  white-space: nowrap;
  user-select: none;
}
.btn-share-location-home:hover {
  background: #0284c7;
  color: #ffffff;
  border-color: #0284c7;
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.25);
  transform: translateY(-1px);
}
.btn-share-location-home:active {
  transform: translateY(0);
}
.btn-share-location-home.loading {
  background: #f8fafc;
  border-color: #cbd5e1;
  color: #64748b;
  cursor: wait;
  box-shadow: none;
  transform: none;
  pointer-events: none;
}
.btn-share-location-home.active {
  background: #0284c7;
  color: #ffffff;
  border-color: #0284c7;
  box-shadow: 0 2px 8px rgba(2, 132, 199, 0.25);
}
.btn-share-location-home.active:hover {
  background: #0369a1;
  border-color: #0369a1;
}
.btn-share-location-home .btn-loc-icon {
  font-size: 0.95rem;
  line-height: 1;
  display: inline-block;
  transition: transform 0.2s ease;
}
.btn-share-location-home:hover .btn-loc-icon {
  transform: scale(1.15);
}
.btn-loc-reset {
  margin-left: 5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  color: #ffffff;
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
  transition: background 0.15s ease;
}
.btn-loc-reset:hover {
  background: rgba(255, 255, 255, 0.65);
  color: #0f172a;
}
.feed-see-all-link {
  font-size: 0.82rem;
  font-weight: 700;
  color: #DC2626;
  cursor: pointer;
}
.feed-see-all-link:hover {
  text-decoration: underline;
}

.card-grid-5cols {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}
@media (max-width: 1400px) {
  .card-grid-5cols {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  }
}
@media (max-width: 600px) {
  .card-grid-5cols {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
}

.card-grid-4cols {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
@media (max-width: 1400px) {
  .card-grid-4cols {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  }
}
@media (max-width: 600px) {
  .card-grid-4cols {
    grid-template-columns: 1fr;
    gap: 10px;
  }
}

/* Thẻ sản phẩm Card Badge kiểu mới */
.badge-new-pill {
  position: absolute;
  top: 8px;
  left: 8px;
  background: linear-gradient(135deg, #EF4444, #B91C1C);
  color: #ffffff;
  font-weight: 800;
  font-size: 0.68rem;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid rgba(253, 224, 71, 0.55);
  box-shadow: 0 2px 6px rgba(185, 28, 28, 0.25);
}
.badge-rental-uni {
  position: absolute;
  top: 8px;
  left: 8px;
  background: #0284c7;
  color: #ffffff;
  font-weight: 800;
  font-size: 0.68rem;
  padding: 2px 8px;
  border-radius: 6px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}
.card-sub-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
  font-size: 0.74rem;
  color: #64748b;
  margin-top: 4px;
}
.card-loc-line, .card-time-line {
  display: flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ---- SIDEBAR PHẢI ---- */
.dashboard-sidebar-right {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.aside-card {
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
  border: 1.5px solid rgba(217, 119, 6, 0.28);
  border-radius: 18px;
  padding: 16px;
  box-shadow: 0 4px 16px rgba(146, 64, 14, 0.08);
}
.aside-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.aside-header-title {
  font-weight: 800;
  font-size: 0.95rem;
  color: #0f172a;
}
.aside-header-link {
  font-size: 0.78rem;
  font-weight: 700;
  color: #DC2626;
  cursor: pointer;
}
.aside-header-link:hover {
  text-decoration: underline;
}

.aside-card-student {
  background: linear-gradient(135deg, #FFF7E0 0%, #FEF2F2 100%);
  border-color: rgba(220, 38, 38, 0.28);
}
.student-widget-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}
.student-widget-title {
  font-weight: 800;
  font-size: 0.92rem;
  color: #0f172a;
  margin-bottom: 2px;
}
.student-widget-sub {
  font-size: 0.76rem;
  color: #64748b;
  line-height: 1.35;
}
.student-widget-avatar {
  font-size: 1.8rem;
  flex-shrink: 0;
}
.student-widget-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.btn-student-action {
  padding: 8px 10px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.82rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 1px solid var(--border);
  background: #ffffff;
  cursor: pointer;
  color: #334155;
  transition: all 0.15s ease;
}
.btn-student-action:hover {
  background: #f8fafc;
}
.btn-student-action.active-docu {
  background: linear-gradient(135deg, #EF4444, #B91C1C);
  color: #ffffff;
  border-color: #B91C1C;
  box-shadow: 0 3px 10px rgba(185, 28, 28, 0.25);
}

.featured-cats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  text-align: center;
}
.feat-cat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  transition: transform 0.15s ease;
}
.feat-cat-item:hover {
  transform: translateY(-2px);
}
.feat-cat-circle {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.04);
}
.feat-cat-name {
  font-size: 0.74rem;
  font-weight: 600;
  color: #475569;
}

.aside-card-map {
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
  border-color: #bae6fd;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: all 0.15s ease;
}
.aside-card-map:hover {
  border-color: #38bdf8;
  transform: translateY(-1px);
}
.map-widget-content {
  position: relative;
  z-index: 2;
}
.map-widget-icon {
  font-size: 1.2rem;
  margin-bottom: 2px;
}
.map-widget-title {
  font-weight: 800;
  font-size: 0.9rem;
  color: #0369a1;
}
.map-widget-sub {
  font-size: 0.76rem;
  color: #0284c7;
  margin-bottom: 10px;
  line-height: 1.35;
}
.map-widget-btn {
  background: linear-gradient(135deg, #EF4444, #B91C1C);
  color: white;
  border: none;
  padding: 6px 14px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.76rem;
  cursor: pointer;
  box-shadow: 0 3px 10px rgba(185, 28, 28, 0.28);
}
.map-widget-pin-decor {
  position: absolute;
  right: 6px;
  bottom: -4px;
  font-size: 3.2rem;
  opacity: 0.2;
}

.news-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.news-item {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  transition: all 0.15s ease;
  padding: 4px;
  border-radius: 8px;
}
.news-item:hover {
  background: #f8fafc;
}
.news-thumb {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
}
.news-body {
  flex: 1;
  min-width: 0;
}
.news-title {
  font-weight: 600;
  font-size: 0.78rem;
  color: #0f172a;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.news-date {
  font-size: 0.68rem;
  color: #94a3b8;
  margin-top: 2px;
}
.news-arrow {
  color: #cbd5e1;
  font-weight: 700;
  font-size: 1rem;
}

/* ---- Dashboard Layout Responsive ---- */
@media (max-width: 1240px) {
  .dashboard-shell {
    grid-template-columns: 200px minmax(0, 1fr);
  }
  .dashboard-sidebar-right {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }
}

@media (max-width: 890px) {
  .dashboard-shell {
    grid-template-columns: 1fr;
    padding: 10px 12px;
    gap: 16px;
  }
  .dashboard-sidebar-left {
    display: none !important;
  }
  .dashboard-sidebar-right {
    grid-column: auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
  }
}

/* ---- Section Titles ---- */
.section { padding: 28px 0; }
.section-header {
  display: flex; justify-content: space-between; align-items: flex-end;
  margin-bottom: 18px; gap: 12px; flex-wrap: wrap;
}
.section-title {
  font-family: 'Plus Jakarta Sans', var(--font);
  font-size: 1.35rem; font-weight: 800; color: var(--text);
  letter-spacing: -0.3px; display: flex; align-items: center; gap: 8px;
}
.section-title span { color: var(--primary); }
.section-sub { font-size: 0.84rem; color: var(--text-3); margin-top: 2px; }
.see-all {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 0.86rem; color: var(--primary); font-weight: 700;
  padding: 6px 14px; border-radius: 999px; background: var(--primary-soft);
  border: 1px solid rgba(217, 119, 6, 0.35); cursor: pointer; transition: all var(--transition);
}
.see-all:hover { background: var(--primary); color: white; border-color: var(--primary); }

/* ---- Category Chips (Sleek Horizontal Scroll) ---- */
.cat-chips {
  display: flex; align-items: center; gap: 6px;
  overflow-x: auto; flex-wrap: nowrap;
  -webkit-overflow-scrolling: touch; scrollbar-width: none;
  padding: 2px 2px 6px; margin-bottom: 8px;
}
.cat-chips::-webkit-scrollbar { display: none; }
.cat-chip {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 5px 13px; border-radius: var(--radius-full);
  border: 1px solid var(--border); background: rgba(255, 255, 255, 0.95);
  font-size: 0.8rem; font-weight: 600; cursor: pointer;
  white-space: nowrap; flex-shrink: 0;
  transition: all var(--transition); color: var(--text-2);
  box-shadow: 0 2px 6px rgba(146, 64, 14, 0.05);
}
.cat-chip:hover { border-color: #DC2626; color: var(--primary); background: #FEF2F2; }
.cat-chip.active {
  border-color: var(--primary); color: #ffffff; background: linear-gradient(135deg, #EF4444, #B91C1C);
  font-weight: 700; box-shadow: 0 3px 10px rgba(185, 28, 28, 0.26);
}

/* ---- Market Toolbar (Clean, Slim & Product-Focused) ---- */
.market-toolbar {
  display: flex; justify-content: space-between; align-items: center;
  gap: 8px; margin-bottom: 12px; padding: 2px 0;
}
.market-toolbar-left {
  display: flex; align-items: center; gap: 6px;
  overflow-x: auto; scrollbar-width: none; flex: 1;
  -webkit-overflow-scrolling: touch;
}
.market-toolbar-left::-webkit-scrollbar { display: none; }
.compact-select {
  border: 1px solid var(--border); border-radius: 8px;
  padding: 5px 9px; font-size: 0.78rem; font-weight: 600; color: var(--text);
  background: var(--white); cursor: pointer; outline: none;
  white-space: nowrap; flex-shrink: 0;
  transition: all var(--transition);
}
.compact-select:hover { border-color: #cbd5e1; }
.compact-select:focus { border-color: var(--primary); }
.btn-reset-filters {
  background: #f1f5f9; border: 1px solid var(--border); border-radius: 8px;
  padding: 5px 9px; font-size: 0.78rem; font-weight: 600; color: var(--text-2);
  cursor: pointer; white-space: nowrap; flex-shrink: 0;
  transition: all var(--transition);
}
.btn-reset-filters:hover { background: #e2e8f0; color: var(--text); }
.market-toolbar-count {
  font-size: 0.78rem; color: var(--text-3); font-weight: 500;
  white-space: nowrap; flex-shrink: 0;
}

/* ---- Filter Bar ---- */
.filter-bar {
  display: flex; gap: 10px; align-items: center; flex-wrap: wrap;
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 12px 16px; margin-bottom: 22px;
  box-shadow: var(--card-shadow);
}
.filter-label { font-size: 0.84rem; color: var(--text-2); font-weight: 700; display: flex; align-items: center; gap: 5px; }
.filter-select {
  border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  padding: 8px 12px; font-size: 0.86rem; font-weight: 600; color: var(--text);
  background: #f8fafc; cursor: pointer; outline: none;
  transition: all var(--transition);
}
.filter-select:hover { border-color: #cbd5e1; background: var(--white); }
.filter-select:focus { border-color: var(--primary); background: var(--white); box-shadow: 0 0 0 3px rgba(234, 88, 12, 0.12); }
.filter-sort { margin-left: auto; }

/* ---- Card Grid & Equal-Height Marketplace Cards ---- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
}
.listing-card {
  background: rgba(255, 255, 255, 0.96);
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(217, 119, 6, 0.28);
  box-shadow: 0 4px 14px rgba(146, 64, 14, 0.08);
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.listing-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px -4px rgba(185, 28, 28, 0.18), 0 4px 12px -2px rgba(217, 119, 6, 0.18);
  border-color: rgba(220, 38, 38, 0.45);
}
.card-img {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #f1f5f9;
  flex-shrink: 0;
}
.card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.listing-card:hover .card-img img { transform: scale(1.05); }

.card-fav {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all var(--transition);
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.15);
  z-index: 2;
  color: #64748b;
}
.card-fav:hover {
  transform: scale(1.1);
  background: #ffffff;
  color: #ef4444;
}
.card-fav.is-fav {
  color: #ef4444;
  background: #ffffff;
}

.card-body {
  padding: 10px 12px 12px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.card-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 4px;
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color 0.15s ease;
}
.listing-card:hover .card-title { color: var(--primary); }

.card-price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin-bottom: 4px;
}
.card-price {
  font-size: 0.98rem;
  font-weight: 800;
  color: #DC2626;
  letter-spacing: -0.3px;
  line-height: 1.2;
}
.card-price.rental-price { color: #B91C1C; }
.card-price small { font-size: 0.72rem; font-weight: 600; color: #94a3b8; margin-left: 2px; }

.card-meta {
  display: flex; align-items: center; justify-content: space-between;
  gap: 8px; font-size: 0.78rem; color: var(--text-2);
  margin-bottom: 10px;
}
.card-location {
  display: inline-flex; align-items: center; gap: 4px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 65%;
  font-weight: 500;
}
.card-date {
  font-size: 0.75rem; color: var(--text-3);
  display: inline-flex; align-items: center; gap: 4px;
  flex-shrink: 0;
}
.card-seller-info {
  margin-top: auto; padding-top: 10px;
  border-top: 1px solid #f1f5f9;
  display: flex; align-items: center; justify-content: space-between;
  font-size: 0.76rem; color: var(--text-2);
}
.card-seller-left {
  display: inline-flex; align-items: center; gap: 6px;
  min-width: 0; overflow: hidden;
}
.card-seller-avatar-mini {
  width: 22px; height: 22px; border-radius: 50%;
  background: #FEE2E2; color: #B91C1C;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 0.68rem; font-weight: 800; flex-shrink: 0;
}
.card-views { display: inline-flex; align-items: center; gap: 3px; color: var(--text-3); flex-shrink: 0; }
.card-condition {
  display: inline-block; padding: 2px 8px; border-radius: var(--radius-full);
  font-size: 0.72rem; font-weight: 700;
}

/* Detail Breadcrumb */
/* =====================================================
   PRODUCT DETAIL PAGE — Exact Match to Design Image
   ===================================================== */

.product-detail-page-wrapper {
  max-width: 1260px;
  margin: 0 auto;
  padding: 12px 20px 48px;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: #1e293b;
}

/* TOP HEADER NAV BAR: Breadcrumb on Left, Search + Icons on Right */
.detail-top-nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
  padding: 4px 0;
  flex-wrap: wrap;
}

.detail-breadcrumb-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.92rem;
  color: #64748b;
  flex-wrap: wrap;
}

.crumb-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #475569;
  text-decoration: none;
  cursor: pointer;
  font-weight: 500;
  transition: color 0.15s ease;
}

.crumb-link:hover {
  color: #ea580c;
}

.crumb-home-icon {
  color: #475569;
}

.crumb-sep {
  color: #94a3b8;
  font-weight: 600;
  user-select: none;
  font-size: 1.05rem;
}

.crumb-current {
  color: #0f172a;
  font-weight: 800;
}

/* Right side actions: Search Pill + Fav Button + Menu Button */
.detail-top-actions-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.detail-search-pill-box {
  position: relative;
  display: flex;
  align-items: center;
}

.detail-search-pill-box .search-svg-icon {
  position: absolute;
  left: 14px;
  color: #94a3b8;
  pointer-events: none;
}

.detail-search-pill-box input {
  height: 42px;
  width: 250px;
  border-radius: 9999px;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  padding: 0 16px 0 38px;
  font-size: 0.9rem;
  color: #1e293b;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.detail-search-pill-box input::placeholder {
  color: #94a3b8;
}

.detail-search-pill-box input:focus {
  border-color: #ea580c;
  box-shadow: 0 0 0 3px rgba(234, 88, 12, 0.12);
}

@media (max-width: 680px) {
  .detail-search-pill-box {
    display: none !important;
  }
  .detail-top-nav-bar {
    margin-bottom: 12px;
  }
  .detail-breadcrumb-wrap {
    font-size: 0.82rem;
    gap: 4px;
  }
}

.detail-circle-action-btn {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #475569;
  transition: all 0.2s;
}

.detail-circle-action-btn:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
  color: #ea580c;
}

.detail-circle-action-btn.active {
  border-color: #fca5a5;
  background: #fee2e2;
  color: #ef4444;
}

/* =====================================================
   MAIN 3-COLUMN PRODUCT GRID
   ===================================================== */
.product-layout-3col {
  display: grid;
  grid-template-columns: 370px 1fr 320px;
  gap: 24px;
  align-items: start;
}

@media (max-width: 1200px) {
  .product-layout-3col {
    grid-template-columns: 340px 1fr 290px;
    gap: 16px;
  }
}

@media (max-width: 980px) {
  .product-layout-3col {
    grid-template-columns: 1fr 310px;
    gap: 16px;
  }
  .gallery-col {
    grid-column: 1 / 3;
  }
}

@media (max-width: 768px) {
  .product-layout-3col {
    grid-template-columns: 1fr;
    gap: 16px;
    margin-bottom: 75px;
  }
  .gallery-col {
    grid-column: 1;
  }
}

/* -----------------------------------------------------
   COLUMN 1: IMAGE GALLERY
   ----------------------------------------------------- */
.gallery-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.gallery-main-viewport {
  position: relative;
  width: 100%;
  height: 380px;
  border-radius: 16px;
  overflow: hidden;
  background: #f8fafc;
  border: 1px solid #f1f5f9;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.03);
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-main-viewport img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.2s ease;
}

.gallery-badge-topleft {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(15, 23, 42, 0.72);
  backdrop-filter: blur(4px);
  color: #ffffff;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.82rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 5px;
  z-index: 2;
  user-select: none;
}

.gallery-nav-circle {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.16);
  color: #1e293b;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  transition: all 0.2s ease;
}

.gallery-nav-circle:hover {
  background: #ffffff;
  color: #ea580c;
  transform: translateY(-50%) scale(1.08);
}

.gallery-nav-circle.prev-btn {
  left: 12px;
}

.gallery-nav-circle.next-btn {
  right: 12px;
}

.gallery-zoom-pill-btn {
  position: absolute;
  bottom: 14px;
  right: 14px;
  background: rgba(15, 23, 42, 0.72);
  backdrop-filter: blur(4px);
  color: #ffffff;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
  border: none;
  cursor: pointer;
  z-index: 2;
  transition: all 0.2s ease;
}

.gallery-zoom-pill-btn:hover {
  background: rgba(15, 23, 42, 0.92);
  color: #fed7aa;
}

/* Horizontal Thumbnails Row */
.gallery-horizontal-thumbs {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 2px 0 6px;
}

.thumb-slot {
  width: 64px;
  height: 64px;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  border: 1.5px solid #e2e8f0;
  flex-shrink: 0;
  background: #f8fafc;
  transition: all 0.15s ease;
}

.thumb-slot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.thumb-slot:hover {
  border-color: #f97316;
}

.thumb-slot.active {
  border: 2px solid #ea580c;
  box-shadow: 0 0 0 1px #ea580c;
}

/* -----------------------------------------------------
   COLUMN 2: PRODUCT DETAILS & DESCRIPTION
   ----------------------------------------------------- */
.info-col {
  background: #ffffff;
  border-radius: 16px;
  padding: 24px 26px;
  border: 1px solid #f1f5f9;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.03);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.info-cat-pill {
  background: #ffedd5;
  color: #ea580c;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 6px;
  display: inline-block;
  width: fit-content;
}

.info-product-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.35;
  margin: 0;
}

.info-meta-row {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.88rem;
  color: #64748b;
}

.meta-item-heart,
.meta-item-time {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.meta-divider-line {
  color: #cbd5e1;
  user-select: none;
}

.info-price-display {
  font-size: 2.1rem;
  font-weight: 900;
  color: #ea580c;
  letter-spacing: -0.5px;
  margin: 2px 0 0;
  line-height: 1.1;
}

.price-unit-sub {
  font-size: 0.95rem;
  font-weight: 600;
  color: #64748b;
  margin-left: 4px;
}

.info-badges-strip {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.green-trust-pill {
  background: #ecfdf5;
  color: #059669;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 5px 14px;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* Key Attributes Card (Tình trạng & Khu vực) */
.info-specs-card {
  background: #f8fafc;
  border-radius: 12px;
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  border: 1px solid #f1f5f9;
  margin-top: 2px;
}

.spec-attribute-row {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  font-size: 0.94rem;
}

.spec-attr-left {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #64748b;
  width: 125px;
  flex-shrink: 0;
}

.spec-attr-right {
  color: #0f172a;
  font-weight: 700;
}

/* Mô tả sản phẩm */
.info-desc-section {
  margin-top: 6px;
  border-top: 1px solid #f1f5f9;
  padding-top: 16px;
}

.desc-section-heading {
  font-size: 1.05rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 8px;
}

.desc-section-content {
  font-size: 0.94rem;
  color: #475569;
  line-height: 1.65;
  white-space: pre-line;
}

/* -----------------------------------------------------
   COLUMN 3: SELLER CARD & ACTION BUTTONS
   ----------------------------------------------------- */
.sidebar-col {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.seller-widget-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 18px 20px;
  border: 1px solid #f1f5f9;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.03);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.seller-header-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
}

.seller-avatar-circle {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: #c2410c;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.35rem;
  position: relative;
  flex-shrink: 0;
}

.seller-avatar-circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.seller-online-dot {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 13px;
  height: 13px;
  background: #22c55e;
  border: 2px solid #ffffff;
  border-radius: 50%;
}

.seller-meta-col {
  flex: 1;
}

.seller-name-text {
  font-size: 1.05rem;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.25;
}

.seller-online-badge {
  font-size: 0.82rem;
  font-weight: 600;
  color: #16a34a;
  margin-top: 2px;
}

.seller-arrow-chevron {
  color: #94a3b8;
  display: flex;
  align-items: center;
}

.btn-view-profile-link {
  background: #ffffff;
  border: 1.5px solid #fed7aa;
  border-radius: 12px;
  color: #ea580c;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  transition: all 0.2s;
  width: 100%;
}

.btn-view-profile-link:hover {
  background: #fff7ed;
  border-color: #ea580c;
}

.btn-inner-left {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* CTA Action Grid (Gọi SĐT + Nhắn Tin) */
.cta-action-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.cta-btn-call-box {
  background: #ffedd5;
  border: none;
  border-radius: 14px;
  padding: 14px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  text-align: left;
  transition: all 0.2s ease;
}

.cta-btn-call-box:hover {
  background: #fed7aa;
  transform: translateY(-1px);
}

.cta-btn-call-box .cta-icon-wrap {
  color: #ea580c;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.cta-btn-call-box .cta-title {
  font-size: 0.92rem;
  font-weight: 800;
  color: #ea580c;
  line-height: 1.2;
}

.cta-btn-call-box .cta-subtitle {
  font-size: 0.78rem;
  font-weight: 700;
  color: #ea580c;
  margin-top: 2px;
}

.cta-btn-chat-box {
  background: #ea580c;
  border: none;
  border-radius: 14px;
  padding: 14px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  text-align: left;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(234, 88, 12, 0.25);
}

.cta-btn-chat-box:hover {
  background: #c2410c;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(234, 88, 12, 0.35);
}

.cta-btn-chat-box .cta-icon-wrap {
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.cta-btn-chat-box .cta-title {
  font-size: 0.92rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.2;
}

.cta-btn-chat-box .cta-subtitle {
  font-size: 0.75rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.92);
  margin-top: 2px;
}

.cta-btn-call-box.is-unlocked {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
}
.cta-btn-call-box.is-unlocked .cta-title {
  color: #16a34a;
}
.cta-btn-call-box.is-unlocked .cta-subtitle {
  color: #15803d;
}
.cta-btn-call-box.is-unlocked .cta-icon-wrap {
  color: #16a34a;
}

.cta-btn-chat-box.is-unlocked {
  background: #0068ff;
  box-shadow: 0 4px 12px rgba(0, 104, 255, 0.25);
}
.cta-btn-chat-box.is-unlocked:hover {
  background: #0056d6;
}

/* Secondary Utility Buttons (Chia sẻ + Báo cáo) */
.util-action-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.btn-util-box {
  background: #ffffff;
  border: 1px solid #f1f5f9;
  border-radius: 12px;
  padding: 11px 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #475569;
  font-weight: 600;
  font-size: 0.88rem;
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
  transition: all 0.2s ease;
}

.btn-util-box:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
  color: #0f172a;
}

/* Mobile Fixed Bottom Action Bar */
.mobile-fixed-bottom-bar {
  display: none;
}
@media (max-width: 768px) {
  .cta-action-grid {
    display: none !important;
  }
  .mobile-fixed-bottom-bar {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #ffffff;
    box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.12);
    padding: 10px 14px;
    gap: 10px;
    z-index: 1000;
  }
  .mobile-bar-btn {
    flex: 1;
    padding: 12px 10px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.92rem;
    border: none;
    cursor: pointer;
    text-align: center;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
  }
  .mobile-bar-call {
    background: linear-gradient(135deg, #EF4444, #B91C1C);
  }
  .mobile-bar-zalo {
    background: #0068ff;
  }
  .mobile-bar-chat {
    background: #10b981;
  }
  .mobile-bar-escrow {
    background: #1e1b4b;
  }
  .detail-container, .detail-layout {
    padding-bottom: 72px;
  }
}
.btn-contact {
  display: block; width: 100%; padding: 12px; border-radius: var(--radius-sm);
  font-weight: 700; font-size: 0.95rem; text-align: center; cursor: pointer;
  transition: all var(--transition); border: none; margin-bottom: 10px;
}
.btn-primary {
  background: linear-gradient(135deg, #EF4444 0%, #DC2626 50%, #B91C1C 100%);
  color: white;
  box-shadow: 0 4px 12px rgba(185, 28, 28, 0.25);
}
.btn-primary:hover {
  background: linear-gradient(135deg, #DC2626 0%, #B91C1C 50%, #991B1B 100%);
  filter: brightness(1.03);
}
.btn-outline { background: white; color: var(--primary); border: 2px solid var(--primary); }
.btn-outline:hover { background: var(--primary-light); }
.btn-success { background: var(--success); color: white; }
.btn-success:hover { filter: brightness(0.92); }

/* ---- Forms (Post Listing) ---- */
.form-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 28px;
}
.form-section-title { font-size: 1rem; font-weight: 700; color: var(--primary); margin-bottom: 16px; padding-bottom: 8px; border-bottom: 2px solid var(--primary-light); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }
.form-group { margin-bottom: 18px; }
.form-label { display: block; font-size: 0.88rem; font-weight: 600; color: var(--text-2); margin-bottom: 6px; }
.form-label span { color: var(--danger); }
.form-input, .form-select, .form-textarea {
  width: 100%; padding: 10px 14px; border: 1.5px solid var(--border);
  border-radius: var(--radius-sm); font-size: 0.95rem; color: var(--text);
  transition: border-color var(--transition); outline: none; background: var(--white);
}
.form-input:focus, .form-select:focus, .form-textarea:focus { border-color: var(--primary); }
.form-textarea { resize: vertical; min-height: 120px; }
.upload-area {
  border: 2px dashed var(--border); border-radius: var(--radius);
  padding: 32px; text-align: center; cursor: pointer;
  transition: border-color var(--transition), background var(--transition);
}
.upload-area:hover { border-color: var(--primary); background: var(--primary-light); }
.upload-area p { font-size: 0.88rem; color: var(--text-3); margin-top: 8px; }
.upload-preview { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 12px; }
.upload-thumb {
  width: 80px; height: 80px; border-radius: var(--radius-sm);
  object-fit: cover; border: 1px solid var(--border);
}
.type-switch {
  display: flex; gap: 0; background: var(--bg); border-radius: var(--radius-sm);
  border: 1.5px solid var(--border); padding: 4px; margin-bottom: 20px;
}
.type-btn {
  flex: 1; padding: 10px; border-radius: 6px; font-weight: 600; font-size: 0.92rem;
  cursor: pointer; transition: all var(--transition); color: var(--text-2); border: none; background: none;
}
.type-btn.active-market { background: var(--market); color: white; }
.type-btn.active-rental { background: var(--rental); color: white; }

/* Enhanced Post Form Styles */
.upload-area.dragover {
  border-color: var(--primary) !important;
  background: #eff6ff !important;
  transform: scale(1.01);
}
.quick-chip {
  background: var(--bg);
  border: 1px solid var(--border);
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-2);
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}
.quick-chip:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-light);
}
.gps-box {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 8px;
}
.btn-gps {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: #f0fdf4;
  border: 1.5px solid #86efac;
  color: #15803d;
  border-radius: var(--radius-sm);
  font-size: 0.86rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}
.btn-gps:hover {
  background: #dcfce7;
  border-color: #4ade80;
}
.gps-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #065f46;
  border-radius: 6px;
  font-size: 0.82rem;
  font-weight: 600;
}
.moderation-box {
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 0.82rem;
  font-weight: 600;
  margin-top: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.moderation-box.error {
  background: #fef2f2;
  border: 1px solid #fee2e2;
  color: #b91c1c;
}
.moderation-box.warn {
  background: #fffbeb;
  border: 1px solid #fef3c7;
  color: #b45309;
}
.moderation-box.clean {
  background: #f0fdf4;
  border: 1px solid #dcfce7;
  color: #166534;
}
.img-thumb-wrap {
  position: relative;
  display: inline-block;
  margin: 4px;
  transition: transform 0.15s;
}
.img-thumb-wrap:hover {
  transform: translateY(-2px);
}
.cover-badge {
  position: absolute;
  top: 4px;
  left: 4px;
  background: #d97706;
  color: white;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.3);
}
.set-cover-btn {
  position: absolute;
  bottom: 24px;
  left: 4px;
  right: 4px;
  background: rgba(15,23,42,0.85);
  color: #fef08a;
  font-size: 0.65rem;
  border: none;
  border-radius: 4px;
  padding: 2px 4px;
  cursor: pointer;
  text-align: center;
  font-weight: 600;
}
.set-cover-btn:hover {
  background: var(--primary);
  color: white;
}
.preview-modal-body {
  max-height: 75vh;
  overflow-y: auto;
  padding: 16px;
}


/* ---- Profile Page (Modern Dashboard 3.0) ---- */
.profile-header {
  background: radial-gradient(circle at 80% 20%, rgba(251, 191, 36, 0.28) 0%, transparent 50%),
              linear-gradient(135deg, #7F1D1D 0%, #B91C1C 55%, #991B1B 100%);
  padding: 40px 20px 68px; color: white; text-align: center;
  border-bottom: 2px solid rgba(253, 224, 71, 0.45);
}
.profile-avatar-wrap { position: relative; display: inline-block; margin-bottom: 12px; }
.profile-avatar {
  width: 96px; height: 96px; border-radius: 50%;
  border: 4px solid rgba(253, 224, 71, 0.78);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  object-fit: cover;
}
.profile-name { font-size: 1.45rem; font-weight: 800; margin-bottom: 4px; letter-spacing: -0.3px; }
.profile-email { font-size: 0.88rem; color: #fef3c7; }
.profile-stats {
  display: inline-flex; gap: 16px; justify-content: center;
  margin-top: 20px; flex-wrap: wrap;
}
.profile-stat {
  text-align: center;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(253, 224, 71, 0.28);
  backdrop-filter: blur(8px);
  padding: 12px 22px; border-radius: 14px;
  min-width: 135px; transition: all 0.2s ease;
}
.profile-stat:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: #fde047;
  transform: translateY(-2px);
}
.profile-stat strong { display: block; font-size: 1.35rem; font-weight: 800; color: #fde047; }
.profile-stat span { font-size: 0.78rem; color: #e2e8f0; font-weight: 500; }
.profile-body { max-width: 900px; margin: -32px auto 0; padding: 0 20px; position: relative; z-index: 2; }
.profile-card {
  background: var(--white); border-radius: var(--radius); border: 1px solid var(--border);
  overflow: hidden; margin-bottom: 20px; box-shadow: var(--card-shadow);
}
.profile-card-header {
  padding: 14px 20px; border-bottom: 1px solid var(--border);
  display: flex; justify-content: space-between; align-items: center;
}
.profile-card-header h3 { font-weight: 700; font-size: 1rem; }
.profile-card-body { padding: 20px; }

/* Profile Action Toolbar Card */
.profile-actions-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 20px;
  margin-bottom: 20px;
  box-shadow: var(--card-shadow);
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 10px;
}

/* ---- Page Header Banners (Market / Rental / Post) ---- */
.page-banner {
  background: radial-gradient(circle at 85% 25%, rgba(251, 191, 36, 0.28) 0%, transparent 50%),
              linear-gradient(135deg, #7F1D1D 0%, #B91C1C 100%);
  padding: 28px 0 34px; color: white; margin-bottom: 24px;
  border-bottom: 2px solid rgba(253, 224, 71, 0.4);
}
.page-banner-rental {
  background: radial-gradient(circle at 85% 25%, rgba(14, 165, 233, 0.3) 0%, transparent 50%),
              linear-gradient(135deg, #0f172a 0%, #0c4a6e 100%);
}
.page-banner h1 {
  font-family: 'Plus Jakarta Sans', var(--font);
  font-size: 1.75rem; font-weight: 800; margin-bottom: 4px; letter-spacing: -0.4px;
}
.page-banner p { color: #cbd5e1; font-size: 0.92rem; }

/* ---- Auth & System Modals ---- */
.modal-overlay {
  position: fixed; inset: 0; z-index: 2000;
  background: rgba(15, 23, 42, 0.6); backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center; padding: 16px;
}
.modal {
  background: var(--white); border-radius: 20px;
  width: 100%; max-width: 540px; padding: 26px;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.28);
  animation: modalIn 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  max-height: 92vh; overflow-y: auto; position: relative;
  border: 1px solid #f1f5f9;
}
@keyframes modalIn { from { transform: scale(0.95) translateY(8px); opacity: 0; } to { transform: scale(1) translateY(0); opacity: 1; } }
@keyframes slideDown { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: translateY(0); } }
.modal-title { font-size: 1.35rem; font-weight: 800; text-align: center; margin-bottom: 4px; color: var(--text); letter-spacing: -0.3px; }
.modal-sub { font-size: 0.86rem; color: var(--text-2); text-align: center; margin-bottom: 20px; }
.modal-close {
  position: absolute; top: 16px; right: 16px;
  width: 34px; height: 34px; border-radius: 50%;
  background: #f1f5f9; display: flex; align-items: center; justify-content: center;
  font-size: 1rem; cursor: pointer; color: var(--text-2);
  transition: all var(--transition);
}
@media (max-width: 480px) {
  .modal-overlay {
    padding: 10px;
  }
  .modal {
    padding: 20px 14px;
    border-radius: 16px;
    max-height: 94vh;
  }
  .modal-title {
    font-size: 1.18rem;
  }
  .modal-sub {
    font-size: 0.8rem;
    margin-bottom: 14px;
  }
  .modal-close {
    top: 12px;
    right: 12px;
    width: 30px;
    height: 30px;
  }
}
.modal-close:hover { background: #fee2e2; color: #ef4444; transform: rotate(90deg); }
.modal-footer { text-align: center; margin-top: 16px; font-size: 0.88rem; color: var(--text-2); }
.modal-footer a { color: var(--primary); font-weight: 700; cursor: pointer; }

/* ---- Toast ---- */
#toast-container { position: fixed; bottom: 24px; right: 24px; z-index: 1200; display: flex; flex-direction: column; gap: 10px; }
.toast {
  background: #0f172a; color: white;
  padding: 12px 18px; border-radius: 12px;
  font-size: 0.88rem; font-weight: 600; max-width: 320px;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.25);
  animation: toastIn 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  border-left: 4px solid var(--primary);
}
@keyframes toastIn { from { transform: translateX(100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
.toast.success { background: #065f46; border-left-color: #34d399; }
.toast.error { background: #991b1b; border-left-color: #f87171; }
.toast.info { background: #0f172a; border-left-color: #38bdf8; }

/* ---- Empty State ---- */
.empty-state { text-align: center; padding: 56px 20px; color: var(--text-3); }
.empty-state .empty-icon { font-size: 2.8rem; margin-bottom: 12px; }
.empty-state h3 { font-size: 1.12rem; font-weight: 800; color: var(--text); margin-bottom: 6px; }
.empty-state p { font-size: 0.9rem; color: var(--text-2); margin-bottom: 20px; }

/* ---- Tags ---- */
.tag {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 10px; border-radius: var(--radius-full);
  font-size: 0.74rem; font-weight: 700;
}
.tag-moi   { background: #dcfce7; color: #15803d; }
.tag-tot   { background: #e0f2fe; color: #0369a1; }
.tag-trung { background: #fef3c7; color: #b45309; }
.tag-hu-nhe{ background: #fee2e2; color: #b91c1c; }

/* ---- Breadcrumb ---- */
.breadcrumb { display: flex; align-items: center; gap: 6px; font-size: 0.85rem; color: var(--text-3); padding: 16px 0 0; margin-bottom: 16px; }
.breadcrumb a { color: var(--primary); cursor: pointer; font-weight: 600; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb span { color: var(--text-3); }

/* ---- Pagination ---- */
.pagination { display: flex; gap: 6px; justify-content: center; margin-top: 32px; }
.page-btn {
  min-width: 38px; height: 38px; padding: 0 10px; border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.88rem; font-weight: 700; cursor: pointer;
  border: 1.5px solid var(--border); background: var(--white); color: var(--text-2);
  transition: all var(--transition);
}
.page-btn:hover, .page-btn.active {
  background: var(--primary); color: white; border-color: var(--primary);
  box-shadow: 0 4px 10px rgba(234, 88, 12, 0.25);
}

/* ---- Footer (Clean & Light) ---- */
#footer {
  background: var(--white);
  color: var(--text-2);
  padding: 18px 20px 14px;
  margin-top: 28px;
  border-top: 1px solid var(--border);
}
.footer-inner { max-width: var(--max-w); margin: 0 auto; }
.footer-simple {
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 14px; padding-bottom: 12px;
}
.footer-brand { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.footer-logo {
  font-family: 'Plus Jakarta Sans', var(--font);
  font-size: 1.15rem; font-weight: 800; color: var(--text); margin-bottom: 0;
  display: flex; align-items: center; gap: 6px;
}
.footer-desc { font-size: 0.82rem; color: var(--text-3); margin: 0; }
.footer-links {
  display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
}
.footer-links a {
  font-size: 0.84rem; color: var(--text-2); cursor: pointer; text-decoration: none;
  font-weight: 500; transition: color var(--transition);
}
.footer-links a:hover { color: var(--primary); }
.footer-bottom {
  border-top: 1px solid var(--border); padding-top: 10px;
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px;
  font-size: 0.78rem; color: var(--text-3);
}
@media (max-width: 768px) {
  #footer { padding: 16px 16px 82px; }
  .footer-simple { flex-direction: column; align-items: flex-start; gap: 10px; }
  .footer-links { gap: 12px; }
}

/* ---- Responsive Utilities ---- */
@media (max-width: 900px) {
  .nav-links .nav-link { display: none; }
}
@media (max-width: 768px) {
  .nav-search { display: none; }
  .hero { padding: 32px 16px 38px; }
  .hero h1 { font-size: 1.65rem; }
  .card-grid { grid-template-columns: repeat(auto-fill, minmax(162px, 1fr)); gap: 12px; }
  .card-body { padding: 10px 12px; }
  .card-title { font-size: 0.88rem; }
  .card-price { font-size: 1.02rem; }
  .detail-layout { grid-template-columns: 1fr; }
  #toast-container { bottom: 78px; right: 16px; }
}
@media (max-width: 480px) {
  .nav-links .btn-post { display: none; }
  .cat-chips { gap: 6px; }
  .cat-chip { font-size: 0.8rem; padding: 6px 12px; }
}

/* ---- Skeleton loading ---- */
.skeleton {
  background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%);
  background-size: 200% 100%;
  animation: skeleton-loading 1.2s infinite;
  border-radius: 8px;
}
@keyframes skeleton-loading { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }
.skeleton-card { height: 310px; border-radius: var(--radius); }

/* ---- Misc ---- */
.divider { height: 1px; background: var(--border); margin: 20px 0; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.gap-8 { gap: 8px; }
.mt-4 { margin-top: 4px; } .mt-8 { margin-top: 8px; } .mt-16 { margin-top: 16px; }
.text-muted { color: var(--text-3); font-size: 0.85rem; }
.badge-count {
  background: var(--danger); color: white;
  font-size: 0.65rem; font-weight: 800;
  width: 16px; height: 16px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  position: absolute; top: -4px; right: -4px;
}


/* =====================================================
   SIN 3.0 ADVANCED STYLES (VIP, WALLET, CHAT, MAP)
   ===================================================== */
.card-vip {
  border: 2px solid #f59e0b !important;
  box-shadow: 0 6px 20px rgba(245, 158, 11, 0.18) !important;
  position: relative;
}

.badge-vip-pill {
  position: absolute;
  top: 10px;
  right: 50px;
  background: linear-gradient(135deg, #f59e0b, #ea580c);
  color: white;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.4px;
  box-shadow: 0 2px 8px rgba(234, 88, 12, 0.3);
  z-index: 2;
}

.nav-wallet-btn {
  background: #ecfdf5;
  border: 1.5px solid #a7f3d0;
  color: #047857;
  padding: 6px 12px;
  border-radius: var(--radius-full);
  font-size: 0.84rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: all var(--transition);
}
.nav-wallet-btn:hover {
  background: #d1fae5;
  transform: translateY(-1px);
}

.nav-chat-btn {
  position: relative;
  background: #f8fafc;
  border: 1.5px solid var(--border);
  color: var(--text-2);
  padding: 6px 12px;
  border-radius: var(--radius-full);
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: all var(--transition);
}
.nav-chat-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-soft);
}

.badge-chat-count {
  background: var(--primary);
  color: white;
  font-size: 0.68rem;
  font-weight: 800;
  padding: 1px 6px;
  border-radius: 999px;
}

.active-market {
  background: var(--market) !important;
  color: white !important;
  border-color: var(--market) !important;
}

.active-rental {
  background: var(--rental) !important;
  color: white !important;
  border-color: var(--rental) !important;
}

/* =====================================================
   AI SMART AUTO-FILL & REDESIGNED POST FORM
   ===================================================== */
.ai-assistant-card {
  background: linear-gradient(135deg, #fff7ed 0%, #ffffff 100%);
  border: 1.5px solid #fed7aa;
  border-radius: var(--radius);
  padding: 18px 20px;
  margin-bottom: 24px;
  box-shadow: 0 4px 16px rgba(234, 88, 12, 0.06);
  position: relative;
}

.ai-assistant-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 6px;
}

.ai-assistant-title {
  font-size: 0.98rem;
  font-weight: 800;
  color: #9a3412;
  display: flex;
  align-items: center;
  gap: 7px;
}

.ai-hint-tag {
  font-size: 0.72rem;
  color: #c2410c;
  background: #ffedd5;
  padding: 3px 10px;
  border-radius: 999px;
  font-weight: 700;
}

.ai-assistant-desc {
  font-size: 0.84rem;
  color: #64748b;
  margin-bottom: 10px;
  line-height: 1.45;
}

.ai-textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid #fed7aa;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  color: var(--text);
  background: #ffffff;
  resize: vertical;
  min-height: 80px;
  outline: none;
  transition: all var(--transition);
  line-height: 1.5;
}

.ai-textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(234, 88, 12, 0.12);
}

.ai-actions-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.ai-samples-group {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.ai-samples-label {
  font-size: 0.76rem;
  color: #64748b;
  font-weight: 600;
}

.ai-sample-chip {
  background: #ffffff;
  border: 1px solid #fed7aa;
  color: #c2410c;
  font-size: 0.76rem;
  font-weight: 600;
  padding: 5px 11px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.ai-sample-chip:hover {
  background: #ffedd5;
  color: #9a3412;
  border-color: #fb923c;
}

.ai-chip-clear {
  color: #94a3b8;
  border-color: #cbd5e1;
  border-style: dashed;
}

.ai-chip-clear:hover {
  color: #ef4444;
  border-color: #fca5a5;
  background: #fef2f2;
}

.ai-btn-magic {
  background: linear-gradient(135deg, #f97316, #ea580c);
  color: white;
  font-weight: 700;
  font-size: 0.88rem;
  padding: 9px 18px;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 4px 12px rgba(234, 88, 12, 0.25);
  transition: all 0.15s ease;
}

.ai-btn-magic:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

.ai-btn-magic:active {
  transform: translateY(0);
}

.ai-result-box {
  margin-top: 10px;
  background: #ffffff;
  border: 1px solid #bbf7d0;
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  animation: fadeIn 0.2s ease-out;
}

.ai-result-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: #047857;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
}

.ai-detected-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.ai-detected-chip {
  background: #ecfdf5;
  border: 1px solid #6ee7b7;
  color: #065f46;
  padding: 3px 10px;
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

/* 2-Column Split View for Post Form */
.post-split-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  align-items: start;
}

@media (min-width: 1024px) {
  .post-split-layout {
    grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.9fr);
  }
}

.live-preview-card-wrap {
  position: sticky;
  top: 86px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--card-shadow);
}

.live-preview-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1.5px solid var(--border);
}

.live-preview-badge {
  background: #ecfdf5;
  color: #047857;
  border: 1px solid #a7f3d0;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* Visual pulse for AI auto-filled inputs */
@keyframes aiPulse {
  0% { background-color: #ecfdf5; border-color: #10b981; }
  50% { background-color: #d1fae5; border-color: #059669; }
  100% { background-color: var(--white); border-color: var(--border); }
}

.ai-auto-filled {
  animation: aiPulse 1.8s ease-in-out;
}

.section-box {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.section-box-header {
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.section-toggle-btn {
  background: var(--bg);
  border: 1px dashed var(--border);
  border-radius: var(--radius-sm);
  padding: 8px 14px;
  width: 100%;
  text-align: left;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all 0.15s ease;
  margin-top: 6px;
}

.section-toggle-btn:hover {
  background: var(--primary-light);
  border-color: var(--primary);
}

/* =====================================================
   ADMIN DASHBOARD 2.0 ENHANCEMENTS
   ===================================================== */
.admin-stat-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}
.admin-stat-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px -5px rgba(0,0,0,0.08);
  border-color: var(--primary);
}
.admin-stat-card:active {
  transform: translateY(0);
}
.admin-stat-card .card-arrow {
  position: absolute;
  right: 12px;
  bottom: 8px;
  font-size: 0.72rem;
  color: var(--text-3);
  font-weight: 600;
  opacity: 0;
  transition: opacity 0.2s, transform 0.2s;
}
.admin-stat-card:hover .card-arrow {
  opacity: 1;
  transform: translateX(3px);
  color: var(--primary);
}
.admin-batch-bar {
  position: sticky;
  top: 70px;
  z-index: 50;
  background: #1e1b4b;
  color: white;
  padding: 10px 18px;
  border-radius: var(--radius);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 8px 24px rgba(30, 27, 75, 0.25);
  animation: slideDown 0.2s ease-out;
}
@keyframes slideDown {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* =====================================================
   2-TIER PROGRESSIVE AUTHENTICATION STEPPER
   ===================================================== */
.auth-stepper-box {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 12px 16px;
  margin-bottom: 16px;
}
.auth-stepper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.auth-stepper .step-node {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.82rem;
  font-weight: 600;
  color: #94a3b8;
  transition: all 0.2s;
}
.auth-stepper .step-node.active {
  color: var(--primary);
  font-weight: 700;
}
.auth-stepper .step-node.done {
  color: #16a34a;
  font-weight: 700;
}
.auth-stepper .step-num {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.74rem;
  font-weight: 800;
  background: #e2e8f0;
  color: #64748b;
  transition: all 0.2s;
}
.auth-stepper .step-node.active .step-num {
  background: var(--primary);
  color: #ffffff;
  box-shadow: 0 0 0 3px var(--primary-light);
}
.auth-stepper .step-node.done .step-num {
  background: #16a34a;
  color: #ffffff;
}
.auth-stepper .step-divider {
  flex: 1;
  max-width: 44px;
  height: 2px;
  background: #cbd5e1;
  border-radius: 2px;
}
.auth-stepper .step-divider.done {
  background: #16a34a;
}
.auth-stepper-hint {
  text-align: center;
  margin-top: 8px;
  font-size: 0.78rem;
  color: var(--text-2);
  line-height: 1.4;
}

/* Profile Level / Tier Progress Card */
.tier-progress-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
  margin-bottom: 20px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.tier-progress-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.tier-bar-bg {
  width: 100%;
  height: 8px;
  background: #e2e8f0;
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 12px;
}
.tier-bar-fill {
  height: 100%;
  border-radius: 999px;
  transition: width 0.4s ease;
}

/* Avatar edit badge */
.avatar-edit-badge {
  position: absolute;
  bottom: 0;
  right: 0;
  background: var(--primary);
  color: white;
  border: 2.5px solid white;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0,0,0,0.25);
  font-size: 0.95rem;
  transition: all 0.2s ease;
}
.avatar-edit-badge:hover {
  transform: scale(1.15);
  background: var(--primary-dark, #4f46e5);
}

/* Profile Tab Buttons */
.profile-tab-btn {
  background: none;
  border: none;
  padding: 10px 18px;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-2);
  cursor: pointer;
  border-bottom: 2.5px solid transparent;
  transition: all 0.2s ease;
  white-space: nowrap;
}
.profile-tab-btn:hover {
  color: var(--primary);
}
.profile-tab-btn.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
  font-weight: 700;
}

/* Notification Button in Navbar */
.nav-noti-btn {
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: var(--radius-sm);
  padding: 6px 10px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: all var(--transition);
  position: relative;
}
.nav-noti-btn:hover {
  background: var(--primary-light);
  border-color: var(--primary);
  color: var(--primary);
}
.badge-noti-count {
  background: #ef4444;
  color: #ffffff;
  font-size: 0.68rem;
  font-weight: 800;
  padding: 1px 6px;
  border-radius: 999px;
  line-height: 1.2;
}

/* =====================================================
   GOOGLE MAPS & GPS ADVANCED STYLES
   ===================================================== */
.gmap-price-marker {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #0284c7;
  color: #ffffff;
  padding: 4px 9px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  box-shadow: 0 3px 10px rgba(2, 132, 199, 0.45);
  border: 2px solid #ffffff;
  white-space: nowrap;
  transition: transform 0.15s ease, background 0.15s ease;
  cursor: pointer;
}
.gmap-price-marker:hover {
  transform: scale(1.12);
  background: #0369a1;
  z-index: 9999 !important;
}
.gmap-price-vip {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  box-shadow: 0 3px 10px rgba(245, 158, 11, 0.5);
}
.gmap-price-vip:hover {
  background: linear-gradient(135deg, #d97706, #b45309);
}

/* User Location Pulsing Dot */
.user-gps-pulse {
  position: relative;
  width: 20px;
  height: 20px;
}
.user-gps-core {
  width: 20px;
  height: 20px;
  background: #2563eb;
  border: 3px solid #ffffff;
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(0,0,0,0.35);
  position: absolute;
  top: 0;
  left: 0;
  z-index: 2;
}
.user-gps-wave {
  position: absolute;
  top: -8px;
  left: -8px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(37, 99, 235, 0.35);
  animation: gps-wave-anim 2s infinite ease-out;
  z-index: 1;
}
@keyframes gps-wave-anim {
  0% { transform: scale(0.4); opacity: 1; }
  100% { transform: scale(1.8); opacity: 0; }
}

/* Map Controls Floating Bar */
.map-toolbar {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 1000;
  display: flex;
  gap: 6px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  padding: 5px;
  border-radius: 8px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.15);
  border: 1px solid rgba(0,0,0,0.08);
}
.map-tool-btn {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  color: #334155;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: all 0.15s ease;
}
.map-tool-btn:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
}
.map-tool-btn.active {
  background: #0284c7;
  color: #ffffff;
  border-color: #0284c7;
}

@media (max-width: 640px) {
  .map-toolbar {
    top: 8px;
    right: 8px;
    left: auto;
    max-width: calc(100% - 16px);
    overflow-x: auto;
    padding: 3px;
    gap: 4px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  }
  .map-tool-btn {
    padding: 5px 8px;
    font-size: 0.72rem;
    white-space: nowrap;
  }
}

/* Responsive Table Wrapper */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* ---- Rental Toolbar (Modern & Compact) ---- */
.rental-toolbar-box {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  margin-bottom: 12px;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
}
.rental-top-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: space-between;
}
.rental-view-toggle {
  background: #f1f5f9;
  padding: 2px;
  border-radius: 999px;
  display: inline-flex;
  gap: 2px;
  border: 1px solid var(--border);
  flex-shrink: 0;
}
.rental-view-toggle .type-btn {
  padding: 5px 12px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.78rem;
  border: none;
  cursor: pointer;
  background: none;
  color: var(--text-2);
}
.rental-view-toggle .type-btn.active-rental {
  background: #0284c7;
  color: #ffffff;
}
.btn-gps-compact {
  background: #0284c7;
  color: white;
  border: none;
  border-radius: 999px;
  font-weight: 700;
  padding: 5px 12px;
  font-size: 0.78rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
  flex-shrink: 0;
  transition: all var(--transition);
  box-shadow: 0 2px 6px rgba(2, 132, 199, 0.2);
}
.btn-gps-compact:hover { background: #0369a1; }
.rental-filters-inline {
  display: flex;
  align-items: center;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
  flex: 1;
  -webkit-overflow-scrolling: touch;
}
.rental-filters-inline::-webkit-scrollbar { display: none; }
.rental-count-text {
  font-size: 0.78rem;
  color: var(--text-3);
  white-space: nowrap;
  flex-shrink: 0;
  margin-left: auto;
}
.rental-uni-scroll {
  display: flex;
  align-items: center;
  gap: 6px;
  overflow-x: auto;
  flex-wrap: nowrap;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-top: 6px;
  margin-top: 6px;
  border-top: 1px dashed #e2e8f0;
}
.rental-uni-scroll::-webkit-scrollbar { display: none; }
.uni-scroll-label {
  font-size: 0.75rem;
  font-weight: 700;
  color: #0369a1;
  white-space: nowrap;
  flex-shrink: 0;
}

/* GPS Search Bar (Fallback) */
.gps-search-container {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  margin-bottom: 12px;
}
.gps-quick-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  background: #f0f9ff;
  border: 1px solid #bae6fd;
  border-radius: 999px;
  font-size: 0.78rem;
  color: #0369a1;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}
.gps-quick-chip:hover {
  background: #0284c7;
  color: #ffffff;
  border-color: #0284c7;
}

/* =====================================================
   ADMIN IN-PLACE POWER TOOLS & HUD (FRONTEND MODERATION)
   ===================================================== */
#admin-hud-root {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9998;
  pointer-events: none;
}
@media (max-width: 768px) {
  #admin-hud-root {
    bottom: 68px;
    left: 50%;
    transform: translateX(-50%);
    width: 94vw;
  }
}

.admin-hud-bar {
  pointer-events: auto;
  background: rgba(15, 23, 42, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1.5px solid rgba(129, 140, 248, 0.4);
  border-radius: 999px;
  padding: 7px 14px;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35), 0 0 18px rgba(99, 102, 241, 0.22);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  max-width: 95vw;
}
@media (max-width: 768px) {
  .admin-hud-bar {
    border-radius: 16px;
    padding: 8px 10px;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: space-between;
  }
}

.hud-left {
  display: flex;
  align-items: center;
  gap: 12px;
}
.hud-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  padding-right: 12px;
  border-right: 1px solid rgba(255, 255, 255, 0.12);
  transition: opacity 0.15s;
}
.hud-brand:hover {
  opacity: 0.85;
}
.hud-shield-icon {
  font-size: 1.25rem;
  filter: drop-shadow(0 0 6px rgba(250, 204, 21, 0.5));
}
.hud-title-col {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.hud-title {
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.8px;
  color: #818cf8;
}
.hud-sub {
  font-size: 0.68rem;
  color: #94a3b8;
  font-weight: 500;
}

.hud-stats-row {
  display: flex;
  align-items: center;
  gap: 6px;
}
.hud-pill-stat {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #e2e8f0;
  font-size: 0.74rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.15s ease;
}
.hud-pill-stat:hover {
  background: rgba(255, 255, 255, 0.16);
  transform: translateY(-1px);
}
.hud-pill-stat.has-pending {
  background: rgba(245, 158, 11, 0.22);
  border-color: #f59e0b;
  color: #fde047;
  animation: pulse-hud-amber 2s infinite;
}
.hud-pill-stat.has-reports {
  background: rgba(239, 68, 68, 0.22);
  border-color: #ef4444;
  color: #fca5a5;
}
@keyframes pulse-hud-amber {
  0%, 100% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.4); }
  50% { box-shadow: 0 0 0 6px rgba(245, 158, 11, 0); }
}
.stat-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #22c55e;
}
.stat-dot.dot-pending {
  background: #f59e0b;
}

.hud-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: nowrap;
}
@media (max-width: 768px) {
  .hud-controls {
    flex-wrap: wrap;
  }
}
.hud-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #cbd5e1;
  font-size: 0.74rem;
  padding: 5px 11px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.18s ease;
  white-space: nowrap;
}
.hud-toggle-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
}
.hud-toggle-btn.is-active {
  background: linear-gradient(135deg, #4f46e5 0%, #6366f1 100%);
  border-color: #818cf8;
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(79, 70, 229, 0.4);
}
.hud-icon-action {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #f1f5f9;
  font-size: 0.74rem;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}
.hud-icon-action:hover {
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
}
.hud-collapse-btn {
  background: transparent;
  border: none;
  color: #94a3b8;
  font-size: 0.85rem;
  cursor: pointer;
  padding: 4px 6px;
  border-radius: 50%;
  transition: color 0.15s, background 0.15s;
}
.hud-collapse-btn:hover {
  color: white;
  background: rgba(255, 255, 255, 0.12);
}

/* Mini Collapsed HUD Button */
.admin-hud-mini {
  pointer-events: auto;
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1e1b4b 0%, #0f172a 100%);
  border: 2px solid #6366f1;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35), 0 0 14px rgba(99, 102, 241, 0.4);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 9998;
}
@media (max-width: 768px) {
  .admin-hud-mini {
    bottom: 74px;
    right: 16px;
  }
}
.admin-hud-mini:hover {
  transform: scale(1.1);
  box-shadow: 0 10px 28px rgba(99, 102, 241, 0.5);
}
.hud-mini-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: #f59e0b;
  color: #78350f;
  font-size: 0.65rem;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 999px;
  border: 2px solid #0f172a;
}

/* ---- Card Admin Trigger & Quick Strip ---- */
.card-admin-shield-btn {
  position: absolute;
  top: 8px;
  right: 44px; /* Next to favorite heart button */
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #fde047;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.18s ease;
  z-index: 3;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}
.card-admin-shield-btn:hover {
  transform: scale(1.12);
  background: #0f172a;
  border-color: #818cf8;
}

.card-admin-quick-strip {
  display: flex;
  gap: 4px;
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px dashed #e2e8f0;
  flex-wrap: wrap;
}
.admin-chip-btn {
  flex: 1;
  min-width: 48px;
  padding: 4px 6px;
  font-size: 0.71rem;
  font-weight: 700;
  border-radius: 6px;
  border: 1px solid transparent;
  cursor: pointer;
  text-align: center;
  transition: all 0.15s ease;
  white-space: nowrap;
}
.chip-edit {
  background: #f1f5f9;
  color: #334155;
  border-color: #cbd5e1;
}
.chip-edit:hover {
  background: #e2e8f0;
  color: #0f172a;
}
.chip-del {
  background: #fef2f2;
  color: #b91c1c;
  border-color: #fecaca;
}
.chip-del:hover {
  background: #ef4444;
  color: #ffffff;
}
.chip-vip {
  background: #fefce8;
  color: #854d0e;
  border-color: #fef08a;
}
.chip-vip:hover {
  background: #fef08a;
  color: #713f12;
}
.chip-vip.active-vip {
  background: linear-gradient(135deg, #fef08a 0%, #facc15 100%);
  color: #713f12;
  border-color: #eab308;
  font-weight: 800;
}
.chip-approve {
  background: #ecfdf5;
  color: #047857;
  border-color: #a7f3d0;
}
.chip-approve:hover {
  background: #10b981;
  color: #ffffff;
}

/* Card Ghost Warning Borders */
.listing-card.card-ghost-pending {
  border: 2px dashed #f59e0b !important;
  background: #fffbeb !important;
}
.listing-card.card-ghost-banned {
  border: 2px dashed #ef4444 !important;
  background: #fef2f2 !important;
  opacity: 0.82;
}

/* ---- Admin Detail Power Bar ---- */
.admin-detail-bar {
  background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 55%, #312e81 100%);
  border-radius: 14px;
  padding: 12px 18px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  border: 1.5px solid rgba(129, 140, 248, 0.35);
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.12);
  color: #ffffff;
}
.admin-bar-left {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.admin-bar-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(99, 102, 241, 0.25);
  border: 1px solid #818cf8;
  color: #c7d2fe;
  font-size: 0.78rem;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 999px;
  letter-spacing: 0.3px;
}
.admin-status-pill {
  font-size: 0.74rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 999px;
}
.admin-status-pill.status-active {
  background: rgba(34, 197, 94, 0.2);
  border: 1px solid #22c55e;
  color: #86efac;
}
.admin-status-pill.status-pending {
  background: rgba(245, 158, 11, 0.2);
  border: 1px solid #f59e0b;
  color: #fde047;
}
.admin-status-pill.status-banned {
  background: rgba(239, 68, 68, 0.2);
  border: 1px solid #ef4444;
  color: #fca5a5;
}
.admin-vip-pill {
  background: linear-gradient(135deg, rgba(234, 179, 8, 0.25), rgba(202, 138, 4, 0.25));
  border: 1px solid #eab308;
  color: #fef08a;
  font-size: 0.74rem;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 999px;
}
.admin-meta-text {
  font-size: 0.76rem;
  color: #cbd5e1;
}
.admin-meta-text code {
  background: rgba(255, 255, 255, 0.12);
  padding: 2px 5px;
  border-radius: 4px;
  font-size: 0.72rem;
  color: #f1f5f9;
}

.admin-bar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.btn-admin-bar {
  padding: 6px 12px;
  font-size: 0.78rem;
  font-weight: 700;
  border-radius: 8px;
  border: 1px solid transparent;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: all 0.15s ease;
}
.btn-admin-bar:hover {
  transform: translateY(-1px);
}
.btn-admin-edit {
  background: #ffffff;
  color: #0f172a;
}
.btn-admin-edit:hover {
  background: #f1f5f9;
}
.btn-admin-delete {
  background: rgba(239, 68, 68, 0.25);
  border-color: #ef4444;
  color: #fca5a5;
}
.btn-admin-delete:hover {
  background: #ef4444;
  color: #ffffff;
}
.btn-admin-vip {
  background: rgba(234, 179, 8, 0.25);
  border-color: #eab308;
  color: #fef08a;
}
.btn-admin-vip:hover {
  background: #eab308;
  color: #713f12;
}
.btn-admin-approve {
  background: #10b981;
  color: #ffffff;
}
.btn-admin-approve:hover {
  background: #059669;
}
.btn-admin-hide {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.25);
  color: #ffffff;
}
.btn-admin-hide:hover {
  background: rgba(255, 255, 255, 0.2);
}
.btn-admin-seller {
  background: rgba(99, 102, 241, 0.35);
  border-color: #818cf8;
  color: #e0e7ff;
}
.btn-admin-seller:hover {
  background: #6366f1;
  color: #ffffff;
}

/* =====================================================
   ADMIN NAVBAR & TABS RESPONSIVE (PREVENT OVERLAP)
   ===================================================== */
.admin-nav-inner {
  background: #0f172a !important;
  color: white !important;
  border-bottom: 1px solid #1e293b !important;
  max-width: 100% !important;
  padding: 0 20px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  flex-wrap: nowrap !important;
  gap: 12px !important;
  height: 64px !important;
  overflow: visible !important;
  box-sizing: border-box;
}

.admin-nav-left {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  min-width: 0;
}

.admin-center-badge {
  background: linear-gradient(135deg, #f97316, #ea580c);
  color: white;
  padding: 2px 7px;
  border-radius: 6px;
  font-size: 0.68rem;
  letter-spacing: 0.5px;
  font-weight: 700;
  white-space: nowrap;
}

.admin-nav-subtext {
  font-size: 0.82rem;
  color: #94a3b8;
  border-left: 1px solid #334155;
  padding-left: 12px;
  white-space: nowrap;
  display: inline-block;
}

.admin-nav-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.admin-back-btn {
  background: #1e293b;
  color: #f8fafc;
  border: 1px solid #334155;
  padding: 7px 12px;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  transition: all 0.15s;
  flex-shrink: 0;
}
.admin-back-btn:hover {
  background: #334155;
}
.admin-btn-text-mobile {
  display: none;
}

.admin-wallet-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-shrink: 0;
}

.admin-page-header-title {
  font-size: clamp(1.2rem, 3.5vw, 1.65rem);
  font-weight: 800;
  letter-spacing: -0.5px;
  line-height: 1.25;
  margin: 0;
}

/* Tabs & Category Chips */
.admin-cat-tabs {
  margin-bottom: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.cat-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  border: 1.5px solid var(--border);
  background: var(--white);
  font-size: 0.86rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  color: var(--text-2);
  user-select: none;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03);
  white-space: nowrap;
}
.cat-tab:hover {
  border-color: #818cf8;
  background: #f8fafc;
  color: var(--primary);
}
.cat-tab.active {
  border-color: #4f46e5 !important;
  color: #4f46e5 !important;
  background: #eef2ff !important;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(79, 70, 229, 0.15);
}

/* Responsive Breakpoints */
@media (max-width: 960px) {
  .admin-nav-subtext {
    display: none !important;
  }
}

@media (max-width: 640px) {
  .admin-nav-inner {
    padding: 0 12px !important;
    gap: 8px !important;
    height: 56px !important;
  }
  .admin-center-badge {
    display: none !important;
  }
  .admin-btn-text {
    display: none !important;
  }
  .admin-btn-text-mobile {
    display: inline !important;
  }
  .admin-back-btn {
    padding: 6px 9px !important;
    font-size: 0.78rem !important;
  }
  .admin-wallet-amt {
    max-width: 65px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    display: inline-block;
    vertical-align: bottom;
  }
  .cat-tab {
    font-size: 0.78rem;
    padding: 6px 12px;
    gap: 4px;
  }
}

@media (max-width: 440px) {
  .admin-nav-right {
    gap: 6px !important;
  }
  .admin-chat-btn,
  .admin-noti-btn {
    display: none !important;
  }
  .admin-wallet-amt {
    max-width: 50px;
  }
}

/* ==========================================================================
   SHARE MODAL & MULTI-PLATFORM SHARING (FACEBOOK, ZALO, TELEGRAM...)
   ========================================================================== */
.btn-share-action {
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.btn-share-action:hover {
  background: #fff7ed !important;
  border-color: #ea580c !important;
  color: #ea580c !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(234, 88, 12, 0.15) !important;
}

.share-modal-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid #f1f5f9;
}
.share-modal-badge-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, #ffedd5 0%, #fed7aa 100%);
  color: #ea580c;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.share-section-box {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 14px;
  margin-bottom: 16px;
}
.share-profile-box {
  background: #ffffff;
  border: 1.5px solid #cbd5e1;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}
.share-section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 700;
  font-size: 0.88rem;
  color: #1e293b;
  margin-bottom: 10px;
}
.fb-tag-pill {
  background: #e7f3ff;
  color: #1877f2;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid #b2d7ff;
}
.share-author-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.share-author-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid #e2e8f0;
}
.share-author-name {
  font-weight: 700;
  font-size: 0.9rem;
  color: #0f172a;
}
.share-audience-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.74rem;
  color: #64748b;
  background: #f1f5f9;
  padding: 1px 6px;
  border-radius: 4px;
  margin-top: 2px;
}
.share-caption-textarea {
  width: 100%;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 10px 12px;
  font-family: inherit;
  font-size: 0.88rem;
  line-height: 1.4;
  resize: none;
  margin-bottom: 10px;
  transition: border-color 0.2s;
  background: #fdfdfd;
}
.share-caption-textarea:focus {
  outline: none;
  border-color: #1877f2;
  box-shadow: 0 0 0 3px rgba(24, 119, 242, 0.15);
}
.share-preview-card {
  display: flex;
  gap: 12px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 8px;
  margin-bottom: 12px;
}
.share-preview-thumb {
  width: 90px;
  height: 72px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
}
.share-preview-details {
  flex: 1;
  min-width: 0;
}
.share-preview-type {
  font-size: 0.72rem;
  font-weight: 700;
  color: #ea580c;
  margin-bottom: 2px;
}
.share-preview-title {
  font-weight: 700;
  font-size: 0.84rem;
  color: #0f172a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.share-preview-price {
  font-weight: 800;
  font-size: 0.88rem;
  color: #059669;
  margin-top: 2px;
}
.share-preview-loc {
  font-size: 0.74rem;
  color: #64748b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 1px;
}
.btn-share-post-profile {
  width: 100%;
  background: linear-gradient(135deg, #1877f2 0%, #166fe5 100%);
  color: white;
  border: none;
  border-radius: 8px;
  padding: 10px;
  font-weight: 700;
  font-size: 0.88rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 6px rgba(24, 119, 242, 0.25);
}
.btn-share-post-profile:hover {
  background: #1465cc;
  transform: translateY(-1px);
}
.share-copy-group {
  display: flex;
  gap: 8px;
}
.share-link-input {
  flex: 1;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 0.82rem;
  color: #334155;
}
.btn-share-copy {
  background: #0f172a;
  color: white;
  border: none;
  border-radius: 8px;
  padding: 8px 16px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
}
.btn-share-copy:hover {
  background: #1e293b;
}
.share-social-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
@media (min-width: 480px) {
  .share-social-grid {
    grid-template-columns: repeat(6, 1fr);
  }
}
.btn-social-share {
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 10px 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}
.btn-social-share:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}
.btn-social-share span {
  font-size: 0.72rem;
  font-weight: 600;
  color: #334155;
}
.social-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.1rem;
  color: white;
}
.btn-social-share.fb .social-icon { background: #1877f2; }
.btn-social-share.msg .social-icon { background: linear-gradient(135deg, #0084ff 0%, #a033ff 100%); }
.btn-social-share.zalo .social-icon { background: #0068ff; }
.btn-social-share.tele .social-icon { background: #229ed9; }
.btn-social-share.twitter .social-icon { background: #000000; }
.btn-social-share.more .social-icon { background: #64748b; }

/* ==========================================================================
   FACEBOOK PROFILE UI REDESIGN (GIAO DIỆN TRANG CÁ NHÂN CHUẨN FACEBOOK)
   ========================================================================== */
.fb-profile-page {
  background: #f0f2f5;
  min-height: 100vh;
  padding-bottom: 60px;
  color: #050505;
}

/* Header Container */
.fb-header-card {
  background: #ffffff;
  border-bottom: 1px solid #dadde1;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}
.fb-header-inner {
  max-width: 1095px;
  margin: 0 auto;
  position: relative;
}

/* Cover Photo */
.fb-cover-wrap {
  width: calc(100% - 28px);
  height: 240px;
  margin: 12px 14px 0;
  position: relative;
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.1);
}
.fb-cover-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.fb-btn-cover-edit {
  position: absolute;
  right: 14px;
  bottom: 14px;
  background: rgba(15, 23, 42, 0.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 999px;
  padding: 7px 14px;
  font-size: 0.78rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
  transition: all 0.15s ease;
  z-index: 5;
}
.fb-btn-cover-edit:hover {
  background: rgba(15, 23, 42, 0.88);
}

/* Avatar & Intro row */
.fb-profile-intro-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 0 28px 16px;
  gap: 20px;
  flex-wrap: wrap;
}
.fb-avatar-wrap {
  position: relative;
  width: 148px;
  height: 148px;
  margin-top: -74px;
  flex-shrink: 0;
  z-index: 6;
}
.fb-avatar-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 4px solid #ffffff;
  object-fit: cover;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.18);
  background: #ffffff;
}
.fb-avatar-camera-btn {
  position: absolute;
  right: 4px;
  bottom: 4px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.16);
}
.fb-avatar-camera-btn:hover {
  background: #f8fafc;
}

.fb-user-info-col {
  flex: 1;
  min-width: 250px;
  padding-bottom: 6px;
}
.fb-user-name {
  font-size: 1.95rem;
  font-weight: 800;
  color: #050505;
  letter-spacing: -0.5px;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}
.fb-verified-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  background: #1877f2;
  color: white;
  border-radius: 50%;
  font-size: 0.78rem;
  font-weight: 800;
}
.fb-user-sub {
  font-size: 0.92rem;
  color: #65676b;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.fb-bio-display {
  font-size: 0.92rem;
  color: #050505;
  margin-bottom: 4px;
  line-height: 1.4;
}
.fb-bio-edit-btn {
  background: none;
  border: none;
  color: #DC2626;
  font-weight: 600;
  font-size: 0.8rem;
  cursor: pointer;
  padding: 0;
  margin-top: 2px;
}
.fb-bio-edit-btn:hover {
  text-decoration: underline;
}

/* Action buttons */
.fb-intro-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 4px;
  flex-wrap: nowrap;
}
.fb-btn-primary {
  background: linear-gradient(135deg, #DC2626 0%, #B91C1C 100%);
  color: #ffffff;
  border: none;
  border-radius: 12px;
  padding: 9px 16px;
  font-size: 0.85rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  box-shadow: 0 3px 10px rgba(185, 28, 28, 0.22);
  transition: all 0.15s ease;
}
.fb-btn-primary:hover {
  background: linear-gradient(135deg, #B91C1C 0%, #991B1B 100%);
}
.fb-btn-secondary {
  background: rgba(255, 255, 255, 0.96);
  color: #0f172a;
  border: 1px solid rgba(217, 119, 6, 0.25);
  border-radius: 12px;
  padding: 9px 14px;
  font-size: 0.85rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
}
.fb-btn-secondary:hover {
  background: #ffffff;
  border-color: rgba(217, 119, 6, 0.45);
}
.fb-btn-wallet {
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
  border-radius: 12px;
  padding: 8px 14px;
  font-size: 0.85rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
}
.fb-btn-wallet:hover {
  background: #d1fae5;
}

/* Navigation Tabs */
.fb-profile-tabs-strip {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 28px 10px;
  border-top: none;
  overflow-x: auto;
  scrollbar-width: none;
}
.fb-profile-tabs-strip::-webkit-scrollbar {
  display: none;
}
.fb-tab-btn {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(251, 191, 36, 0.28);
  border-radius: 999px;
  padding: 7px 14px;
  font-size: 0.8rem;
  font-weight: 600;
  color: #475569;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease;
  flex-shrink: 0;
}
.fb-tab-btn:hover {
  background: #ffffff;
  color: #0f172a;
}
.fb-tab-btn.active {
  background: linear-gradient(135deg, #DC2626 0%, #B91C1C 100%);
  color: #ffffff;
  border-color: #B91C1C;
  font-weight: 700;
  box-shadow: 0 3px 10px rgba(220, 38, 38, 0.24);
}

/* 2-Column Body Layout */
.fb-profile-body-grid {
  max-width: 1095px;
  margin: 16px auto 0;
  padding: 0 16px;
  display: grid;
  grid-template-columns: 375px 1fr;
  gap: 16px;
  align-items: flex-start;
}
@media (max-width: 890px) {
  .fb-profile-body-grid {
    grid-template-columns: 1fr;
    margin-top: 6px;
    padding: 0 12px;
  }
  .fb-sidebar-col {
    display: none;
  }
  .fb-cover-wrap {
    width: calc(100% - 24px);
    height: 148px;
    margin: 10px 12px 0;
    border-radius: 16px;
  }
  .fb-btn-cover-edit {
    right: 10px;
    bottom: 10px;
    padding: 6px 11px;
    font-size: 0.74rem;
  }
  .fb-profile-intro-row {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    padding: 0 16px 16px;
    gap: 12px;
  }
  .fb-avatar-wrap {
    width: 106px;
    height: 106px;
    margin: -58px 0 0 6px;
  }
  .fb-avatar-camera-btn {
    width: 32px;
    height: 32px;
    right: 2px;
    bottom: 2px;
  }
  .fb-user-name {
    justify-content: flex-start;
  }
  .fb-user-sub {
    justify-content: flex-start;
  }
  .fb-intro-actions {
    justify-content: flex-start;
    width: 100%;
  }
  .fb-profile-tabs-strip {
    padding: 0 12px;
  }
}

/* Left Sidebar Cards */
.fb-card {
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
  padding: 16px;
  margin-bottom: 16px;
}
.fb-card-title {
  font-size: 1.18rem;
  font-weight: 700;
  color: #050505;
  margin-bottom: 14px;
}
.fb-intro-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 16px;
}
.fb-intro-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.88rem;
  color: #050505;
}
.fb-intro-icon {
  font-size: 1.25rem;
  width: 24px;
  text-align: center;
  flex-shrink: 0;
}
.fb-photos-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  border-radius: 8px;
  overflow: hidden;
}
.fb-photo-thumb {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  cursor: pointer;
  border-radius: 4px;
  transition: transform 0.2s ease;
}
.fb-photo-thumb:hover {
  transform: scale(1.04);
}

/* Facebook Composer Card ("Bạn đang nghĩ gì thế?") */
.fb-composer-card {
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
  padding: 12px 16px;
  margin-bottom: 16px;
}
.fb-composer-top {
  display: flex;
  align-items: center;
  gap: 10px;
}
.fb-composer-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}
.fb-composer-fake-input {
  flex: 1;
  background: #f0f2f5;
  border-radius: 50px;
  padding: 10px 16px;
  font-size: 0.92rem;
  color: #65676b;
  cursor: pointer;
  transition: background 0.15s ease;
}
.fb-composer-fake-input:hover {
  background: #e4e6e9;
}
.fb-composer-divider {
  height: 1px;
  background: #e4e6eb;
  margin: 10px 0;
}
.fb-composer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-around;
}
.fb-composer-action {
  background: none;
  border: none;
  padding: 8px 12px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.86rem;
  font-weight: 600;
  color: #65676b;
  cursor: pointer;
  transition: background 0.15s ease;
}
.fb-composer-action:hover {
  background: #f0f2f5;
  color: #050505;
}

/* Post Cards */
.fb-posts-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #ffffff;
  border-radius: 8px;
  padding: 12px 16px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
  margin-bottom: 16px;
}
.fb-posts-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #050505;
}
.fb-post-card {
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
  padding: 14px 16px;
  margin-bottom: 16px;
}
.fb-post-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}
.fb-post-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
}
.fb-post-header-meta {
  flex: 1;
}
.fb-post-author-name {
  font-size: 0.94rem;
  color: #050505;
}
.fb-post-author-name strong {
  font-weight: 700;
  cursor: pointer;
}
.fb-post-action-text {
  color: #65676b;
  font-weight: 400;
  margin-left: 4px;
}
.fb-post-time-audience {
  font-size: 0.78rem;
  color: #65676b;
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 1px;
}
.fb-btn-post-menu {
  background: none;
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  color: #65676b;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease;
}
.fb-btn-post-menu:hover {
  background: #f0f2f5;
  color: #dc2626;
}
.fb-post-caption-content {
  font-size: 0.94rem;
  color: #050505;
  line-height: 1.5;
  margin-bottom: 12px;
  white-space: pre-line;
}

/* Attachment (Shared Listing Card) */
.fb-post-attachment {
  border: 1px solid #ced0d4;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 12px;
  background: #f8fafc;
  cursor: pointer;
  transition: all 0.2s ease;
}
.fb-post-attachment:hover {
  border-color: #1877f2;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}
.fb-attachment-thumb-wrap {
  position: relative;
  width: 100%;
  height: 240px;
  background: #e2e8f0;
}
.fb-attachment-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.fb-attachment-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(4px);
  color: white;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.76rem;
  font-weight: 700;
}
.fb-attachment-body {
  padding: 12px 14px;
}
.fb-attachment-origin {
  font-size: 0.76rem;
  color: #65676b;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 2px;
}
.fb-attachment-title {
  font-weight: 700;
  font-size: 1.05rem;
  color: #050505;
  margin-bottom: 4px;
  line-height: 1.35;
}
.fb-attachment-price {
  font-size: 1.15rem;
  font-weight: 800;
  color: #ea580c;
  margin-bottom: 4px;
}
.fb-attachment-loc {
  font-size: 0.82rem;
  color: #65676b;
  margin-bottom: 8px;
}
.fb-attachment-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 700;
  font-size: 0.84rem;
  color: #1877f2;
  border-top: 1px dashed #e2e8f0;
  padding-top: 8px;
}

/* Post Stats & Reactions */
.fb-post-stats-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 4px 10px;
  font-size: 0.86rem;
  color: #65676b;
  border-bottom: 1px solid #e4e6eb;
}
.fb-post-stat-likes {
  display: flex;
  align-items: center;
  gap: 6px;
}
.fb-like-icon-circle {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #1877f2;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
}
.fb-post-actions-bar {
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 4px 0;
  border-bottom: 1px solid #e4e6eb;
}
.fb-action-btn {
  flex: 1;
  background: none;
  border: none;
  padding: 8px 4px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 0.88rem;
  font-weight: 600;
  color: #65676b;
  cursor: pointer;
  transition: all 0.15s ease;
}
.fb-action-btn:hover {
  background: #f0f2f5;
  color: #050505;
}
.fb-action-btn.liked {
  color: #1877f2;
  font-weight: 700;
}

/* Comments Section */
.fb-comments-section {
  padding-top: 10px;
}
.fb-comments-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 10px;
}
.fb-comment-bubble-item {
  display: flex;
  gap: 8px;
  align-items: flex-start;
}
.fb-comment-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.fb-comment-bubble-content {
  background: #f0f2f5;
  border-radius: 16px;
  padding: 8px 12px;
  max-width: 88%;
}
.fb-comment-user-name {
  font-size: 0.82rem;
  font-weight: 700;
  color: #050505;
  margin-bottom: 2px;
}
.fb-comment-text {
  font-size: 0.86rem;
  color: #050505;
  line-height: 1.35;
}
.fb-comment-input-row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.fb-comment-input-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
}
.fb-comment-input-box {
  flex: 1;
  display: flex;
  align-items: center;
  background: #f0f2f5;
  border-radius: 50px;
  padding: 4px 6px 4px 14px;
}
.fb-comment-input-box input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  font-size: 0.86rem;
  color: #050505;
}
.fb-btn-send-comment {
  background: #1877f2;
  color: white;
  border: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.76rem;
  cursor: pointer;
  transition: transform 0.15s ease;
}
.fb-btn-send-comment:hover {
  transform: scale(1.1);
}
.fb-empty-feed {
  text-align: center;
  padding: 36px 16px;
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}
.fb-empty-feed-icon {
  font-size: 2.8rem;
  margin-bottom: 8px;
}
.fb-empty-feed-title {
  font-weight: 700;
  font-size: 1.1rem;
  color: #050505;
  margin-bottom: 4px;
}
.fb-empty-feed-desc {
  font-size: 0.88rem;
  color: #65676b;
  max-width: 400px;
  margin: 0 auto;
}

/* =====================================================
   POST WIZARD 3-STEP SYSTEM (TỪNG BƯỚC ĐĂNG BÀI HIỆN ĐẠI)
   ===================================================== */
.post-wizard-stepper-box {
  background: #ffffff;
  border: 1.5px solid #fed7aa;
  border-radius: var(--radius);
  padding: 16px 20px;
  margin-bottom: 24px;
  box-shadow: 0 2px 10px rgba(234, 88, 12, 0.06);
}

.post-wizard-stepper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 720px;
  margin: 0 auto;
  position: relative;
}

.pstep-item {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  user-select: none;
  transition: all 0.25s ease;
  z-index: 2;
}

/* Các bước không active: Thu nhỏ lại, mang tính biểu tượng tinh tế, ít chữ, tránh rối mắt */
.pstep-item:not(.active) {
  opacity: 0.55;
}

.pstep-item:not(.active):hover {
  opacity: 0.85;
}

.pstep-circle {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #f8fafc;
  color: #94a3b8;
  border: 1.5px solid #cbd5e1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.82rem;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  flex-shrink: 0;
}

.pstep-circle .pstep-check {
  display: none;
  font-size: 0.8rem;
}

.pstep-info {
  display: flex;
  flex-direction: column;
}

.pstep-title {
  font-size: 0.78rem;
  font-weight: 600;
  color: #94a3b8;
  transition: color 0.2s ease;
}

.pstep-sub {
  font-size: 0.72rem;
  color: #94a3b8;
}

/* Ẩn hoàn toàn subtext đối với bước không active để loại bỏ chữ thừa gây rối mắt */
.pstep-item:not(.active) .pstep-sub {
  display: none !important;
}

/* Bước ĐANG HOẠT ĐỘNG (ACTIVE): Nổi bật vượt trội, to rõ, phát sáng */
.pstep-item.active {
  transform: translateY(0);
  opacity: 1;
  gap: 12px;
}

.pstep-item.active .pstep-circle {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, #ff7a1a 0%, #ea580c 100%);
  color: #ffffff;
  border: 3.5px solid #ffedd5;
  box-shadow: 0 0 0 5px rgba(234, 88, 12, 0.25), 0 6px 18px rgba(234, 88, 12, 0.45);
  font-size: 1.35rem;
  font-weight: 900;
  animation: pstepActivePulse 2s infinite ease-in-out;
  flex-shrink: 0;
}

@keyframes pstepActivePulse {
  0% {
    box-shadow: 0 0 0 4px rgba(234, 88, 12, 0.22), 0 4px 14px rgba(234, 88, 12, 0.4);
  }
  50% {
    box-shadow: 0 0 0 8px rgba(234, 88, 12, 0.12), 0 6px 20px rgba(234, 88, 12, 0.55);
  }
  100% {
    box-shadow: 0 0 0 4px rgba(234, 88, 12, 0.22), 0 4px 14px rgba(234, 88, 12, 0.4);
  }
}

.pstep-item.active .pstep-title {
  color: #ea580c;
  font-size: 0.98rem;
  font-weight: 800;
  letter-spacing: -0.2px;
}

.pstep-item.active .pstep-sub {
  display: block;
  color: #9a3412;
  font-weight: 700;
  font-size: 0.8rem;
  margin-top: 2px;
}

/* Hiệu ứng nhấp nháy cho chữ Xác nhận ở Bước 1 khi đã có nguyên liệu ảnh */
@keyframes stepConfirmBlink {
  0% {
    opacity: 1;
    transform: scale(1);
    background: #ffedd5;
    border-color: #ea580c;
    box-shadow: 0 0 10px rgba(234, 88, 12, 0.5);
  }
  50% {
    opacity: 0.65;
    transform: scale(1.06);
    background: #ea580c;
    color: #ffffff !important;
    border-color: #c2410c;
    box-shadow: 0 0 18px rgba(234, 88, 12, 0.85);
  }
  100% {
    opacity: 1;
    transform: scale(1);
    background: #ffedd5;
    border-color: #ea580c;
    box-shadow: 0 0 10px rgba(234, 88, 12, 0.5);
  }
}

.step-confirm-blink {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-weight: 900;
  color: #ea580c;
  animation: stepConfirmBlink 1.1s infinite ease-in-out;
  padding: 3px 10px;
  border-radius: 999px;
  border: 1.5px solid #ea580c;
  cursor: pointer;
  white-space: nowrap;
}

@keyframes btnConfirmPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(234, 88, 12, 0.6), 0 4px 14px rgba(234, 88, 12, 0.35);
    transform: scale(1);
  }
  50% {
    box-shadow: 0 0 0 9px rgba(234, 88, 12, 0.2), 0 6px 20px rgba(234, 88, 12, 0.55);
    transform: scale(1.02);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(234, 88, 12, 0.6), 0 4px 14px rgba(234, 88, 12, 0.35);
    transform: scale(1);
  }
}

.btn-confirm-pulse {
  animation: btnConfirmPulse 1.5s infinite ease-in-out;
  background: linear-gradient(135deg, #f97316 0%, #ea580c 100%) !important;
}

/* Completed Step */
.pstep-item.done {
  opacity: 0.8;
  gap: 6px;
}

.pstep-item.done .pstep-circle {
  width: 26px;
  height: 26px;
  background: #10b981;
  color: #ffffff;
  border: 1.5px solid #10b981;
  font-size: 0.8rem;
}

.pstep-item.done .pstep-circle .pstep-num {
  display: none;
}

.pstep-item.done .pstep-circle .pstep-check {
  display: inline;
}

.pstep-item.done .pstep-title {
  color: #059669;
  font-size: 0.78rem;
  font-weight: 600;
}

.pstep-item.done .pstep-sub {
  display: none !important;
}

/* Connecting Line */
.pstep-line {
  flex: 1;
  height: 3px;
  background: #e2e8f0;
  margin: 0 12px;
  border-radius: 99px;
  transition: background 0.3s ease;
  z-index: 1;
}

.pstep-line.done {
  background: #10b981;
}

/* Step Container Panes */
.post-step-pane {
  animation: fadeInStep 0.25s ease-out;
}

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

.step-card-box {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}

.step-pane-header {
  margin-bottom: 20px;
}

.step-pane-title {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.step-badge-tag {
  background: #ffedd5;
  color: #c2410c;
  font-weight: 800;
  font-size: 0.76rem;
  padding: 3px 10px;
  border-radius: 999px;
}

.step-pane-header h2 {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text);
  margin: 0;
}

.step-pane-desc {
  color: var(--text-2);
  font-size: 0.88rem;
  margin-top: 6px;
  line-height: 1.5;
}

/* =====================================================
   STEP 1: BANKING-APP STYLE LIVE CAMERA SCANNER & CONTROLS
   ===================================================== */
.bank-camera-wrapper {
  background: #0f172a;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  margin-bottom: 16px;
  position: relative;
}

.bank-camera-viewfinder {
  position: relative;
  width: 100%;
  height: 380px;
  background: #020617;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

#bank-camera-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Lớp phủ ngắm camera (Viewfinder Frame) kiểu App Ngân Hàng */
.bank-viewfinder-overlay {
  position: absolute;
  inset: 20px;
  border-radius: 14px;
  pointer-events: none;
  box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.35);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.viewfinder-corner {
  position: absolute;
  width: 28px;
  height: 28px;
  border-color: #ea580c;
  border-style: solid;
}
.viewfinder-corner.top-left     { top: 0; left: 0; border-width: 3.5px 0 0 3.5px; border-top-left-radius: 12px; }
.viewfinder-corner.top-right    { top: 0; right: 0; border-width: 3.5px 3.5px 0 0; border-top-right-radius: 12px; }
.viewfinder-corner.bottom-left  { bottom: 0; left: 0; border-width: 0 0 3.5px 3.5px; border-bottom-left-radius: 12px; }
.viewfinder-corner.bottom-right { bottom: 0; right: 0; border-width: 0 3.5px 3.5px 0; border-bottom-right-radius: 12px; }

.viewfinder-guide-text {
  text-align: center;
  margin-top: auto;
  margin-bottom: 12px;
  padding: 0 8px;
  pointer-events: none;
  z-index: 5;
}
.viewfinder-guide-text span {
  display: inline-block;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(8px);
  color: #f8fafc;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  white-space: nowrap;
  max-width: 94%;
  overflow: hidden;
  text-overflow: ellipsis;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
  transition: all 0.2s ease;
}

/* Nút lật camera trước / sau */
.btn-camera-flip {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 10;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(6px);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.25);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.25s ease;
}
.btn-camera-flip:hover {
  background: rgba(234, 88, 12, 0.9);
  transform: rotate(180deg);
}

/* Hiệu ứng chớp sáng Shutter Flash */
.camera-flash-overlay {
  position: absolute;
  inset: 0;
  background: #ffffff;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.12s ease-out;
  z-index: 20;
}
.camera-flash-overlay.flash-active {
  opacity: 0.95;
}

/* Fallback khi chưa có quyền camera */
.camera-fallback {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #0f172a;
  color: #ffffff;
  text-align: center;
  padding: 20px;
  z-index: 5;
}
.btn-retry-camera {
  background: #ea580c;
  color: #ffffff;
  border: none;
  padding: 9px 20px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  transition: background 0.15s ease;
}
.btn-retry-camera:hover {
  background: #c2410c;
}

/* Overlay hoàn thành khi chụp đủ 5 tấm hiện giữa màn hình camera */
.camera-done-5-overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.9);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 50;
  padding: 16px;
  animation: fadeInStep 0.25s ease-out;
}

.camera-done-5-card {
  background: #0f172a;
  border: 1.5px solid #fb923c;
  border-radius: 18px;
  padding: 20px 16px 18px;
  text-align: center;
  max-width: 320px;
  width: 100%;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(234, 88, 12, 0.3);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.done-5-badge {
  background: #ea580c;
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.5px;
  padding: 3px 12px;
  border-radius: 999px;
  display: inline-block;
  margin-bottom: 6px;
  box-shadow: 0 2px 8px rgba(234, 88, 12, 0.4);
}

.done-5-title {
  color: #ffffff;
  font-size: 1.1rem;
  font-weight: 800;
  margin-bottom: 4px;
}

.done-5-sub {
  color: #94a3b8;
  font-size: 0.78rem;
  margin-bottom: 14px;
  line-height: 1.35;
}

.done-5-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
}

/* Nút cam sáng chớp nháy: Xác nhận hoàn thành bước 1 (chụp ảnh sản phẩm để qua bước 2) */
.btn-done-5-confirm {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
  color: #ffffff;
  border: 2px solid #fed7aa;
  border-radius: 14px;
  padding: 12px 14px;
  cursor: pointer;
  animation: orangeBlinkPulse 1.2s infinite ease-in-out;
  transition: all 0.2s ease;
}

.btn-done-5-confirm .done-btn-main {
  font-size: 0.95rem;
  font-weight: 900;
  letter-spacing: -0.2px;
}

.btn-done-5-confirm .done-btn-sub {
  font-size: 0.74rem;
  font-weight: 600;
  opacity: 0.95;
}

.btn-done-5-confirm:hover {
  transform: scale(1.02);
  filter: brightness(1.1);
}

@keyframes orangeBlinkPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(234, 88, 12, 0.7), 0 4px 16px rgba(234, 88, 12, 0.5);
    border-color: #fed7aa;
  }
  50% {
    box-shadow: 0 0 22px rgba(251, 146, 60, 0.95), 0 0 0 6px rgba(234, 88, 12, 0.45);
    border-color: #ffffff;
  }
  100% {
    box-shadow: 0 0 0 0 rgba(234, 88, 12, 0.7), 0 4px 16px rgba(234, 88, 12, 0.5);
    border-color: #fed7aa;
  }
}

/* Nút chụp lại màu xám */
.btn-done-5-retake {
  width: 100%;
  background: #334155;
  color: #cbd5e1;
  border: 1px solid #475569;
  border-radius: 12px;
  padding: 9px 14px;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-done-5-retake:hover {
  background: #475569;
  color: #ffffff;
  border-color: #64748b;
}

/* Bảng điều khiển kiểu Banking App / Camera App */
.bank-camera-controls {
  background: #090d16;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-around;
}

.btn-camera-side {
  background: none;
  border: none;
  color: #94a3b8;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  font-size: 0.76rem;
  font-weight: 600;
  transition: color 0.15s ease;
}
.btn-camera-side:hover {
  color: #ffffff;
}
.side-btn-circle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  transition: all 0.2s ease;
}
.btn-camera-side:hover .side-btn-circle {
  background: rgba(255, 255, 255, 0.18);
  transform: translateY(-2px);
}

/* Nút chụp Shutter to tròn */
.shutter-btn-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.btn-shutter-main {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: transparent;
  border: 4px solid #ffffff;
  padding: 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.1s ease, border-color 0.15s ease;
  box-shadow: 0 0 16px rgba(255, 255, 255, 0.25);
}
.btn-shutter-main:hover {
  transform: scale(1.05);
  border-color: #ea580c;
}
.btn-shutter-main:active {
  transform: scale(0.92);
}
.shutter-inner-circle {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: #ffffff;
  transition: background 0.15s ease;
}
.btn-shutter-main:hover .shutter-inner-circle {
  background: #ea580c;
}

/* Dải ảnh đã chụp kiểu camera gallery */
.captured-gallery-wrap {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
  margin-top: 14px;
}
.captured-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}
.captured-count {
  font-weight: 700;
  font-size: 0.86rem;
  color: var(--text);
}
.btn-clear-captured {
  background: none;
  border: none;
  color: #ef4444;
  font-weight: 700;
  font-size: 0.78rem;
  cursor: pointer;
}
.btn-clear-captured:hover {
  text-decoration: underline;
}
.captured-reel {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 4px;
  min-height: 82px;
  align-items: center;
}
.captured-empty-hint {
  width: 100%;
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-3);
  padding: 16px 0;
}
/* Hiệu ứng tấm ảnh nổi lên giữa màn hình và văng xuống ô chứa ảnh bên dưới */
.camera-fly-snapshot {
  position: fixed;
  width: 170px;
  height: 215px;
  margin-left: -85px;
  margin-top: -108px;
  background: #ffffff;
  border-radius: 14px;
  padding: 6px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.65), 0 0 0 3px #ffffff;
  z-index: 99999;
  display: flex;
  flex-direction: column;
  pointer-events: none;
  animation: snapPopAndFlyDown 0.85s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.camera-fly-snapshot img {
  width: 100%;
  height: 175px;
  object-fit: cover;
  border-radius: 10px;
  display: block;
}

.camera-fly-snapshot .fly-snap-label {
  text-align: center;
  font-size: 0.72rem;
  font-weight: 800;
  color: #ea580c;
  padding: 4px 2px 2px;
  line-height: 1.2;
}

@keyframes snapPopAndFlyDown {
  0% {
    opacity: 0;
    transform: scale(0.3) rotate(-6deg);
  }
  25% {
    opacity: 1;
    transform: scale(1.08) rotate(1deg);
  }
  42% {
    opacity: 1;
    transform: scale(1) rotate(0deg);
  }
  65% {
    opacity: 1;
    transform: translate(calc(var(--fly-delta-x, 0px) * 0.4), calc(var(--fly-delta-y, 250px) * 0.4)) scale(0.8) rotate(-3deg);
  }
  100% {
    opacity: 0;
    transform: translate(var(--fly-delta-x, 0px), var(--fly-delta-y, 250px)) scale(0.2) rotate(4deg);
  }
}

/* Nút xem ảnh vừa chụp ngay dưới nút tròn - Màu xanh nhấp nháy nổi bật */
.btn-shutter-view-latest {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #064e3b;
  border: 1.5px solid #10b981;
  border-radius: 999px;
  padding: 3px 9px 3px 4px;
  cursor: pointer;
  font-size: 0.72rem;
  font-weight: 800;
  color: #a7f3d0;
  white-space: nowrap;
  animation: greenBlinkPulse 1.2s infinite ease-in-out;
  margin-top: 8px;
  transition: all 0.2s ease;
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.4);
}

.btn-shutter-view-latest:hover {
  transform: scale(1.06);
  border-color: #34d399;
  color: #ffffff;
}

.btn-shutter-view-latest img {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid #34d399;
  display: block;
}

@keyframes greenBlinkPulse {
  0% {
    background: #064e3b;
    border-color: #10b981;
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7), 0 2px 6px rgba(0, 0, 0, 0.4);
    color: #a7f3d0;
    transform: scale(1);
  }
  50% {
    background: #047857;
    border-color: #6ee7b7;
    box-shadow: 0 0 14px rgba(52, 211, 153, 0.95), 0 0 0 4px rgba(16, 185, 129, 0.4);
    color: #ffffff;
    transform: scale(1.05);
  }
  100% {
    background: #064e3b;
    border-color: #10b981;
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7), 0 2px 6px rgba(0, 0, 0, 0.4);
    color: #a7f3d0;
    transform: scale(1);
  }
}

.captured-tap-hint {
  font-size: 0.75rem;
  font-weight: 700;
  color: #ea580c;
  background: #fff7ed;
  border: 1px solid #fed7aa;
  padding: 2px 8px;
  border-radius: 999px;
  margin-left: 6px;
}

.captured-thumb-wrap {
  position: relative;
  width: 82px;
  height: 82px;
  border-radius: 12px;
  overflow: hidden;
  flex-shrink: 0;
  border: 2px solid var(--border);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.captured-thumb-wrap:hover {
  transform: translateY(-2px) scale(1.03);
  border-color: #ea580c;
}

.captured-thumb-wrap.just-added {
  animation: snapLandBounce 0.65s cubic-bezier(0.34, 1.56, 0.64, 1);
  border-color: #ea580c !important;
  box-shadow: 0 0 0 3px rgba(234, 88, 12, 0.4), 0 4px 14px rgba(234, 88, 12, 0.3) !important;
}

@keyframes snapLandBounce {
  0% {
    transform: scale(0.3) translateY(24px);
    opacity: 0;
  }
  60% {
    transform: scale(1.15) translateY(-6px);
    opacity: 1;
  }
  100% {
    transform: scale(1) translateY(0);
    opacity: 1;
  }
}

.thumb-zoom-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s ease;
  pointer-events: none;
}

.captured-thumb-wrap:hover .thumb-zoom-overlay {
  opacity: 1;
}

.thumb-zoom-overlay span {
  background: rgba(15, 23, 42, 0.85);
  color: #ffffff;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 3px 7px;
  border-radius: 999px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.captured-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.captured-cover-tag {
  position: absolute;
  top: 4px;
  left: 4px;
  background: #d97706;
  color: white;
  font-size: 0.65rem;
  font-weight: 800;
  padding: 1px 6px;
  border-radius: 4px;
}
.btn-set-cover-mini {
  position: absolute;
  bottom: 4px;
  left: 4px;
  right: 4px;
  background: rgba(0, 0, 0, 0.65);
  color: white;
  border: none;
  border-radius: 4px;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 2px 0;
  cursor: pointer;
}
.btn-del-thumb-mini {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #ef4444;
  color: white;
  border: none;
  font-size: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}

/* =====================================================
   STEP 2: SMART LOCATION BANNER & GPS
   ===================================================== */
.smart-loc-banner {
  background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 100%);
  border: 1.5px solid #a7f3d0;
  border-radius: var(--radius);
  padding: 16px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.smart-loc-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.smart-loc-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #10b981;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

.smart-loc-title {
  font-weight: 700;
  font-size: 0.94rem;
  color: #065f46;
  margin-bottom: 2px;
}

.smart-loc-desc {
  font-size: 0.82rem;
  color: #047857;
  line-height: 1.4;
}

.btn-smart-loc {
  background: #059669;
  color: white;
  border: none;
  padding: 10px 18px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.86rem;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(5, 150, 105, 0.3);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.btn-smart-loc:hover {
  background: #047857;
  transform: translateY(-1px);
}

.btn-smart-loc.btn-smart-loc-done {
  background: #047857;
}

/* Step Navigation Footer */
.step-footer-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
  margin-top: 20px;
}

.btn-step-nav {
  padding: 12px 22px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.92rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.15s ease;
}

.btn-step-prev {
  background: #f8fafc;
  color: #475569;
  border: 1.5px solid #cbd5e1;
}

.btn-step-prev:hover {
  background: #f1f5f9;
  color: #1e293b;
}

.btn-step-next {
  background: var(--primary);
  color: #ffffff;
  border: none;
  box-shadow: 0 2px 10px rgba(234, 88, 12, 0.35);
  margin-left: auto;
}

.btn-step-next:hover {
  background: #c2410c;
  transform: translateY(-1px);
}

/* =====================================================
   STEP 3: REVIEW & CONFIRMATION SUMMARY CARD
   ===================================================== */
.confirm-hero-icon {
  font-size: 2.8rem;
  line-height: 1;
}

.confirm-summary-card {
  background: #ffffff;
  border: 1.5px solid #fed7aa;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
  margin: 0 auto 20px;
  max-width: 780px;
}

.confirm-card-media {
  background: #0f172a;
  position: relative;
  max-height: 340px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.confirm-main-photo {
  width: 100%;
  max-height: 340px;
  object-fit: cover;
  display: block;
}

.confirm-badge-overlay {
  position: absolute;
  top: 12px;
  left: 12px;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.confirm-badge-item {
  background: rgba(15, 23, 42, 0.85);
  color: white;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 700;
  backdrop-filter: blur(4px);
}

.confirm-badge-item.highlight {
  background: #ea580c;
}

.confirm-thumbs-strip {
  display: flex;
  gap: 8px;
  padding: 10px 14px;
  background: #f8fafc;
  border-bottom: 1px solid var(--border);
  overflow-x: auto;
}

.confirm-thumb-item {
  width: 60px;
  height: 60px;
  border-radius: 6px;
  object-fit: cover;
  border: 1px solid var(--border);
  flex-shrink: 0;
}

.confirm-card-body {
  padding: 20px 24px;
}

.confirm-price-banner {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.confirm-price-val {
  font-size: 1.7rem;
  font-weight: 900;
  color: #ea580c;
  letter-spacing: -0.5px;
}

.confirm-price-sub {
  font-size: 0.85rem;
  color: #64748b;
  font-weight: 600;
}

.confirm-item-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 16px;
  line-height: 1.4;
}

.confirm-grid-info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  background: #f8fafc;
  padding: 16px;
  border-radius: var(--radius-sm);
  border: 1px solid #e2e8f0;
  margin-bottom: 16px;
}

.confirm-info-cell {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.confirm-cell-label {
  font-size: 0.74rem;
  text-transform: uppercase;
  color: #64748b;
  font-weight: 700;
  letter-spacing: 0.4px;
}

.confirm-cell-val {
  font-size: 0.92rem;
  font-weight: 700;
  color: #0f172a;
}

.confirm-desc-box {
  background: #ffffff;
  border: 1px dashed #cbd5e1;
  border-radius: 8px;
  padding: 12px 14px;
  font-size: 0.88rem;
  color: #334155;
  line-height: 1.5;
  margin-bottom: 16px;
  white-space: pre-line;
}

.confirm-footer-actions {
  justify-content: flex-end;
}

.btn-submit-final {
  padding: 14px 28px !important;
  font-size: 1.05rem !important;
  border-radius: 999px !important;
  box-shadow: 0 4px 16px rgba(234, 88, 12, 0.4) !important;
}

/* Mobile responsive optimizations */
@media (max-width: 640px) {
  .post-wizard-stepper-box {
    padding: 10px 12px;
  }
  /* Trên điện thoại: các bước không active chỉ hiện đúng vòng tròn biểu tượng số nhỏ để không chiếm chỗ và không rối mắt */
  .pstep-item:not(.active) .pstep-info {
    display: none !important;
  }
  .pstep-item.active {
    gap: 8px;
  }
  .pstep-circle {
    width: 26px;
    height: 26px;
    font-size: 0.75rem;
  }
  .pstep-item.active .pstep-circle {
    width: 42px;
    height: 42px;
    font-size: 1.15rem;
  }
  .pstep-item.active .pstep-title {
    font-size: 0.86rem;
  }
  .pstep-item.active .pstep-sub {
    font-size: 0.72rem;
    line-height: 1.25;
  }
  .pstep-line {
    margin: 0 8px;
  }
  .viewfinder-guide-text span {
    font-size: 0.68rem;
    padding: 2.5px 8px;
  }
  .camera-hero-card {
    flex-direction: column;
    text-align: center;
    gap: 12px;
    padding: 18px 14px;
  }
  .btn-camera-trigger {
    width: 100%;
  }
  .upload-sub-options-grid {
    grid-template-columns: 1fr;
  }
  .smart-loc-banner {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }
  .smart-loc-left {
    flex-direction: column;
  }
  .btn-smart-loc {
    width: 100%;
    justify-content: center;
  }
  .confirm-card-body {
    padding: 16px;
  }
  .confirm-price-val {
    font-size: 1.45rem;
  }
  .step-footer-actions {
    flex-direction: column-reverse;
  }
  .step-footer-actions .btn-step-nav,
  .step-footer-actions .btn-submit-final {
    width: 100%;
    justify-content: center;
  }
}

/* =====================================================
   GIAO DIỆN ĐĂNG TIN THÔNG MINH 4 BƯỚC TINH GỌN (SIN POST 4.0)
   Bước 1: Chụp ảnh -> Bước 2: Ghim vị trí -> Bước 3: Viết mô tả AI -> Bước 4: Xem lại & Sửa
   ===================================================== */

/* BƯỚC 2: VỊ TRÍ MÓN ĐỒ / PHÒNG TRỌ */
.loc-step-card {
  background: #ffffff;
  border: 1.5px solid #fed7aa;
  border-radius: var(--radius);
  padding: 20px 18px;
  box-shadow: 0 4px 20px rgba(234, 88, 12, 0.06);
  max-width: 580px;
  margin: 0 auto;
}

.loc-step-hero {
  text-align: center;
  margin-bottom: 14px;
}

.loc-step-icon {
  font-size: 2.1rem;
  margin-bottom: 4px;
  display: inline-block;
  animation: bouncePin 2s infinite ease-in-out;
}

@keyframes bouncePin {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

.loc-step-heading {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text);
  line-height: 1.35;
  margin: 0 auto;
  max-width: 480px;
}

.loc-step-subheading {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--primary, #ea580c);
  margin-top: 6px;
  letter-spacing: -0.01em;
}

.loc-options-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 10px;
}

.loc-btn-option {
  position: relative;
  background: #ffffff;
  border: 2px solid #e2e8f0;
  border-radius: 14px;
  padding: 12px 14px;
  text-align: left;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  gap: 12px;
}

.loc-btn-option:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
}

.loc-btn-yes {
  border-color: #fb923c;
  background: linear-gradient(180deg, #fffaf5 0%, #fff 100%);
}

.loc-btn-yes:hover, .loc-btn-yes:active {
  border-color: #ea580c;
  box-shadow: 0 0 0 3px rgba(234, 88, 12, 0.15), 0 6px 18px rgba(234, 88, 12, 0.2);
  background: #fff7ed;
}

.loc-btn-no {
  border-color: #cbd5e1;
}

.loc-btn-no:hover, .loc-btn-no:active {
  border-color: #64748b;
  box-shadow: 0 0 0 3px rgba(100, 116, 139, 0.12);
  background: #f8fafc;
}

.loc-opt-icon {
  font-size: 1.6rem;
  flex-shrink: 0;
}

.loc-opt-text-wrap {
  flex: 1;
}

.loc-opt-title {
  font-size: 0.98rem;
  font-weight: 800;
  color: var(--text);
}

.loc-btn-yes .loc-opt-title {
  color: #c2410c;
}

.loc-opt-desc {
  font-size: 0.76rem;
  color: var(--text-2);
  line-height: 1.35;
  margin-top: 2px;
}

.loc-opt-badge {
  position: absolute;
  top: -8px;
  right: 12px;
  background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  box-shadow: 0 2px 6px rgba(234, 88, 12, 0.35);
}

.loc-back-step1-wrap {
  text-align: center;
  margin-top: 8px;
}

.btn-link-step-back {
  background: none;
  border: none;
  color: #94a3b8;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  padding: 4px 8px;
  transition: color 0.2s ease;
}

.btn-link-step-back:hover {
  color: #475569;
  text-decoration: underline;
}

.loc-confirmed-card {
  background: #f0fdf4;
  border: 1.5px solid #86efac;
  border-radius: 12px;
  padding: 18px 20px;
  margin-top: 14px;
  animation: fadeIn 0.3s ease;
}

.loc-confirmed-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.loc-confirmed-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #16a34a;
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 999px;
}

.loc-btn-repick {
  background: none;
  border: none;
  color: #059669;
  font-weight: 700;
  font-size: 0.82rem;
  cursor: pointer;
  text-decoration: underline;
}

.loc-confirmed-main {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.loc-pin-symbol {
  font-size: 1.6rem;
  flex-shrink: 0;
}

.loc-confirmed-address {
  font-size: 0.98rem;
  font-weight: 700;
  color: #14532d;
  line-height: 1.4;
}

.loc-confirmed-coords {
  font-size: 0.8rem;
  color: #15803d;
  margin-top: 4px;
  font-family: monospace;
}

.loc-manual-picker-box {
  background: #f8fafc;
  border: 1.5px dashed #cbd5e1;
  border-radius: 12px;
  padding: 18px 20px;
  margin-top: 14px;
  animation: fadeIn 0.3s ease;
}

.loc-manual-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

/* BƯỚC 3: VIẾT MÔ TẢ & AI PHÂN TÍCH */
.ai-write-step-card {
  background: #ffffff;
  border: 1.5px solid #fed7aa;
  border-radius: var(--radius);
  padding: 32px 24px;
  box-shadow: 0 4px 20px rgba(234, 88, 12, 0.06);
  max-width: 680px;
  margin: 0 auto;
}

.ai-write-hero {
  text-align: center;
  margin-bottom: 20px;
}

.ai-write-sparkle {
  font-size: 2.6rem;
  margin-bottom: 6px;
  display: inline-block;
  animation: sparkleTwinkle 2s infinite ease-in-out;
}

@keyframes sparkleTwinkle {
  0%, 100% { transform: scale(1) rotate(0deg); opacity: 1; }
  50% { transform: scale(1.15) rotate(10deg); opacity: 0.85; }
}

.ai-write-heading {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text);
  line-height: 1.35;
  margin-bottom: 8px;
}

.ai-write-sub {
  font-size: 0.9rem;
  color: var(--text-2);
  line-height: 1.5;
  max-width: 520px;
  margin: 0 auto;
}

.ai-write-box {
  background: #fffaf5;
  border: 1.5px solid #fdba74;
  border-radius: 14px;
  padding: 16px;
  margin-bottom: 24px;
  box-shadow: inset 0 2px 6px rgba(234, 88, 12, 0.03);
}

.ai-write-textarea {
  width: 100%;
  min-height: 160px;
  border: none;
  background: transparent;
  font-family: inherit;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  resize: vertical;
  outline: none;
}

.ai-write-textarea::placeholder {
  color: #94a3b8;
  font-size: 0.95rem;
}

.ai-write-tools {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed #fed7aa;
  flex-wrap: wrap;
  gap: 8px;
}

.ai-write-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.btn-ai-analyze-next {
  background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
  color: #ffffff;
  border: none;
  border-radius: 999px;
  padding: 14px 28px;
  font-size: 1.02rem;
  font-weight: 800;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 16px rgba(234, 88, 12, 0.35);
  transition: all 0.25s ease;
}

.btn-ai-analyze-next:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(234, 88, 12, 0.5);
  background: linear-gradient(135deg, #fb923c 0%, #c2410c 100%);
}

.btn-skip-ai {
  background: #f1f5f9;
  color: #475569;
  border: 1px solid #cbd5e1;
  border-radius: 999px;
  padding: 12px 18px;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-skip-ai:hover {
  background: #e2e8f0;
  color: #1e293b;
}

/* BƯỚC 4: XEM LẠI & SỬA TOÀN BỘ THÔNG TIN */
.review-edit-container {
  max-width: 780px;
  margin: 0 auto;
}

.review-edit-banner {
  background: linear-gradient(135deg, #fff7ed 0%, #ffedd5 100%);
  border: 1.5px solid #fed7aa;
  border-radius: var(--radius);
  padding: 18px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
}

.review-edit-banner .banner-icon {
  font-size: 2.2rem;
  flex-shrink: 0;
}

.review-edit-banner .banner-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: #9a3412;
  margin-bottom: 4px;
}

.review-edit-banner .banner-sub {
  font-size: 0.86rem;
  color: #c2410c;
  line-height: 1.45;
  margin: 0;
}

.review-images-strip {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 10px 0;
  scrollbar-width: thin;
}

.review-img-item {
  position: relative;
  width: 90px;
  height: 90px;
  border-radius: 10px;
  overflow: hidden;
  border: 2px solid #e2e8f0;
  flex-shrink: 0;
  cursor: pointer;
  transition: all 0.2s;
}

.review-img-item.cover {
  border-color: #ea580c;
  box-shadow: 0 0 0 2px rgba(234, 88, 12, 0.25);
}

.review-img-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.review-cover-badge {
  position: absolute;
  top: 4px;
  left: 4px;
  background: #ea580c;
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
}

.location-summary-card {
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  border-radius: 10px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.btn-text-action {
  background: none;
  border: none;
  color: #ea580c;
  font-weight: 700;
  font-size: 0.84rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.btn-text-action:hover {
  text-decoration: underline;
}

@media (max-width: 640px) {
  .loc-step-card {
    padding: 16px 12px;
  }
  .loc-step-hero {
    margin-bottom: 10px;
  }
  .loc-step-icon {
    font-size: 1.8rem;
    margin-bottom: 2px;
  }
  .loc-step-heading {
    font-size: 1.05rem;
    line-height: 1.35;
  }
  .loc-step-subheading {
    font-size: 0.88rem;
    margin-top: 4px;
  }
  .loc-btn-option {
    padding: 10px 12px;
  }
  .loc-opt-icon {
    font-size: 1.5rem;
  }
  .loc-opt-title {
    font-size: 0.94rem;
  }
  .loc-opt-desc {
    font-size: 0.74rem;
  }
  .ai-write-step-card {
    padding: 18px 14px;
  }
  .ai-write-actions {
    flex-direction: column-reverse;
  }
  .btn-ai-analyze-next, .btn-skip-ai {
    width: 100%;
    justify-content: center;
  }
}



/* =====================================================
   SIN LOCKET UI — Animations & Utilities
===================================================== */

/* Ẩn thanh cuộn cho cảm giác ứng dụng native */
.no-scrollbar::-webkit-scrollbar {
  display: none;
}
.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* Hiệu ứng flash trắng khi bấm nút chụp */
@keyframes cameraFlash {
  0% { opacity: 0.94; }
  100% { opacity: 0; }
}
.animate-flash {
  animation: cameraFlash 300ms ease-out forwards;
}

/* Hiệu ứng nảy nhẹ khi sticker xuất hiện */
@keyframes stickerPop {
  0% { transform: translate(-50%, -50%) scale(0.76); opacity: 0; }
  70% { transform: translate(-50%, -50%) scale(1.06); opacity: 1; }
  100% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
}
.animate-sticker-pop {
  animation: stickerPop 240ms cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

/* Nhịp lấy nét tinh tế ở tâm ống kính */
@keyframes focusPulse {
  0%, 100% { transform: scale(1); opacity: 0.55; }
  50% { transform: scale(1.05); opacity: 1; }
}
.animate-focus-pulse {
  animation: focusPulse 2.4s ease-in-out infinite;
}

/* Chặn bôi đen khi kéo thả sticker trên màn hình cảm ứng */
.select-none-all {
  user-select: none;
  -webkit-user-select: none;
  touch-action: none;
}

/* SIN Locket wrapper */
.sin-locket-wrapper {
  font-family: 'Plus Jakarta Sans', 'Inter', system-ui, sans-serif;
}

/* Khi vào trang Sổ SIN: Ẩn navbar & bottom-nav bên ngoài để dùng giao diện Phone shell tràn viền chuẩn Locket native */
body.sin-page-active #navbar,
body.sin-page-active #mobile-bottom-nav,
body.sin-page-active #footer {
  display: none !important;
}
body.sin-page-active #main-content,
html.ios-standalone body.sin-page-active #main-content,
html.ios-device body.sin-page-active #main-content,
body.sin-page-active .page {
  padding: 0 !important;
  padding-bottom: 0 !important;
  margin: 0 !important;
  max-width: 100% !important;
}
body.sin-page-active {
  overflow: hidden;
  background-color: #ffffff;
}

/* SIN Badge in navbar */
.sin-badge-hot {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  background: linear-gradient(135deg, #EF4444 0%, #B91C1C 100%);
  color: white;
  font-size: 0.6rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 2px 6px;
  border-radius: 999px;
  border: 1px solid rgba(253, 224, 71, 0.55);
  vertical-align: middle;
  margin-left: 4px;
  animation: pulse 2s ease-in-out infinite;
}

.sin-home-promo-card {
  background: linear-gradient(135deg, #7F1D1D 0%, #B91C1C 100%);
  border-radius: 20px;
  padding: 16px 20px;
  margin-bottom: 20px;
  color: white;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  box-shadow: 0 8px 24px rgba(153, 27, 27, 0.22);
  border: 1.5px solid rgba(253, 224, 71, 0.45);
  cursor: pointer;
  transition: transform 0.15s ease;
}
.sin-home-promo-card:hover {
  transform: translateY(-2px);
}
.sin-home-promo-left {
  display: flex;
  align-items: center;
  gap: 14px;
}
.sin-home-promo-icon {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  background: linear-gradient(135deg, #FBBF24 0%, #D97706 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  box-shadow: 0 4px 12px rgba(217, 119, 6, 0.4);
  flex-shrink: 0;
}
.sin-home-promo-title {
  font-weight: 900;
  font-size: 1.05rem;
  color: #ffffff;
}
.sin-home-promo-desc {
  font-size: 0.82rem;
  color: #fef3c7;
  margin-top: 2px;
}
.sin-home-promo-btn {
  background: #FEF08A;
  color: #991B1B;
  border: none;
  font-size: 0.82rem;
  font-weight: 800;
  padding: 8px 16px;
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
}

/* =====================================================
   IPHONE & PWA STANDALONE NATIVE APP EXPERIENCE
   (Tương thích hoàn hảo iPhone, Dynamic Island, Notch & Home Bar)
   ===================================================== */
#navbar {
  padding-top: env(safe-area-inset-top, 0px);
  padding-left: env(safe-area-inset-left, 0px);
  padding-right: env(safe-area-inset-right, 0px);
}

/* Khi chạy trên iPhone ngoài Màn hình chính (iOS Standalone PWA / WebApp)
   status-bar-style:default → iOS tự đẩy viewport xuống dưới status bar (safe-area-inset-top = 0px) */
html.ios-standalone #navbar,
body.ios-standalone #navbar {
  padding-top: env(safe-area-inset-top, 0px);
}

html.ios-standalone .mobile-bottom-nav,
body.ios-standalone .mobile-bottom-nav {
  padding-bottom: max(env(safe-area-inset-bottom, 34px), 24px) !important;
  height: auto !important;
  min-height: calc(56px + max(env(safe-area-inset-bottom, 34px), 24px)) !important;
}

html.ios-standalone .page,
body.ios-standalone .page {
  padding-bottom: calc(96px + max(env(safe-area-inset-bottom, 34px), 24px)) !important;
}

@media all and (display-mode: standalone) {
  body {
    -webkit-user-select: none;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
  }
  
  #navbar {
    position: sticky;
    top: 0;
  }
}

/* =====================================================
   SỔ SIN (LOCKET) — TƯƠNG THÍCH HOÀN HẢO IPHONE & SAFE AREA
   status-bar-style:default → iOS tự đẩy viewport xuống dưới status bar
   → safe-area-inset-top = 0, KHÔNG cần padding-top thừa ở header
   → safe-area-inset-bottom vẫn có giá trị cho home indicator (~34px)
   ===================================================== */
#sin-top-header {
  background-color: rgba(255, 241, 206, 0.94) !important;
  box-sizing: border-box;
  /* Dùng env() thực tế, fallback 0 vì default status-bar không cần thêm padding */
  padding-top: env(safe-area-inset-top, 0px);
  height: calc(44px + env(safe-area-inset-top, 0px));
}

/* Bottom nav: Căn chỉnh chuẩn Apple iOS, nâng nhẹ đáy 24px để thoát hoàn toàn khỏi thanh Home Bar
   Đảm bảo chữ "Trang chủ", "Sổ SIN" không bị thanh gạt che mất và không bị chạm nhầm khi vuốt máy */
#sin-bottom-nav {
  background-color: #FFFFFF !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  border-top: 1.5px solid rgba(217, 119, 6, 0.36) !important;
  box-shadow: 0 -4px 18px rgba(120, 53, 15, 0.1) !important;
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: space-around !important;
  padding-top: 5px !important;
  padding-bottom: max(env(safe-area-inset-bottom, 0px), 14px) !important;
  height: auto !important;
  min-height: unset !important;
  box-sizing: border-box;
  flex-shrink: 0;
}

/* Trên Mobile: Nền trắng sạch đồng bộ toàn app & khóa shell tràn đáy sát Home Bar */
@media (max-width: 639px) {
  body.sin-page-active {
    background: #FFFFFF !important;
  }
  .sin-locket-wrapper {
    background: #FFFFFF !important;
  }
  #phone-shell {
    background: #FFFFFF !important;
    position: fixed !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    max-height: none !important;
  }
}

/* Global Clean White, Red & Yellow Overrides */
body:not(.is-admin-workspace) {
  background: #FFFFFF !important;
}
body:not(.is-admin-workspace) #main-content {
  background: transparent !important;
}
body.is-admin-workspace #sin-global-festive-bg,
body.sin-page-active #sin-global-festive-bg {
  display: none !important;
}
body:not(.is-admin-workspace) #navbar .nav-icon-btn {
  background: #FFFFFF;
  border: 1.5px solid #E2E8F0;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.05);
}
.sin-tab-shell,
.fb-profile-page,
.fb-header-card {
  background: transparent !important;
}
.sin-tab-shell .cat-chip {
  border-color: #E2E8F0 !important;
  background: #FFFFFF !important;
}
.sin-tab-shell .cat-chip.active {
  border-color: #DC2626 !important;
  background: #FEF2F2 !important;
  box-shadow: 0 4px 12px rgba(220, 38, 38, 0.12) !important;
}
.sin-tab-shell .cat-chip.active span {
  color: #DC2626 !important;
}
.sin-tab-shell .cat-chip .cat-active-bar {
  background-color: #DC2626 !important;
}

/* =====================================================
   APPLE STYLE PRICE SLIDER (SỔ SIN LOCKET)
   ===================================================== */
.apple-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  background: #e2e8f0;
  border-radius: 9999px;
  outline: none;
  touch-action: pan-x;
}

.apple-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #ffffff;
  border: 2.5px solid #f97316;
  box-shadow: 0 2px 6px rgba(249, 115, 22, 0.4);
  cursor: pointer;
  transition: transform 0.1s ease;
}

.apple-slider::-webkit-slider-thumb:active {
  transform: scale(1.22);
}

.apple-slider::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #ffffff;
  border: 2.5px solid #f97316;
  box-shadow: 0 2px 6px rgba(249, 115, 22, 0.4);
  cursor: pointer;
}

/* =========================================================
   SIN MULTI-TOOL HUB (Đa chức năng - Đổi giao diện nút giữa)
   ========================================================= */
.multitool-modal-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 10000;
  align-items: flex-end;
  justify-content: center;
  padding: env(safe-area-inset-top, 12px) 0 0;
  transition: opacity 0.22s ease;
}
.multitool-modal-backdrop.show {
  display: flex;
}
.multitool-sheet-card {
  width: 100%;
  max-width: 500px;
  background: #FFFDF9;
  border-radius: 26px 26px 0 0;
  padding: 12px 16px max(env(safe-area-inset-bottom, 16px), 16px);
  box-shadow: 0 -12px 40px rgba(15, 23, 42, 0.2);
  animation: multitoolSlideUp 0.24s cubic-bezier(0.16, 1, 0.3, 1);
  max-height: calc(100dvh - max(env(safe-area-inset-top, 20px), 20px) - 12px);
  overflow-y: auto;
  box-sizing: border-box;
}
@media (min-width: 640px) {
  .multitool-modal-backdrop {
    align-items: center;
    padding: 20px;
  }
  .multitool-sheet-card {
    border-radius: 24px;
    padding: 18px 20px;
  }
}
@keyframes multitoolSlideUp {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}
.multitool-sheet-handle {
  width: 38px;
  height: 4px;
  background: #cbd5e1;
  border-radius: 999px;
  margin: 0 auto 12px;
}
.multitool-sheet-header {
  margin-bottom: 12px;
  text-align: left;
}
.multitool-sheet-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 1.02rem;
  font-weight: 800;
  color: #0f172a;
}
.multitool-tag {
  background: #FEF2F2;
  color: #DC2626;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid #FECACA;
  flex-shrink: 0;
}
.multitool-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 12px;
}
@media (min-width: 520px) {
  .multitool-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
.multitool-card {
  background: #ffffff;
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: 14px;
  padding: 10px 11px;
  cursor: pointer;
  transition: all 0.15s ease;
  display: flex;
  align-items: center;
  gap: 9px;
  text-align: left;
  min-width: 0;
}
.multitool-card:active {
  transform: scale(0.97);
}
.multitool-card.active {
  background: #FEF2F2;
  border-color: #DC2626;
  box-shadow: 0 3px 10px rgba(220, 38, 38, 0.12);
}
.multitool-card-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: #f8fafc;
  color: #475569;
  border: 1px solid #e2e8f0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.multitool-card.active .multitool-card-icon {
  background: #ffffff;
  color: #DC2626;
  border-color: #FECACA;
}
.multitool-card-name {
  flex: 1;
  min-width: 0;
  font-size: 0.83rem;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.multitool-card-check {
  color: #DC2626;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.multitool-close-btn {
  width: 100%;
  height: 42px;
  border-radius: 12px;
  background: #f1f5f9;
  color: #334155;
  font-size: 0.88rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: background 0.15s ease;
}
.multitool-close-btn:active {
  background: #e2e8f0;
}

/* =====================================================
   MODULE DEDICATED PAGES (Tài Liệu, Du Lịch, Quán Ngon, Việc Làm, Xe Cộ)
   ===================================================== */
.module-page-container {
  min-height: 85vh;
  padding-bottom: 80px;
}
.module-hero-banner {
  padding: 10px 14px 12px;
  color: white;
  border-radius: 0 0 16px 16px;
  position: relative;
  overflow: hidden;
}
.module-hero-banner::before {
  content: '';
  position: absolute;
  top: -30px;
  right: -20px;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.10);
  pointer-events: none;
}
.module-hero-content {
  max-width: 680px;
  margin: 0 auto;
}
.module-hero-badge {
  display: none; /* Ẩn badge - không cần thiết, tiết kiệm diện tích */
}
.module-hero-title {
  font-size: 1.1rem;
  font-weight: 800;
  line-height: 1.2;
  margin: 0 0 2px 0;
  letter-spacing: -0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.module-hero-desc {
  font-size: 0.78rem;
  opacity: 0.88;
  margin: 0 0 8px 0;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.module-search-row {
  display: flex;
  gap: 8px;
  align-items: center;
}
.module-search-box {
  flex: 1;
  display: flex;
  align-items: center;
  background: white;
  border-radius: 10px;
  padding: 0 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}
.module-search-icon {
  font-size: 0.85rem;
  margin-right: 6px;
  opacity: 0.6;
}
.module-search-box input {
  flex: 1;
  height: 36px;
  border: none;
  outline: none;
  font-size: 0.84rem;
  color: #1e293b;
  background: transparent;
}
.module-post-cta {
  height: 36px;
  padding: 0 13px;
  border-radius: 10px;
  background: #0f172a;
  color: white;
  font-size: 0.82rem;
  font-weight: 700;
  border: none;
  white-space: nowrap;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.2);
  transition: transform 0.15s ease, background 0.15s ease;
}
.module-post-cta:active {
  transform: scale(0.96);
  background: #1e293b;
}

/* =====================================================
   DEDICATED CHAT TAB PAGE (Zalo, Telegram, Messenger Style)
   ===================================================== */
.chat-page-container {
  max-width: 680px;
  margin: 0 auto;
  padding: 8px 12px calc(90px + max(env(safe-area-inset-bottom, 0px), 18px));
  min-height: 85vh;
}
.chat-festive-page,
body.chat-page-active {
  background: #FFFFFF !important;
}
body.chat-page-active #main-content {
  background: transparent !important;
}
body.chat-page-active #navbar {
  background: rgba(255, 255, 255, 0.95) !important;
  border-bottom: 1.5px solid #F1F5F9 !important;
  box-shadow: 0 2px 12px rgba(15, 23, 42, 0.04) !important;
}
body.chat-page-active #navbar .nav-icon-btn {
  background: #FFFFFF;
  border: 1.5px solid #E2E8F0;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.05);
}
body.chat-page-active .mobile-bottom-nav {
  background: #FFFFFF !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  border-top: 1px solid #E2E8F0 !important;
  box-shadow: 0 -4px 16px rgba(15, 23, 42, 0.06) !important;
}
body.chat-page-active .mobile-bottom-nav .mnav-item.active {
  color: #DC2626 !important;
}
body.chat-page-active .mobile-bottom-nav .mnav-post-circle {
  background: linear-gradient(135deg, #EF4444, #DC2626) !important;
  box-shadow: 0 4px 14px rgba(220, 38, 38, 0.35), 0 0 0 3px #FEF08A !important;
}
body.chat-page-active .mobile-bottom-nav .mnav-post-label {
  color: #DC2626 !important;
}
.chat-festive-fab {
  background: linear-gradient(135deg, #EF4444 0%, #DC2626 100%) !important;
  border: 2px solid #FACC15 !important;
  box-shadow: 0 6px 18px rgba(220, 38, 38, 0.32), 0 0 0 4px #FEF9C3 !important;
}
.chat-header-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 0 10px;
}
.chat-title-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}
.chat-page-title {
  font-size: 1.4rem;
  font-weight: 900;
  color: #0f172a;
  letter-spacing: -0.02em;
  margin: 0;
}
.chat-unread-pill {
  background: #ef4444;
  color: white;
  font-size: 11px;
  font-weight: 800;
  border-radius: 999px;
  padding: 2px 8px;
  box-shadow: 0 2px 6px rgba(239, 68, 68, 0.35);
}
.chat-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.chat-header-icon-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #f1f5f9;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #334155;
  cursor: pointer;
  transition: all 0.15s ease;
}
.chat-header-icon-btn:active {
  transform: scale(0.92);
  background: #e2e8f0;
}
.chat-search-bar {
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  padding: 8px 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}
.chat-search-bar input {
  flex: 1;
  border: none;
  background: transparent;
  outline: none;
  font-size: 0.88rem;
  color: #0f172a;
}
.chat-stories-strip {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 4px 2px 12px;
  scrollbar-width: none;
}
.chat-stories-strip::-webkit-scrollbar {
  display: none;
}
.chat-story-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  flex-shrink: 0;
  width: 58px;
}
.chat-story-avatar-wrap {
  position: relative;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  padding: 2.5px;
  background: #FFFFFF;
  border: 2px solid #D97706;
  box-shadow: 0 3px 10px rgba(180, 83, 9, 0.2);
}
.chat-story-avatar-wrap img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}
.chat-story-online-dot {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #22c55e;
  border: 2px solid white;
}
.chat-story-avatar-wrap.add-friend-wrap {
  background: #fff7ed;
  border: 2px dashed #ea580c;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}
.chat-story-name {
  font-size: 11px;
  color: #475569;
  max-width: 58px;
  text-align: center;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.chat-segments-row {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding: 2px 2px 10px;
  scrollbar-width: none;
}
.chat-segments-row::-webkit-scrollbar {
  display: none;
}
.chat-segment-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 600;
  color: #475569;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(217, 119, 6, 0.28);
  box-shadow: 0 2px 8px rgba(146, 64, 14, 0.06);
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
  flex-shrink: 0;
}
.chat-segment-chip svg {
  opacity: 0.78;
  flex-shrink: 0;
}
.chat-segment-chip.active {
  background: linear-gradient(135deg, #E11D48 0%, #DC2626 50%, #B91C1C 100%);
  color: white;
  border-color: #B91C1C;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(220, 38, 38, 0.34);
}
.chat-segment-chip.active svg {
  opacity: 1;
}
.chat-convs-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 2px;
}
.chat-row-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(217, 119, 6, 0.3);
  box-shadow: 0 4px 16px rgba(146, 64, 14, 0.08);
  transition: all 0.15s ease;
  cursor: pointer;
}
.chat-row-item:hover {
  background: #ffffff;
  border-color: rgba(220, 38, 38, 0.45);
  box-shadow: 0 6px 20px rgba(185, 28, 28, 0.12);
}
.chat-row-item.is-unread {
  background: #ffffff;
  border-color: rgba(220, 38, 38, 0.35);
}
.chat-row-avatar-wrap {
  position: relative;
  width: 48px;
  height: 48px;
  flex-shrink: 0;
}
.chat-row-avatar-wrap img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}
.chat-row-online-dot {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #22c55e;
  border: 2px solid white;
}
.chat-row-info {
  flex: 1;
  min-width: 0;
}
.chat-row-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}
.chat-row-name {
  font-size: 14px;
  font-weight: 700;
  color: #0f172a;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.chat-row-time {
  font-size: 11px;
  color: #94a3b8;
  flex-shrink: 0;
  margin-left: 6px;
}
.chat-row-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 2px;
}
.chat-row-msg {
  font-size: 12.5px;
  color: #64748b;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.chat-row-badge {
  background: #DC2626;
  color: white;
  border-radius: 999px;
  min-width: 10px;
  height: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 800;
  padding: 0;
  flex-shrink: 0;
  margin-left: 6px;
  box-shadow: 0 0 6px rgba(220, 38, 38, 0.45);
}
.chat-row-badge:not(:empty) {
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
}
.chat-empty-box {
  padding: 48px 20px;
  text-align: center;
  background: white;
  border-radius: 20px;
  border: 1.5px dashed #e2e8f0;
  margin-top: 10px;
}
.chat-empty-icon {
  font-size: 2.8rem;
  margin-bottom: 8px;
}
.chat-empty-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 4px 0;
}
.chat-empty-desc {
  font-size: 0.85rem;
  color: #64748b;
  max-width: 380px;
  margin: 0 auto 16px;
  line-height: 1.45;
}
.chat-empty-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 20px;
  border-radius: 999px;
  background: linear-gradient(135deg, #EF4444, #B91C1C);
  color: white;
  font-size: 0.85rem;
  font-weight: 700;
  border: 1px solid rgba(253, 224, 71, 0.55);
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(185, 28, 28, 0.35);
  transition: all 0.15s ease;
}
.chat-empty-btn:active {
  transform: scale(0.95);
}
.chat-fab-btn {
  position: fixed;
  bottom: calc(84px + max(env(safe-area-inset-bottom, 0px), 14px));
  right: 18px;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0284c7, #2563eb);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
  z-index: 40;
  cursor: pointer;
  border: none;
  transition: transform 0.15s ease;
}
.chat-fab-btn:active {
  transform: scale(0.92);
}





/* ============================================================================
   SIN ADMIN WORKSPACE 3.0 — Light Enterprise SaaS Design System
   (Crisp Porcelain & Pure White Surfaces • High Contrast • Zero Black Theme)
   ============================================================================ */
body.is-admin-workspace #navbar,
body.is-admin-workspace #footer,
body.is-admin-workspace #mobile-bottom-nav,
body.is-admin-workspace #admin-hud-root {
  display: none !important;
}

body.is-admin-workspace {
  background: #f4f7fb !important;
  color: #0f172a !important;
}

body.is-admin-workspace #main-content.page {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  margin: 0 !important;
  min-height: 100vh;
  background: #f4f7fb !important;
}

.sin-admin-shell {
  --adm-bg: #f4f7fb;
  --adm-surface: #ffffff;
  --adm-surface-soft: #f8fafc;
  --adm-surface-muted: #f1f5f9;
  --adm-border: #e2e8f0;
  --adm-border-strong: #cbd5e1;
  --adm-text: #0f172a;
  --adm-text-2: #334155;
  --adm-text-3: #64748b;
  --adm-brand: #ea580c;
  --adm-brand-soft: #fff7ed;
  --adm-indigo: #4f46e5;
  --adm-indigo-soft: #eef2ff;
  --adm-emerald: #059669;
  --adm-emerald-soft: #ecfdf5;
  --adm-amber: #d97706;
  --adm-amber-soft: #fffbeb;
  --adm-rose: #e11d48;
  --adm-rose-soft: #fff1f2;
  --adm-shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.04), 0 4px 12px -2px rgba(15, 23, 42, 0.04);
  --adm-shadow-md: 0 4px 16px -3px rgba(15, 23, 42, 0.07), 0 2px 6px -2px rgba(15, 23, 42, 0.04);
  display: flex;
  min-height: 100vh;
  background: var(--adm-bg);
  color: var(--adm-text);
  font-family: 'Plus Jakarta Sans', 'Inter', system-ui, -apple-system, sans-serif;
}

/* ---- Left Navigation Sidebar ---- */
.sin-admin-sidebar {
  width: 268px;
  flex-shrink: 0;
  background: #ffffff;
  border-right: 1px solid var(--adm-border);
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
  z-index: 60;
  transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 2px 0 16px rgba(15, 23, 42, 0.02);
}

.sin-admin-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 18px 16px;
  border-bottom: 1px solid #f1f5f9;
}

.sin-admin-brand-icon {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  font-weight: 800;
  color: #ffffff;
  box-shadow: 0 6px 16px rgba(234, 88, 12, 0.25);
  flex-shrink: 0;
}

.sin-admin-brand-title {
  font-size: 0.98rem;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.sin-admin-brand-sub {
  font-size: 0.72rem;
  font-weight: 600;
  color: #64748b;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 3px;
}

.sin-admin-nav-scroll {
  flex: 1;
  overflow-y: auto;
  padding: 14px 12px;
}

.sin-admin-nav-group {
  margin-bottom: 18px;
}

.sin-admin-nav-label {
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #94a3b8;
  padding: 0 10px 6px;
}

.sin-admin-nav-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  padding: 9px 11px;
  border-radius: 10px;
  font-size: 0.84rem;
  font-weight: 600;
  color: #475569;
  background: transparent;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.16s ease;
  margin-bottom: 3px;
  text-align: left;
}

.sin-admin-nav-item:hover {
  background: #f8fafc;
  color: #0f172a;
}

.sin-admin-nav-item.active {
  background: linear-gradient(90deg, #fff7ed 0%, #ffedd5 100%);
  color: #c2410c;
  font-weight: 700;
  border-color: #fed7aa;
  box-shadow: 0 1px 3px rgba(234, 88, 12, 0.08);
}

.sin-admin-nav-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.sin-admin-nav-icon {
  width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #64748b;
  transition: color 0.16s ease;
}

.sin-admin-nav-item:hover .sin-admin-nav-icon {
  color: #334155;
}

.sin-admin-nav-item.active .sin-admin-nav-icon {
  color: #ea580c;
}

/* ---- Soft Pill Badges ---- */
.sin-admin-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  font-size: 0.71rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  background: #f1f5f9;
  color: #475569;
  border: 1px solid #e2e8f0;
  font-variant-numeric: tabular-nums;
  line-height: 1.35;
  white-space: nowrap;
}

.sin-admin-nav-item.active .sin-admin-badge {
  background: #ffffff;
  color: #ea580c;
  border-color: #fdba74;
}

.sin-admin-badge.danger {
  background: #fff1f2;
  color: #be123c;
  border-color: #fecdd3;
}

.sin-admin-badge.warn {
  background: #fffbeb;
  color: #b45309;
  border-color: #fde68a;
}

.sin-admin-badge.success {
  background: #ecfdf5;
  color: #047857;
  border-color: #a7f3d0;
}

.sin-admin-badge.info {
  background: #eef2ff;
  color: #4338ca;
  border-color: #c7d2fe;
}

.sin-admin-badge.orange {
  background: #fff7ed;
  color: #c2410c;
  border-color: #fed7aa;
}

.sin-admin-sidebar-footer {
  padding: 12px;
  border-top: 1px solid #f1f5f9;
  background: #fafcff;
}

.sin-admin-user-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border-radius: 12px;
  background: #ffffff;
  border: 1px solid var(--adm-border);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03);
}

.sin-admin-user-avatar {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: linear-gradient(135deg, #f97316, #ea580c);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.82rem;
  font-weight: 800;
  color: #ffffff;
  flex-shrink: 0;
  overflow: hidden;
}

/* ---- Main Workspace Area ---- */
.sin-admin-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  background: var(--adm-bg);
}

.sin-admin-topbar {
  min-height: 62px;
  padding: 10px 28px;
  border-bottom: 1px solid var(--adm-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(14px);
  position: sticky;
  top: 0;
  z-index: 40;
}

.sin-admin-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: #64748b;
  font-weight: 500;
}

.sin-admin-breadcrumb strong {
  color: #0f172a;
  font-weight: 800;
}

.sin-admin-topbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

/* ---- Modern Action Buttons ---- */
.sin-admin-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 10px;
  font-size: 0.81rem;
  font-weight: 700;
  color: #334155;
  background: #ffffff;
  border: 1px solid var(--adm-border-strong);
  cursor: pointer;
  transition: all 0.16s ease;
  white-space: nowrap;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03);
}

.sin-admin-btn:hover {
  background: #f8fafc;
  border-color: #94a3b8;
  color: #0f172a;
  transform: translateY(-1px);
}

.sin-admin-btn:active {
  transform: scale(0.98);
}

.sin-admin-btn.primary {
  background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
  border-color: #ea580c;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(234, 88, 12, 0.22);
}

.sin-admin-btn.primary:hover {
  background: linear-gradient(135deg, #ea580c 0%, #c2410c 100%);
  color: #ffffff;
}

.sin-admin-btn.indigo {
  background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
  border-color: #4f46e5;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.2);
}

.sin-admin-btn.indigo:hover {
  background: linear-gradient(135deg, #4f46e5 0%, #4338ca 100%);
  color: #ffffff;
}

.sin-admin-btn.success {
  background: #ecfdf5;
  border-color: #6ee7b7;
  color: #047857;
}

.sin-admin-btn.success:hover {
  background: #d1fae5;
  color: #065f46;
}

.sin-admin-btn.danger {
  background: #fff1f2;
  border-color: #fda4af;
  color: #be123c;
}

.sin-admin-btn.danger:hover {
  background: #ffe4e6;
  color: #9f1239;
}

.sin-admin-btn.sm {
  padding: 5px 10px;
  font-size: 0.76rem;
  border-radius: 8px;
}

/* Alias cho các chỗ cũ dùng sin-admin-pill-btn */
.sin-admin-pill-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 7px 13px;
  border-radius: 10px;
  font-size: 0.8rem;
  font-weight: 700;
  color: #334155;
  background: #ffffff;
  border: 1px solid var(--adm-border-strong);
  cursor: pointer;
  transition: all 0.15s ease;
}

.sin-admin-pill-btn:hover {
  background: #f8fafc;
  border-color: #94a3b8;
  color: #0f172a;
}

.sin-admin-pill-btn.primary {
  background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
  border-color: #ea580c;
  color: #ffffff;
}

/* ---- Content Container ---- */
.sin-admin-content {
  padding: 24px 28px 56px;
  max-width: 1480px;
  width: 100%;
  margin: 0 auto;
}

/* ---- Sync Integrity Banner ---- */
.sin-admin-sync-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 12px 18px;
  border-radius: 14px;
  background: linear-gradient(90deg, #ffffff 0%, #f8fafc 100%);
  border: 1px solid var(--adm-border);
  box-shadow: var(--adm-shadow-sm);
  margin-bottom: 20px;
}

/* ---- Hero Header ---- */
.sin-admin-hero {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 20px;
}

.sin-admin-date {
  font-size: 0.71rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #ea580c;
  margin-bottom: 5px;
}

.sin-admin-greeting {
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  color: #0f172a;
  line-height: 1.2;
  margin: 0;
}

.sin-admin-sub {
  font-size: 0.86rem;
  color: #475569;
  margin-top: 5px;
}

/* ---- Bento KPI Grid ---- */
.sin-admin-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 20px;
}

.sin-admin-kpi-card {
  background: #ffffff;
  border: 1px solid var(--adm-border);
  border-radius: 16px;
  padding: 18px 20px;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 118px;
  box-shadow: var(--adm-shadow-sm);
  position: relative;
  overflow: hidden;
}

.sin-admin-kpi-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--adm-shadow-md);
  border-color: #cbd5e1;
}

.sin-admin-kpi-card.alert {
  border-color: #fdba74;
  background: linear-gradient(180deg, #fff7ed 0%, #ffffff 65%);
}

.sin-admin-kpi-card.danger-alert {
  border-color: #fda4af;
  background: linear-gradient(180deg, #fff1f2 0%, #ffffff 65%);
}

.sin-admin-kpi-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.sin-admin-kpi-label {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #64748b;
}

.sin-admin-kpi-icon-box {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}

.sin-admin-kpi-val {
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  color: #0f172a;
  margin-top: 10px;
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}

.sin-admin-kpi-hint {
  font-size: 0.76rem;
  color: #64748b;
  margin-top: 6px;
  font-weight: 500;
}

/* ---- Cards & Panels ---- */
.sin-admin-card,
.sin-admin-chart-card {
  background: #ffffff;
  border: 1px solid var(--adm-border);
  border-radius: 16px;
  padding: 20px 22px;
  margin-bottom: 18px;
  box-shadow: var(--adm-shadow-sm);
}

.sin-admin-chart-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
}

.sin-admin-chart-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1rem;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.015em;
}

.sin-admin-chart-desc {
  font-size: 0.81rem;
  color: #64748b;
  margin-top: 3px;
}

/* ---- Segmented Range & Filter Pills ---- */
.sin-admin-range-group {
  display: inline-flex;
  background: #f1f5f9;
  border: 1px solid var(--adm-border);
  border-radius: 10px;
  padding: 3px;
  gap: 2px;
}

.sin-admin-range-btn {
  padding: 5px 11px;
  border-radius: 7px;
  font-size: 0.75rem;
  font-weight: 700;
  color: #64748b;
  background: transparent;
  border: none;
  cursor: pointer;
  transition: all 0.14s ease;
}

.sin-admin-range-btn:hover {
  color: #0f172a;
}

.sin-admin-range-btn.active {
  background: #ffffff;
  color: #ea580c;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08);
}

/* ---- Interactive Bar Charts ---- */
.sin-admin-chart-bars {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 172px;
  padding: 14px 6px 0;
  border-bottom: 1px solid var(--adm-border);
  background: linear-gradient(180deg, rgba(248, 250, 252, 0.5) 0%, rgba(255, 255, 255, 0) 100%);
  border-radius: 10px 10px 0 0;
}

.sin-admin-bar-col {
  flex: 1;
  min-width: 6px;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  position: relative;
  cursor: pointer;
}

.sin-admin-bar-stack {
  width: 100%;
  max-width: 24px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  border-radius: 5px 5px 0 0;
  overflow: hidden;
  transition: transform 0.15s ease, filter 0.15s ease;
}

.sin-admin-bar-col:hover .sin-admin-bar-stack {
  filter: brightness(0.95);
  transform: scaleY(1.04);
  transform-origin: bottom;
}

.sin-admin-bar-primary {
  background: linear-gradient(180deg, #fb923c 0%, #ea580c 100%);
  width: 100%;
}

.sin-admin-bar-secondary {
  background: linear-gradient(180deg, #818cf8 0%, #4f46e5 100%);
  width: 100%;
}

.sin-admin-bar-x {
  display: flex;
  justify-content: space-between;
  font-size: 0.7rem;
  font-weight: 600;
  color: #64748b;
  margin-top: 8px;
}

.sin-admin-charts-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 18px;
}

/* ---- Ecosystem Vertical Tiles ---- */
.sin-admin-eco-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(168px, 1fr));
  gap: 12px;
}

.sin-admin-eco-tile {
  background: #f8fafc;
  border: 1px solid var(--adm-border);
  border-radius: 12px;
  padding: 12px 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  transition: all 0.16s ease;
}

.sin-admin-eco-tile:hover {
  background: #ffffff;
  border-color: #fdba74;
  box-shadow: var(--adm-shadow-sm);
  transform: translateY(-1px);
}

/* ---- Enterprise Data Tables ---- */
.sin-admin-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--adm-border);
  border-radius: 12px;
  background: #ffffff;
}

.sin-admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.84rem;
  color: #1e293b;
}

.sin-admin-table thead tr {
  background: #f8fafc;
  border-bottom: 1px solid var(--adm-border);
}

.sin-admin-table th {
  text-align: left;
  padding: 11px 14px;
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #64748b;
  white-space: nowrap;
}

.sin-admin-table td {
  padding: 12px 14px;
  border-bottom: 1px solid #f1f5f9;
  vertical-align: middle;
  color: #1e293b;
}

.sin-admin-table tbody tr:last-child td {
  border-bottom: none;
}

.sin-admin-table tbody tr:hover td {
  background: #fafcff;
}

/* ---- Filter Toolbar & High-Contrast Form Controls ---- */
.sin-admin-toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 14px;
  padding: 12px 14px;
  background: #f8fafc;
  border: 1px solid var(--adm-border);
  border-radius: 12px;
}

.sin-admin-shell input[type="text"],
.sin-admin-shell input[type="search"],
.sin-admin-shell input[type="password"],
.sin-admin-shell input[type="number"],
.sin-admin-shell input[type="email"],
.sin-admin-shell select,
.sin-admin-shell textarea {
  background: #ffffff !important;
  color: #0f172a !important;
  border: 1.5px solid #cbd5e1 !important;
  border-radius: 10px !important;
  padding: 8px 12px;
  font-size: 0.84rem;
  font-family: inherit;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.sin-admin-shell input::placeholder,
.sin-admin-shell textarea::placeholder {
  color: #94a3b8 !important;
}

.sin-admin-shell input:focus,
.sin-admin-shell select:focus,
.sin-admin-shell textarea:focus {
  outline: none !important;
  border-color: #ea580c !important;
  box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.14) !important;
}

.sin-admin-shell .empty-state {
  background: #f8fafc !important;
  border: 1px dashed #cbd5e1 !important;
  border-radius: 14px;
  padding: 40px 20px;
  color: #64748b;
  text-align: center;
}

.sin-admin-shell .empty-state h3 {
  color: #0f172a !important;
  margin: 8px 0 4px;
}

/* ---- Bulk Floating Selection Bar ---- */
.sin-admin-bulk-bar {
  display: none;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding: 10px 16px;
  margin-bottom: 14px;
  border-radius: 12px;
  background: #fff7ed;
  border: 1.5px solid #fdba74;
  color: #9a3412;
}

/* ---- Pagination Bar ---- */
.sin-admin-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid #f1f5f9;
  font-size: 0.81rem;
  color: #64748b;
}

/* ---- Mobile Drawer ---- */
.sin-admin-mobile-menu-btn {
  display: none;
  background: #ffffff;
  border: 1px solid var(--adm-border-strong);
  color: #0f172a;
  width: 36px;
  height: 36px;
  border-radius: 9px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.sin-admin-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.35);
  backdrop-filter: blur(2px);
  z-index: 55;
}

@media (max-width: 1180px) {
  .sin-admin-kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .sin-admin-charts-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 860px) {
  .sin-admin-mobile-menu-btn {
    display: inline-flex;
  }
  .sin-admin-sidebar {
    position: fixed;
    left: 0;
    top: 0;
    transform: translateX(-100%);
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.18);
  }
  .sin-admin-sidebar.open {
    transform: translateX(0);
  }
  .sin-admin-backdrop.open {
    display: block;
  }
  .sin-admin-topbar,
  .sin-admin-content {
    padding-left: 16px;
    padding-right: 16px;
  }
  .sin-admin-kpi-grid {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
}

/* =====================================================
   ZALO-STYLE DM CHAT & LONG-PRESS ACTION OVERLAY
   ===================================================== */
.sin-dm-scroll-wrap {
  position: relative;
  z-index: 1;
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #E7EEF6;
}
.sin-dm-scroll {
  position: relative;
  z-index: 1;
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  overflow-anchor: none;
  padding: 12px 12px 16px;
  display: flex;
  flex-direction: column;
  background: #E7EEF6;
  -webkit-overflow-scrolling: touch;
}
.sin-dm-unread-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 12px 4px 8px;
}
.sin-dm-unread-divider::before,
.sin-dm-unread-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(220, 38, 38, 0.35);
}
.sin-dm-unread-divider span {
  display: inline-flex;
  align-items: center;
  padding: 3px 11px;
  border-radius: 999px;
  background: #FEF2F2;
  border: 1px solid #FECACA;
  color: #DC2626;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}
.sin-dm-float-btn {
  position: absolute;
  z-index: 5;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border-radius: 999px;
  cursor: pointer;
  transition: transform 0.16s ease, box-shadow 0.16s ease, opacity 0.16s ease;
  -webkit-tap-highlight-color: transparent;
}
.sin-dm-float-btn:active {
  transform: scale(0.95);
}
.sin-dm-float-btn.is-unread {
  top: 10px;
  right: 12px;
  padding: 7px 13px;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1.5px solid #FCA5A5;
  color: #DC2626;
  font-size: 12.5px;
  font-weight: 700;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.14);
}
.sin-dm-float-btn.is-bottom {
  bottom: 14px;
  right: 12px;
  min-width: 38px;
  height: 38px;
  padding: 0 10px;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid #CBD5E1;
  color: #0F172A;
  font-size: 12.5px;
  font-weight: 700;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.16);
}
.sin-dm-float-btn.is-bottom.has-new {
  background: linear-gradient(135deg, #EF4444 0%, #DC2626 100%);
  border-color: #FACC15;
  color: #FFFFFF;
  padding: 0 13px;
}
.sin-dm-date-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 10px 0 6px;
}
.sin-dm-date-pill {
  display: inline-block;
  padding: 3px 12px;
  background: rgba(15, 23, 42, 0.22);
  border-radius: 999px;
  font-size: 11.5px;
  color: #FFFFFF;
  font-weight: 600;
  letter-spacing: 0.01em;
}
.sin-dm-row {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  margin-bottom: 2px;
  position: relative;
}
.sin-dm-row.theirs {
  align-items: flex-start;
}
.sin-dm-row.group-end {
  margin-bottom: 8px;
}
.sin-dm-row.mine {
  justify-content: flex-end;
}
.sin-dm-row.has-reactions {
  margin-bottom: 12px;
}
.sin-dm-bubble-col {
  max-width: min(78%, 430px);
  display: flex;
  flex-direction: column;
  position: relative;
}
.sin-dm-row.mine .sin-dm-bubble-col {
  align-items: flex-end;
}
.sin-dm-row.theirs .sin-dm-bubble-col {
  align-items: flex-start;
}
.sin-dm-bubble-wrap {
  position: relative;
  display: flex;
  align-items: center;
  gap: 6px;
  max-width: 100%;
}
.sin-dm-row.mine .sin-dm-bubble-wrap {
  flex-direction: row-reverse;
}
.sin-dm-bubble {
  font-size: 15.5px;
  line-height: 1.45;
  word-break: break-word;
  position: relative;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
  touch-action: pan-y;
  transition: transform 0.14s ease, box-shadow 0.14s ease;
  cursor: pointer;
}
.sin-dm-bubble.is-pressing {
  transform: scale(0.97);
}
.sin-dm-bubble.mine.is-text {
  background: #DDF0FF;
  color: #0F172A;
  border: 1px solid #C5E4FF;
  border-radius: 18px 18px 6px 18px;
  padding: 9px 13px 7px;
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.06);
}
.sin-dm-bubble.theirs.is-text {
  background: #FFFFFF;
  color: #0F172A;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 18px 18px 18px 6px;
  padding: 9px 13px 7px;
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.06);
}
.sin-dm-bubble.recalled {
  background: rgba(255, 255, 255, 0.72) !important;
  border: 1px dashed #CBD5E1 !important;
  color: #64748B !important;
  font-style: italic;
  font-size: 14px;
  padding: 8px 13px !important;
  border-radius: 16px !important;
  box-shadow: none !important;
}
.sin-dm-bubble.is-media-only {
  background: transparent;
  padding: 0;
  border: none;
  box-shadow: none;
}
.sin-dm-media-img {
  display: block;
  width: min(74vw, 310px);
  max-width: 100%;
  max-height: 390px;
  border-radius: 16px;
  object-fit: cover;
  box-shadow: 0 3px 14px rgba(15, 23, 42, 0.14);
  cursor: zoom-in;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
  background: #CBD5E1;
}
.sin-dm-media-time {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 4px;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.28);
  color: #FFFFFF;
  font-size: 11px;
  font-weight: 600;
}
.sin-dm-msg-time {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  color: #64748B;
  font-weight: 500;
  margin-top: 3px;
  line-height: 1.2;
}
.sin-dm-status-line {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  color: #64748B;
  font-weight: 600;
  margin-top: 3px;
}
.sin-dm-reply-quote {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 9px;
  margin-bottom: 6px;
  border-radius: 10px;
  background: rgba(15, 23, 42, 0.055);
  border-left: 3px solid #0284C7;
  font-size: 12.5px;
  line-height: 1.35;
  cursor: pointer;
}
.sin-dm-reaction-pill {
  position: relative;
  z-index: 2;
  margin-top: -10px;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 2px 8px;
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 999px;
  font-size: 13px;
  line-height: 1.3;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.12);
  cursor: pointer;
}
.sin-dm-row.mine .sin-dm-reaction-pill {
  align-self: flex-end;
  margin-right: 6px;
}
.sin-dm-row.theirs .sin-dm-reaction-pill {
  align-self: flex-start;
  margin-left: 6px;
}
.sin-dm-hover-btn {
  opacity: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid #E2E8F0;
  color: #475569;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: opacity 0.15s ease, transform 0.15s ease;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.08);
}
.sin-dm-row:hover .sin-dm-hover-btn {
  opacity: 1;
}
@media (hover: none) {
  .sin-dm-hover-btn {
    display: none !important;
  }
}

.sin-dm-ctx-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1000010;
  background: rgba(15, 23, 42, 0.56);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 16px 14px max(22px, env(safe-area-inset-bottom, 22px));
  animation: sinDmFadeIn 0.16s ease;
}
@keyframes sinDmFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes sinDmSheetUp {
  from { opacity: 0; transform: translateY(14px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes sinDmJumpFlash {
  0%, 100% { filter: brightness(1); }
  35% { box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.45); transform: scale(1.02); }
}
.sin-dm-jump-highlight {
  animation: sinDmJumpFlash 1.2s ease;
}
.sin-dm-ctx-inner {
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  animation: sinDmSheetUp 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}
.sin-dm-ctx-reacts {
  background: #FFFFFF;
  border-radius: 999px;
  padding: 7px 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.24);
}
.sin-dm-ctx-react-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  cursor: pointer;
  transition: transform 0.14s ease, background 0.14s ease;
}
.sin-dm-ctx-react-btn:hover {
  transform: scale(1.18);
  background: #F1F5F9;
}
.sin-dm-ctx-react-btn.selected {
  background: #E0F2FE;
  box-shadow: 0 0 0 2px #38BDF8;
  transform: scale(1.08);
}
.sin-dm-ctx-menu {
  background: #FFFFFF;
  border-radius: 20px;
  padding: 14px 10px;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.28);
}
.sin-dm-ctx-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px 4px;
}
.sin-dm-ctx-action {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 6px;
  padding: 6px 4px;
  border-radius: 12px;
  cursor: pointer;
  color: #1E293B;
  font-size: 12px;
  font-weight: 600;
  text-align: center;
  line-height: 1.25;
  transition: background 0.14s ease;
}
.sin-dm-ctx-action:hover {
  background: #F8FAFC;
}
.sin-dm-ctx-action.danger {
  color: #DC2626;
}
.sin-dm-pin-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: #FFFFFF;
  border-bottom: 1px solid #E2E8F0;
  font-size: 13px;
  color: #0F172A;
  cursor: pointer;
  flex-shrink: 0;
  z-index: 2;
}
.sin-dm-reply-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  background: #F8FAFC;
  border-top: 1px solid #E2E8F0;
  flex-shrink: 0;
}
