/* CSS FOR TRANG THÔNG TIN ĐIỆN TỬ MTTQ VIỆT NAM PHƯỜNG BÌNH ĐÔNG */
@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,400;1,700&display=swap');

:root {
  --primary-red: #cc0d12;
  --dark-red: #990000;
  --bright-red: #e61919;
  --gold: #ffcc00;
  --gold-dark: #d4a017;
  --bg-light: #f4f6f9;
  --bg-white: #ffffff;
  --text-main: #1f2937;
  --text-muted: #6b7280;
  --border-color: #e5e7eb;
  --success: #059669;
  --warning: #d97706;
  --danger: #dc2626;
  --accent-pink: #ec4899;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.1);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Roboto', Arial, sans-serif;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE & Edge */
}

/* Ẩn thanh cuộn trên Chrome, Safari, Opera, Edge */
*::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

body {
  background-color: var(--bg-light);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
}

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

/* TOP TOOLBAR & ADMIN BADGE */
.top-bar {
  background: #1e293b;
  color: #f8fafc;
  padding: 8px 0;
  font-size: 0.85rem;
  border-bottom: 2px solid var(--gold);
}

.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 16px;
}

.top-bar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.top-bar-info span {
  margin-right: 18px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.admin-toggle-btn {
  background: linear-gradient(135deg, #d97706, #b45309);
  color: white;
  border: none;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.3s ease;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.admin-toggle-btn.active {
  background: linear-gradient(135deg, #10b981, #047857);
}

.admin-toggle-btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.1);
}

/* HEADER BANNER */
.header-banner {
  background: linear-gradient(135deg, #b91c1c 0%, #991b1b 50%, #7f1d1d 100%);
  color: white;
  padding: 20px 0;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.header-banner::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(255,204,0,0.15) 0%, rgba(255,204,0,0) 70%);
  border-radius: 50%;
  pointer-events: none;
}

.banner-content {
  display: flex;
  align-items: center;
  gap: 20px;
  position: relative;
  z-index: 1;
}

.logo-img {
  width: 90px;
  height: 90px;
  object-fit: contain;
  filter: drop-shadow(0 4px 6px rgba(0,0,0,0.3));
  border-radius: 50%;
  background: white;
  padding: 4px;
}

.header-titles h1 {
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: var(--gold);
  text-transform: uppercase;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
  line-height: 1.3;
}

.header-titles h2 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #ffffff;
  text-transform: uppercase;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.4);
}

/* NAVIGATION MENU */
.main-nav {
  background: var(--dark-red);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  border-top: 1px solid rgba(255,255,255,0.1);
  border-bottom: 3px solid var(--gold);
  overflow: visible;
}

.nav-list {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}

.nav-item {
  position: relative;
  flex-shrink: 0;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 14px 12px;
  color: #ffffff;
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  white-space: nowrap;
  transition: all 0.2s ease;
  cursor: pointer;
  border-right: 1px solid rgba(255,255,255,0.08);
}

.nav-item:first-child .nav-link {
  background: rgba(0,0,0,0.15);
}

.nav-link:hover, .nav-item.active > .nav-link {
  background: var(--gold);
  color: var(--dark-red);
}

.dropdown-icon {
  font-size: 0.75rem;
  margin-left: 2px;
  transition: transform 0.2s ease;
}

/* Dropdown Menu */
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--bg-white);
  min-width: 250px;
  box-shadow: var(--shadow-lg);
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  border-top: 3px solid var(--primary-red);
  list-style: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.25s ease;
  z-index: 110;
}

.nav-item:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-item:hover .dropdown-icon {
  transform: rotate(180deg);
}

.dropdown-menu li a {
  display: block;
  padding: 12px 18px;
  color: var(--text-main);
  font-size: 0.88rem;
  font-weight: 600;
  border-bottom: 1px solid var(--border-color);
  transition: all 0.2s ease;
  cursor: pointer;
}

.dropdown-menu li:last-child a {
  border-bottom: none;
}

.nav-search-item { position: relative; }
.nav-quick-search-panel {
  position: absolute;
  top: 100%;
  right: 0;
  z-index: 120;
  display: none;
  width: 340px;
  padding: 12px;
  border-top: 3px solid var(--primary-red);
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  background: #fff;
  box-shadow: var(--shadow-lg);
}
.nav-search-item.search-open .nav-quick-search-panel { display: block; }
.nav-quick-search-panel .nav-quick-search-results { margin-top: 8px; }
.nav-search-item.search-open > .nav-link { background: var(--gold); color: var(--dark-red); }
.nav-search-form { display: flex; align-items: center; gap: 6px; }
.nav-search-form input {
  width: 220px;
  min-width: 0;
  padding: 9px 10px;
  border: 1px solid #e2e8f0;
  border-radius: 7px;
  outline: none;
  color: #1e293b;
  background: #fff;
  font: inherit;
  font-size: 0.82rem;
}
.nav-search-form input:focus { border-color: #dc3545; box-shadow: 0 0 0 2px rgba(220, 53, 69, 0.12); }
.nav-search-form button {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 0;
  border-radius: 7px;
  color: #fff;
  background: #b91c1c;
  cursor: pointer;
}
.nav-quick-search-results { display: grid; gap: 3px; max-height: 300px; overflow-y: auto; }
.nav-quick-search-results:empty { display: none; }
.nav-quick-search-results a,
.nav-quick-search-results .nav-search-empty {
  display: block;
  padding: 8px 10px;
  border-radius: 6px;
  color: #334155;
  font-size: 0.78rem;
  line-height: 1.35;
  text-decoration: none;
}
.nav-quick-search-results a:hover { color: #991b1b; background: #fef2f2; }
.nav-quick-search-results small { display: block; margin-top: 3px; color: #64748b; font-size: 0.68rem; }
.nav-quick-search-results .nav-search-empty { color: #64748b; }

@media (max-width: 992px) {
  .nav-quick-search-panel {
    position: static;
    width: 100%;
    border-top: 1px solid rgba(255,255,255,0.15);
    border-radius: 0;
    background: #6b1414;
    box-shadow: none;
    padding: 10px 16px 14px 16px;
  }
  .nav-search-item.search-open .nav-quick-search-panel { display: block; }
  .nav-search-form { display: flex; align-items: center; gap: 8px; width: 100%; }
  .nav-search-form input { flex: 1; width: 100%; min-width: 0; }
  .nav-quick-search-results a, .nav-quick-search-results .nav-search-empty { color: #fff; }
  .nav-quick-search-results a:hover { color: var(--gold); background: rgba(255,255,255,0.1); }
  .nav-quick-search-results small { color: #fecaca; }
}

@media (min-width: 993px) {
  .dropdown-menu li a:hover {
    background: #fef2f2;
    color: var(--primary-red);
    padding-left: 24px;
  }
}

/* MARQUEE BANNER */
.news-ticker {
  background: #fffbeb;
  border-bottom: 1px solid #fde68a;
  padding: 7px 0;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  overflow: hidden;
  width: 100%;
}

.news-ticker .container {
  display: flex !important;
  align-items: center !important;
  flex-wrap: nowrap !important;
  gap: 12px !important;
  width: 100%;
  overflow: hidden;
}

.ticker-title {
  background: var(--primary-red);
  color: var(--gold);
  font-weight: 700;
  padding: 4px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  white-space: nowrap;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 1px 3px rgba(185, 28, 28, 0.2);
}

.ticker-content {
  flex: 1 1 auto;
  min-width: 0;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  white-space: nowrap;
  color: #92400e;
  font-weight: 600;
  font-size: 0.92rem;
  display: block;
  line-height: 1.4;
}

/* MAIN CONTENT AREA */
.main-wrapper {
  padding: 20px 0 32px;
  min-height: auto;
}

.page-section {
  display: none;
  animation: fadeIn 0.4s ease-in-out;
}

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

#page-admin-hop-thu.active { width: 100%; }
.admin-inbox-page-shell { width: 100%; max-width: 1440px; margin: 0 auto; padding: 22px; border: 1px solid #dbeafe; border-radius: 16px; background: linear-gradient(145deg, #f8fbff, #fff 42%); box-shadow: 0 12px 34px rgba(15, 23, 42, .08); }
.admin-inbox-page-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 22px; padding: 4px 2px 18px; border-bottom: 1px solid #dbeafe; }
.admin-inbox-page-toolbar h1 { margin: 0; color: #1e3a5f; font-size: 1.55rem; }
.admin-inbox-page-toolbar h1 i { margin-right: 8px; color: #0284c7; }
.admin-inbox-page-toolbar p { margin: 5px 0 0; color: #64748b; font-size: .9rem; }
.admin-inbox-loading { display: flex; align-items: center; justify-content: center; min-height: 220px; gap: 10px; color: #0369a1; font-weight: 700; }
#admin-inbox-page-content > div[style*="background: #f8fafc"] { padding: 18px !important; }
#admin-inbox-page-content > div[style*="background: #f1f5f9"] { gap: 12px !important; }
#admin-inbox-page-content .feedback-inbox-item { padding: 20px !important; border-radius: 12px !important; }
#admin-inbox-page-content .feedback-inbox-item > div:last-of-type { padding: 12px 14px !important; }
#admin-inbox-page-content form { max-width: 1080px; margin: 0 auto; }
#admin-inbox-page-content .feedback-detail-card { padding: 24px !important; font-size: 1rem !important; line-height: 1.7; }

@media (max-width: 768px) {
  .admin-inbox-page-shell { padding: 14px; border-radius: 12px; }
  .admin-inbox-page-toolbar { align-items: flex-start; flex-direction: column; }
  .admin-inbox-page-toolbar h1 { font-size: 1.25rem; }
  #admin-inbox-page-content > div[style*="background: #f1f5f9"] { align-items: stretch !important; }
  #admin-inbox-page-content > div[style*="background: #f1f5f9"] > div { width: 100%; flex-wrap: wrap; }
  #admin-inbox-page-content .feedback-inbox-item { padding: 14px !important; }
  #admin-inbox-page-content .feedback-inbox-item > div:last-of-type > div:last-child { flex-wrap: wrap; }
}

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

/* BREADCRUMB & SECTION TITLE */
.section-header {
  background: var(--bg-white);
  padding: 16px 20px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  border-left: 5px solid var(--primary-red);
  margin-bottom: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.section-title-group h2 {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--primary-red);
  text-transform: uppercase;
  margin-bottom: 4px;
}

.section-subtitle {
  font-size: 0.88rem;
  color: var(--text-muted);
}

/* LAYOUT GRIDS */
.grid-2col {
  display: grid;
  grid-template-columns: 2.2fr 1fr;
  gap: 24px;
  align-items: start;
}

@media (min-width: 993px) {
  .side-col {
    position: sticky;
    top: 80px;
    align-self: start;
  }
}

@media (max-width: 992px) {
  .grid-2col {
    grid-template-columns: 1fr;
  }
}

/* CARD STYLES */
.card {
  background: var(--bg-white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  overflow: hidden;
  margin-bottom: 24px;
}

.card-header {
  padding: 14px 18px;
  background: #f8fafc;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.card-header h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--primary-red);
  display: flex;
  align-items: center;
  gap: 8px;
}

.card-body {
  padding: 20px;
}

/* HOME FEATURED SLIDER */
.featured-news {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  margin-bottom: 24px;
}

.featured-nav {
  position: absolute;
  z-index: 2;
  top: 50%;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.58);
  color: #fff;
  cursor: pointer;
  transform: translateY(-50%);
  transition: background 0.2s ease, transform 0.2s ease;
}

.featured-nav:hover {
  background: rgba(15, 23, 42, 0.88);
  transform: translateY(-50%) scale(1.06);
}

.featured-nav-prev { left: 14px; }
.featured-nav-next { right: 14px; }

.featured-slide-count {
  position: absolute;
  z-index: 2;
  right: 14px;
  bottom: 14px;
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.62);
  color: #fff;
  font-size: 0.75rem;
  pointer-events: none;
}

.featured-img-container {
  position: relative;
  height: 380px;
  width: 100%;
}

.featured-img-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.featured-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.5) 70%, rgba(0,0,0,0) 100%);
  padding: 24px 20px 16px;
  color: white;
}

.featured-badge {
  background: var(--primary-red);
  color: var(--gold);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 4px;
  text-transform: uppercase;
  display: inline-block;
  margin-bottom: 8px;
}

.featured-title {
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 8px;
  color: #ffffff;
}

.featured-date {
  font-size: 0.8rem;
  color: #d1d5db;
}

/* SIDEBAR NEWS LIST */
.news-mini-list {
  list-style: none;
}

.news-mini-item {
  padding: 12px 0;
  border-bottom: 1px dashed var(--border-color);
}

.news-mini-item:last-child {
  border-bottom: none;
}

.news-mini-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-main);
  line-height: 1.4;
  margin-bottom: 4px;
  display: block;
  transition: color 0.2s;
  cursor: pointer;
}

.news-mini-title:hover,
.news-mini-title:active {
  color: var(--primary-red);
}

.news-mini-date {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.home-news-category-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 8px;
  border: 1px solid #86efac;
  border-radius: 999px;
  background: #f0fdf4;
  color: #166534;
  font-size: 0.7rem;
  font-weight: 700;
  line-height: 1.5;
}

/* STATS DASHBOARD ROW */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.home-quick-stats {
  margin: 0 0 24px 0;
  padding: 18px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, #fff, #f8fafc);
  box-shadow: var(--shadow-sm);
}

.home-quick-stats-title {
  margin: 0 0 14px;
  color: var(--primary-red);
  font-size: 1rem;
  font-weight: 800;
}

.home-quick-stats-title i { margin-right: 6px; color: #2563eb; }
.home-quick-stats .stats-grid { margin-bottom: 0; }

.stat-box {
  background: var(--bg-white);
  padding: 18px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  gap: 14px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.stat-box:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.stat-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}

.stat-icon.green { background: #dcfce7; color: #16a34a; }
.stat-icon.blue { background: #dbeafe; color: #2563eb; }
.stat-icon.orange { background: #ffedd5; color: #ea580c; }
.stat-icon.pink { background: #fce7f3; color: #db2777; }
.stat-icon.yellow { background: #fef9c3; color: #ca8a04; }
.stat-icon.red { background: #fee2e2; color: #dc2626; }
.stat-icon.purple { background: #f3e8ff; color: #7e22ce; }

.stat-num {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.1;
}

.stat-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-top: 2px;
}

.home-visitor-card {
  margin: 0 0 22px;
  padding: 16px 18px 13px;
  border: 1px solid #fecaca;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, #fff7f7, #fff 72%);
  box-shadow: var(--shadow-sm);
}

.home-visitor-heading { display: flex; align-items: center; gap: 10px; min-width: 0; }
.home-visitor-icon { display: grid; place-items: center; width: 38px; height: 38px; flex: 0 0 auto; border-radius: 10px; color: #fff; background: linear-gradient(135deg, #dc2626, #991b1b); }
.home-visitor-heading h3 { margin: 0; color: #7f1d1d; font-size: .9rem; }
.home-visitor-heading p { margin: 3px 0 0; color: var(--text-muted); font-size: .76rem; }
.home-visitor-live { display: inline-flex; align-items: center; gap: 5px; margin-left: auto; color: #64748b; font-size: .65rem; font-weight: 800; white-space: nowrap; }
.home-visitor-live.is-live { color: #15803d; }
.home-visitor-live i { font-size: .5rem; }
.home-visitor-live.is-live i { animation: visitorPulse 1.8s infinite; }
@keyframes visitorPulse { 50% { opacity: .35; } }
.home-visitor-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; margin-top: 14px; }
.home-visitor-stat { display: grid; gap: 3px; min-width: 0; padding: 10px 11px; border: 1px solid #fee2e2; border-radius: 9px; background: rgba(255,255,255,.8); }
.home-visitor-value { color: #991b1b; font-size: 1.2rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.home-visitor-label { color: #64748b; font-size: .72rem; }
.home-visitor-note { margin: 10px 0 0; color: #78716c; font-size: .7rem; line-height: 1.4; }

.feedback-lookup-form { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: end; }
.feedback-lookup-field { display: grid; gap: 5px; }
.feedback-lookup-field label { color: #334155; font-size: .82rem; font-weight: 700; }
.feedback-lookup-form .btn-primary { min-height: 42px; white-space: nowrap; }
.feedback-lookup-results-heading { margin: 14px 0 10px; color: #334155; font-weight: 700; }
.feedback-lookup-result { margin-top: 14px; }
.feedback-lookup-message { padding: 12px 14px; border: 1px solid #bae6fd; border-radius: 8px; color: #075985; background: #f0f9ff; line-height: 1.5; }
.feedback-lookup-message.is-error { border-color: #fecaca; color: #991b1b; background: #fef2f2; }
.feedback-lookup-card { overflow: hidden; border: 1px solid #bfdbfe; border-radius: 10px; background: #fff; box-shadow: 0 4px 12px rgba(15,23,42,.06); }
.feedback-lookup-card-heading { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 15px 17px; background: linear-gradient(135deg,#eff6ff,#fff); border-bottom: 1px solid #dbeafe; }
.feedback-lookup-eyebrow { color: #64748b; font-size: .68rem; font-weight: 800; letter-spacing: .06em; }
.feedback-lookup-card-heading h4 { margin: 4px 0 0; color: #0f172a; font-size: 1rem; }
.feedback-lookup-status { display: inline-flex; align-items: center; gap: 6px; flex: 0 0 auto; padding: 6px 10px; border-radius: 18px; color: white; background: var(--lookup-status); font-size: .76rem; font-weight: 700; }
.feedback-lookup-card dl { display: flex; gap: 34px; margin: 0; padding: 14px 17px; }
.feedback-lookup-card dl div { display: grid; gap: 3px; }
.feedback-lookup-card dt { color: #64748b; font-size: .74rem; }
.feedback-lookup-card dd { margin: 0; color: #0f172a; font-size: .88rem; font-weight: 700; }
.feedback-lookup-response { margin: 0 17px 16px; padding: 14px; border: 1px solid #bbf7d0; border-radius: 8px; color: #14532d; background: #f0fdf4; }
.feedback-lookup-response strong { font-size: .88rem; }
.feedback-lookup-response p { margin: 8px 0; white-space: pre-line; line-height: 1.65; }
.feedback-lookup-response small { color: #166534; }
.feedback-lookup-private-note { margin: 0 17px 16px; color: #64748b; font-size: .78rem; line-height: 1.5; }

@media (max-width: 640px) {
  .feedback-lookup-form { grid-template-columns: minmax(0, 1fr); }
  .feedback-lookup-form .btn-primary { width: 100%; justify-content: center; }
  .feedback-lookup-card-heading { align-items: flex-start; flex-direction: column; }
  .feedback-lookup-card dl { gap: 18px; }
}

@media (max-width: 480px) {
  .home-visitor-card { padding: 13px; }
  .home-visitor-heading h3 { font-size: .82rem; }
  .home-visitor-live { font-size: .58rem; }
  .home-visitor-grid { gap: 6px; }
  .home-visitor-stat { padding: 8px 7px; }
  .home-visitor-value { font-size: 1.05rem; }
  .home-visitor-label { font-size: .66rem; }
}

/* MAP STYLES */
.home-music-card {
  margin-top: 18px;
  border-color: #fecaca;
  background: linear-gradient(145deg, #fff7f7, #ffffff 70%);
}

.home-music-header {
  align-items: center;
  gap: 12px;
}

.home-music-header h3 { color: var(--primary-red); }
.home-music-header h3 i { margin-right: 7px; }
.home-music-header p { color: var(--text-muted); font-size: .82rem; margin: 5px 0 0; }
.home-music-list { display: block; }
.political-player { --player-pink: var(--primary-red, #b91c1c); overflow: hidden; border: 1px solid #fecaca; border-radius: 12px; padding: 19px; background: linear-gradient(145deg, #fff7f7, #ffffff 68%, #fff1f2); color: #334155; box-shadow: 0 8px 20px rgba(127, 29, 29, .09); }
.political-now-playing { display: flex; align-items: center; gap: 14px; min-width: 0; margin-bottom: 20px; }
.political-main-play { display: grid; place-items: center; width: 58px; height: 58px; flex: 0 0 auto; border: 0; border-radius: 50%; background: linear-gradient(135deg, #dc2626, #991b1b); color: white; font-size: 20px; cursor: pointer; box-shadow: 0 5px 14px rgba(185,28,28,.24); transition: transform .15s, background .15s; }
.political-main-play:hover { transform: scale(1.05); background: #b91c1c; }
.political-main-play:disabled { opacity: .55; cursor: default; }
.political-track-meta { display: grid; gap: 4px; flex: 1; min-width: 0; }
.political-track-meta strong { overflow: hidden; color: #7f1d1d; font-size: 1.03rem; text-overflow: ellipsis; white-space: nowrap; }
.political-track-meta span { overflow: hidden; color: #78716c; font-size: .88rem; text-overflow: ellipsis; white-space: nowrap; }
.political-download, .political-delete { display: grid; place-items: center; width: 35px; height: 35px; flex: 0 0 auto; border: 1px solid #fee2e2; border-radius: 8px; color: #991b1b; background: #fff; text-decoration: none; cursor: pointer; }
.political-download:hover { color: white; background: var(--player-pink); }
.political-delete { color: #b91c1c; }
.political-progress-row { display: flex; align-items: center; gap: 13px; margin: 0 2px 16px; color: #78716c; font-variant-numeric: tabular-nums; font-size: .8rem; }
.political-progress-row input { flex: 1; min-width: 0; height: 5px; accent-color: var(--player-pink); cursor: pointer; }
.political-progress-row span { min-width: 39px; text-align: right; }
.political-control-row { display: flex; align-items: center; gap: 7px; margin-bottom: 18px; }
.political-control-row > button { display: grid; place-items: center; width: 39px; height: 39px; flex: 0 0 auto; border: 1px solid #fecaca; border-radius: 5px; color: #7f1d1d; background: #fff; cursor: pointer; transition: background .15s, color .15s; }
.political-control-row > button:hover, .political-control-row > button.is-active { color: white; border-color: #b91c1c; background: #b91c1c; }
.political-control-row > button:disabled { opacity: .5; cursor: default; }
.political-volume { display: flex; align-items: center; gap: 7px; flex: 1; min-width: 50px; color: #991b1b; }
.political-volume > i { display: none; }
.political-volume input { width: 100%; max-width: 80px; height: 34px; accent-color: var(--player-pink); cursor: pointer; }
.political-queue { max-height: 240px; overflow-y: auto; border: 1px solid #fecaca; border-radius: 6px; background: #fff; scrollbar-color: #b91c1c #fee2e2; scrollbar-width: thin; transition: max-height .2s, opacity .2s; }
.political-queue.is-collapsed { max-height: 0; opacity: 0; border-color: transparent; }
.political-queue-row { display: flex; align-items: stretch; min-height: 49px; border-bottom: 1px solid #fee2e2; background: #fff; transition: background .15s; }
.political-queue-row:last-child { border-bottom: 0; }
.political-queue-row:hover { background: #fff7f7; }
.political-queue-row.is-current { background: linear-gradient(100deg, #b91c1c, #dc2626); box-shadow: inset 0 0 0 1px rgba(255,255,255,.22); }
.political-queue-select { display: flex; align-items: center; gap: 6px; flex: 1; min-width: 0; padding: 10px 12px; border: 0; color: #334155; background: transparent; text-align: left; cursor: pointer; }
.political-queue-index { flex: 0 0 auto; }
.political-queue-title { overflow: hidden; font-size: .9rem; text-overflow: ellipsis; white-space: nowrap; }
.political-queue-title small { display: block; margin-top: 2px; color: #78716c; font-size: .75rem; }
.political-queue-row.is-current .political-queue-select { color: white; }
.political-queue-row.is-current .political-queue-title small { color: #fee2e2; }
.political-queue-download, .political-queue-admin-delete { display: grid; place-items: center; width: 43px; flex: 0 0 auto; border: 0; border-left: 1px solid #fee2e2; color: #991b1b; background: #fffafa; text-decoration: none; cursor: pointer; }
.political-queue-download:hover, .political-queue-admin-delete:hover { color: white; background: #b91c1c; }
.political-queue-row.is-current .political-queue-download, .political-queue-row.is-current .political-queue-admin-delete { border-left-color: rgba(255,255,255,.25); color: white; background: rgba(127,29,29,.24); }
.political-empty { display: flex; align-items: center; gap: 10px; min-height: 58px; padding: 13px; color: #78716c; font-size: .88rem; }
.political-empty i { color: var(--player-pink); }
.home-music-empty { display: flex; align-items: center; gap: 10px; color: var(--text-muted); padding: 10px 2px; }
.home-music-empty i { color: var(--primary-red); font-size: 1.1rem; }
.music-tab-bar { display: flex; gap: 8px; margin-bottom: 12px; border-bottom: 1px solid #e2e8f0; padding-bottom: 8px; }
.music-tab-btn { padding: 8px 14px; border: 1px solid #cbd5e1; background: #f8fafc; border-radius: 6px; font-weight: 600; cursor: pointer; transition: all 0.2s; font-size: 0.88rem; color: #475569; display: inline-flex; align-items: center; gap: 6px; }
.music-tab-btn:hover { background: #f1f5f9; color: #1e293b; }
.music-tab-btn.active { background: var(--primary-red, #b91c1c); color: #fff; border-color: var(--primary-red, #b91c1c); }
.music-upload-form { display: grid; gap: 10px; }
.music-upload-form p { margin: 0 0 6px; color: var(--text-muted); }
.music-upload-form label { color: var(--text-dark); font-size: .9rem; font-weight: 700; }
.music-upload-form input:not([type="file"]) { width: 100%; padding: 10px 12px; border: 1px solid var(--border-color); border-radius: 8px; }
.music-upload-form input[type="file"] { width: 100%; padding: 10px; border: 1px dashed var(--border-color); border-radius: 8px; background: #f8fafc; }
.music-upload-status { min-height: 1.25em; color: #166534; font-size: .88rem; }
.music-upload-file-notice { color: #64748b; font-size: .82rem; line-height: 1.5; }
.music-upload-progress { width: 100%; height: 10px; accent-color: #15803d; }
.music-upload-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 4px; }
.project-video-notice { margin-top: 6px; color: var(--text-muted); font-size: .82rem; line-height: 1.5; }

@media (max-width: 480px) {
  .political-player { padding: 14px; }
  .home-music-card { min-width: 0; }
  .home-music-card > .card-header { align-items: flex-start; padding: 12px; }
  .home-music-header h3 { display: flex; align-items: flex-start; gap: 7px; font-size: .91rem; line-height: 1.35; overflow-wrap: anywhere; }
  .home-music-header h3 i { flex: 0 0 auto; margin: 1px 0 0; }
  .home-music-header p { line-height: 1.4; overflow-wrap: anywhere; }
  .home-music-card > .card-body { min-width: 0; padding: 12px; }
  .political-main-play { width: 50px; height: 50px; font-size: 17px; }
  .political-now-playing { gap: 9px; margin-bottom: 16px; }
  .political-track-meta strong { font-size: .92rem; }
  .political-track-meta span { font-size: .8rem; }
  .political-download, .political-delete { width: 32px; height: 32px; }
  .political-progress-row { gap: 8px; }
  .political-control-row { gap: 5px; }
  .political-control-row > button { width: 34px; height: 36px; }
  .political-volume { flex: 1 1 54px; min-width: 36px; }
  .political-volume input { max-width: 60px; }
  .political-queue { max-height: 210px; }
  .political-queue-select { padding: 9px 8px; }
  .political-queue-download, .political-queue-admin-delete { width: 37px; }
}

@media (max-width: 360px) {
  .political-player { padding: 11px; }
  .political-control-row { gap: 4px; }
  .political-control-row > button { width: 31px; height: 34px; }
  .political-volume { flex-basis: 42px; }
  .political-volume input { max-width: 48px; }
  .political-queue-title { font-size: .82rem; }
  .political-queue-download, .political-queue-admin-delete { width: 33px; }
}

/* MAP STYLES */
.map-mode-selector {
  display: flex;
  gap: 10px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.btn-map-mode {
  padding: 10px 18px;
  font-size: 0.92rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border-color);
  background: #ffffff;
  color: var(--text-dark);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
  box-shadow: var(--shadow-sm);
}

.btn-map-mode:hover {
  background: #f8fafc;
  border-color: var(--primary-red);
  color: var(--primary-red);
}

.btn-map-mode.active {
  background: linear-gradient(135deg, #b91c1c, #dc2626);
  color: #ffffff;
  border-color: #b91c1c;
  box-shadow: 0 4px 12px rgba(185, 28, 28, 0.25);
}

.map-container {
  height: 540px;
  width: 100%;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 2px solid var(--border-color);
  position: relative;
  z-index: 1;
}

.map-empty-state {
  min-height: 180px;
  padding: 24px;
  border: 2px dashed var(--border-color);
  border-radius: var(--radius-md);
  background: #ffffff;
  color: var(--text-muted);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 10px;
  text-align: center;
}

.map-empty-state i {
  color: var(--primary-red);
  font-size: 1.8rem;
}

.map-empty-state p {
  margin: 0;
}

.custom-map-icon {
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.custom-map-icon:hover {
  transform: scale(1.22);
  z-index: 9999 !important;
}

/* MAP SEARCH TOOLBAR & KP CONTROL */
.map-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  background: #ffffff;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  margin-bottom: 14px;
  align-items: center;
}

.map-toolbar:empty,
.map-toolbar:has(> #admin-add-house-toolbar-btn[style*="display: none"]:only-child),
.map-toolbar:has(> #admin-add-flower-toolbar-btn[style*="display: none"]:only-child) {
  display: none;
}

.map-search-group {
  display: flex;
  flex: 1;
  min-width: 280px;
  gap: 8px;
}

.map-search-input {
  flex: 1;
  padding: 8px 14px;
  border: 1px solid #cbd5e1;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.map-search-input:focus {
  border-color: var(--primary-red);
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.15);
}

.map-kp-select {
  padding: 8px 12px;
  border: 1px solid #cbd5e1;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  background: white;
  color: var(--text-dark);
  cursor: pointer;
  outline: none;
  flex: 1;
  min-width: 220px;
}

.map-kp-select:focus {
  border-color: var(--primary-red);
}

/* PULSE ANIMATION FOR MAP SEARCH MARKER */
@keyframes mapPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.7);
    transform: scale(0.95);
  }
  70% {
    box-shadow: 0 0 0 16px rgba(220, 38, 38, 0);
    transform: scale(1.15);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(220, 38, 38, 0);
    transform: scale(0.95);
  }
}

.search-pulse-marker {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, #dc2626, #991b1b);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 3px solid #ffffff;
  animation: mapPulse 1.8s infinite;
  box-shadow: 0 4px 12px rgba(0,0,0,0.4);
}

.search-house-pulse-marker {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, #cc0d12, #990000);
  color: #ffcc00;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 3px solid #ffffff;
  animation: mapPulse 1.8s infinite;
  box-shadow: 0 4px 14px rgba(204, 13, 18, 0.5);
  font-size: 22px;
  cursor: pointer;
}

.flower-search-pulse-marker {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, #db2777, #be185d);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 3px solid #ffffff;
  animation: mapPulse 1.8s infinite;
  box-shadow: 0 4px 14px rgba(219, 39, 119, 0.5);
  font-size: 22px;
  cursor: pointer;
}

.kp-center-marker {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: white;
  font-weight: 700;
  font-size: 0.78rem;
  border-radius: 20px;
  padding: 4px 10px;
  border: 2px solid white;
  box-shadow: 0 3px 8px rgba(0,0,0,0.3);
  display: flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
  cursor: pointer;
}


/* TABLES FOR MEMBERS */
.table-responsive {
  overflow-x: auto;
  background: var(--bg-white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
}

.custom-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.custom-table th {
  background: var(--dark-red);
  color: white;
  font-weight: 700;
  font-size: 0.88rem;
  padding: 14px 16px;
  text-transform: uppercase;
  border: 1px solid #7f1d1d;
}

.custom-table td {
  padding: 12px 16px;
  border: 1px solid var(--border-color);
  font-size: 0.9rem;
  vertical-align: middle;
}

.custom-table tbody tr:nth-child(even) {
  background: #f8fafc;
}

.custom-table tbody tr:hover {
  background: #fef2f2;
}

.avatar-frame {
  width: 90px;
  height: 135px;
  object-fit: cover;
  border-radius: 6px;
  border: 2px solid #cbd5e1;
  background: #e2e8f0;
  display: block;
  box-shadow: 0 3px 6px rgba(0,0,0,0.12);
  transition: transform 0.2s ease;
}

.avatar-frame:hover {
  transform: scale(1.05);
}

.avatar-frame-3x4 {
  width: 75px;
  height: 110px;
  object-fit: cover;
  border-radius: 6px;
  border: 2px solid #cbd5e1;
  background: #e2e8f0;
  display: block;
  box-shadow: 0 2px 5px rgba(0,0,0,0.12);
  transition: transform 0.2s ease;
}

.avatar-frame-3x4:hover {
  transform: scale(1.05);
}

/* ONLINE FEEDBOX FORM */
.feedback-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

@media (max-width: 768px) {
  .feedback-grid {
    grid-template-columns: 1fr;
  }
}

.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  font-weight: 700;
  font-size: 0.88rem;
  margin-bottom: 6px;
  color: var(--text-main);
}

.form-group label .required {
  color: var(--primary-red);
}

.form-control {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid #cbd5e1;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  transition: border-color 0.2s, box-shadow 0.2s;
  background: #ffffff;
}

.form-control:focus {
  outline: none;
  border-color: var(--primary-red);
  box-shadow: 0 0 0 3px rgba(204, 13, 18, 0.15);
}

textarea.form-control {
  resize: vertical;
  min-height: 180px;
}

.btn-submit {
  background: linear-gradient(135deg, var(--primary-red), var(--dark-red));
  color: white;
  font-weight: 700;
  padding: 12px 28px;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-sm);
}

.btn-submit:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  filter: brightness(1.1);
}

/* BUTTON UTILITIES */
.btn-primary {
  background: var(--primary-red);
  color: white;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.85rem;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.btn-primary:hover {
  background: var(--dark-red);
}

.btn-outline {
  background: transparent;
  color: var(--primary-red);
  border: 1.5px solid var(--primary-red);
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
}

.btn-outline:hover {
  background: #fef2f2;
}

/* CATEGORY TABS */
.category-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
  border-bottom: 2px solid var(--border-color);
  padding-bottom: 10px;
  flex-wrap: wrap;
}

.tab-btn {
  padding: 8px 18px;
  border-radius: var(--radius-sm);
  border: none;
  background: #e2e8f0;
  color: var(--text-main);
  font-weight: 700;
  font-size: 0.88rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.tab-btn.active, .tab-btn:hover {
  background: var(--primary-red);
  color: white;
}

/* Activity news list styled after the supplied sectioned newsletter reference. */
.activity-category-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 26px;
}

.activity-category-nav button {
  padding: 7px 12px;
  border: 1px solid #fecaca;
  border-radius: 999px;
  background: #fff;
  color: #991b1b;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
}

.activity-category-nav button:hover {
  background: #fef2f2;
}

.activities-sections {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 34px 28px;
  align-items: start;
}

.home-activities-sections { gap: 34px 28px; }

.activity-category-section { min-width: 0; }

.activity-category-heading {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 16px;
}

.activity-category-heading::after {
  height: 1px;
  flex: 1;
  background: #991b1b;
  content: "";
}

.activity-category-heading h3 {
  position: relative;
  margin: 0;
  padding: 9px 19px 9px 27px;
  border-radius: 0 24px 24px 0;
  background: linear-gradient(135deg, #dc2626, #b91c1c) !important;
  color: #ffffff !important;
  font-size: 0.91rem;
  font-weight: 800;
  line-height: 1.2;
  white-space: nowrap;
}

.activity-category-heading h3::before {
  position: absolute;
  top: 50%;
  left: 13px;
  width: 3px;
  height: 15px;
  background: #fff;
  content: "";
  transform: translateY(-50%);
}

.activity-news-list { display: grid; gap: 10px; }

.activity-news-item {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  padding: 8px 10px !important;
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 8px !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04) !important;
  min-height: 84px !important;
  transition: all 0.2s ease !important;
  margin-bottom: 0 !important;
}

.activity-news-item:hover {
  border-color: #cbd5e1 !important;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.07) !important;
  transform: translateY(-1px) !important;
}

.activity-news-main {
  display: flex !important;
  flex: 1 1 auto !important;
  gap: 12px !important;
  align-items: center !important;
  text-align: left !important;
  border: none !important;
  background: transparent !important;
  cursor: pointer !important;
  min-width: 0 !important;
  padding: 0 !important;
}

.activity-news-main img {
  width: 110px !important;
  min-width: 110px !important;
  height: 74px !important;
  flex-shrink: 0 !important;
  object-fit: cover !important;
  border-radius: 6px !important;
}

.activity-news-body {
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  flex: 1 1 auto !important;
  min-width: 0 !important;
}

.activity-news-title {
  color: #0f172a !important;
  font-size: 0.88rem !important;
  font-weight: 700 !important;
  line-height: 1.35 !important;
  text-transform: none !important;
  display: -webkit-box !important;
  -webkit-line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  margin-bottom: 4px !important;
}

.activity-news-main:hover .activity-news-title {
  color: #b91c1c !important;
}

.activity-news-meta {
  color: #64748b !important;
  font-size: 0.74rem !important;
  display: flex !important;
  align-items: center !important;
  gap: 5px !important;
  margin-top: 2px !important;
}

.activity-news-admin {
  flex-shrink: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 4px !important;
}

.activity-news-admin button {
  padding: 4px 8px !important;
  font-size: 0.72rem !important;
  border-radius: 4px !important;
}

.activity-empty-state {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.86rem;
}

@media (max-width: 760px) {
  .activities-sections { grid-template-columns: 1fr; gap: 20px; }
}

@media (max-width: 480px) {
  .activity-news-item { padding: 6px 8px !important; gap: 8px !important; min-height: 72px !important; }
  .activity-news-main img { width: 92px !important; min-width: 92px !important; height: 64px !important; }
  .activity-news-title { font-size: 0.82rem !important; line-height: 1.3 !important; }
  .activity-category-heading h3 { font-size: 0.82rem; padding-right: 14px; }
}

/* MODAL POPUP */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 100000 !important;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.modal-overlay.active {
  display: flex !important;
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
}

.modal-content {
  background: white;
  width: 100%;
  max-width: 700px;
  max-height: 90vh;
  border-radius: var(--radius-md);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
  overflow-y: auto;
  position: relative;
  animation: modalScale 0.25s ease;
}

@keyframes modalScale {
  from { transform: scale(0.92); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.modal-header {
  padding: 14px 20px;
  background: var(--dark-red);
  color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 2px solid rgba(0,0,0,0.1);
}

.modal-header h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--gold);
  margin: 0;
}

.close-modal-btn {
  background: rgba(255, 255, 255, 0.18);
  border: none;
  color: #ffffff;
  font-size: 1.5rem;
  line-height: 1;
  width: 38px;
  height: 38px;
  min-width: 38px;
  min-height: 38px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  z-index: 100;
  margin: -4px -6px -4px 0;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.close-modal-btn:hover, .close-modal-btn:focus {
  background: rgba(255, 255, 255, 0.38);
  color: #ffffff;
  transform: scale(1.12);
  outline: none;
}

.close-modal-btn:active {
  transform: scale(0.92);
  background: rgba(255, 255, 255, 0.55);
}

.login-close-btn {
  position: absolute;
  top: 14px;
  right: 16px;
  background: #f1f5f9;
  color: #475569;
  border: 1px solid #cbd5e1;
}

.login-close-btn:hover, .login-close-btn:focus {
  background: #e2e8f0;
  color: #0f172a;
}

.modal-body {
  padding: 24px;
}

/* FOOTER */
.site-footer {
  background: linear-gradient(135deg, #7f1d1d 0%, #450a0a 100%);
  color: white;
  padding: 36px 0 20px;
  border-top: 4px solid var(--gold);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 32px;
  margin-bottom: 24px;
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

.footer-info h3 {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--gold);
  margin-bottom: 12px;
  text-transform: uppercase;
}

.footer-info p {
  font-size: 0.9rem;
  margin-bottom: 8px;
  color: #f3f4f6;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #1877f2;
  color: white;
  padding: 8px 16px;
  border-radius: 20px;
  font-weight: 600;
  font-size: 0.85rem;
  margin-top: 10px;
  transition: transform 0.2s;
}

.social-link:hover {
  transform: translateY(-2px);
}

.footer-visitor-stats {
  grid-column: 1 / -1;
  padding: 9px 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.footer-visitor-stats h4 {
  margin-bottom: 7px;
  color: var(--gold);
  font-size: 0.74rem;
  letter-spacing: 0.04em;
}

.footer-visitor-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.footer-visitor-grid > div {
  display: flex;
  flex-direction: row;
  align-items: baseline;
  gap: 6px;
}

.visitor-stat-value {
  color: #fff;
  font-size: 0.95rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.visitor-stat-label {
  color: #d1d5db;
  font-size: 0.72rem;
}

.visitor-stat-label .fa-circle {
  color: #4ade80;
  font-size: 0.55rem;
  vertical-align: 2px;
}

.kplookup-pagination,
.kplookup-detail-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 22px 0;
}

.kplookup-page-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 38px;
  min-height: 38px;
  padding: 7px 11px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  background: var(--bg-card);
  color: var(--text-main);
  cursor: pointer;
}

.kplookup-page-btn.active {
  border-color: var(--primary-red);
  background: var(--primary-red);
  color: #fff;
  font-weight: 700;
}

.kplookup-page-btn:disabled,
.kplookup-detail-pagination button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.kplookup-page-summary {
  padding: 0 4px;
  color: var(--text-muted);
  font-size: 0.84rem;
}

.kplookup-detail-card { max-width: 1000px; margin: 0 auto; }

.kplookup-detail-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 22px 0;
}

.kplookup-detail-kicker {
  color: var(--primary-red);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.kplookup-detail-heading h3 { margin: 4px 0; font-size: 1.55rem; }
.kplookup-detail-heading p { margin: 0; color: var(--text-muted); }

.kplookup-detail-image {
  display: block;
  width: 100%;
  max-height: 380px;
  margin: 0 0 22px;
  border-radius: 12px;
  object-fit: cover;
}

.kplookup-detail-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 18px 0 28px;
}

.kplookup-detail-facts > div {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 14px;
  border: 1px solid var(--border-color);
  border-radius: 10px;
  background: var(--bg-card);
}

.kplookup-detail-facts span { color: var(--text-muted); font-size: 0.8rem; }
.kplookup-detail-facts strong { color: var(--text-main); line-height: 1.5; }
.kplookup-officials-heading { margin: 24px 0 12px; color: var(--text-main); }
.kplookup-officials-table { min-width: 620px; }

.kplookup-detail-pagination {
  justify-content: space-between;
  margin: 24px 0 0;
  padding-top: 18px;
  border-top: 1px solid var(--border-color);
}

.kplookup-detail-pagination span { color: var(--text-muted); font-size: 0.85rem; }

@media (max-width: 480px) {
  .footer-visitor-grid { grid-template-columns: 1fr; gap: 4px; }
  .footer-visitor-grid > div { justify-content: space-between; }
  .kplookup-detail-heading { align-items: flex-start; flex-direction: column; }
  .kplookup-detail-facts { grid-template-columns: 1fr; }
  .kplookup-detail-pagination { gap: 8px; }
  .kplookup-detail-pagination span { order: -1; width: 100%; text-align: center; }
}

.footer-copyright {
  text-align: center;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 0.8rem;
  color: #9ca3af;
}

/* SEARCH INPUT */
.search-box {
  position: relative;
  width: 250px;
}

.search-box input {
  padding-right: 32px;
}

.search-box i {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
}

/* ==========================================================================
   AUTHENTICATION & ROLE-BASED ACCESS CONTROL (RBAC) STYLES
   ========================================================================== */

.top-bar-auth {
  display: flex;
  align-items: center;
  gap: 10px;
}

.auth-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.2;
}

.auth-badge-viewer {
  background: rgba(2, 132, 199, 0.15);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.3);
}

.auth-badge-admin {
  background: rgba(239, 68, 68, 0.2);
  color: #fca5a5;
  border: 1px solid rgba(239, 68, 68, 0.4);
  box-shadow: 0 0 8px rgba(239, 68, 68, 0.3);
}

.btn-auth-login {
  background: linear-gradient(135deg, #eab308, #ca8a04);
  color: #1e293b;
  border: none;
  padding: 5px 14px;
  border-radius: 6px;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.btn-auth-login:hover {
  background: linear-gradient(135deg, #fde047, #eab308);
  transform: translateY(-1px);
}

.btn-auth-logout {
  background: rgba(255, 255, 255, 0.15);
  color: #f1f5f9;
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: all 0.2s ease;
}

.btn-auth-logout:hover {
  background: rgba(239, 68, 68, 0.8);
  color: white;
  border-color: #ef4444;
}

/* SIMPLE LOGIN MODAL MATCHING WEBSITE PRIMARY COLOR SCHEME (ĐỎ & VÀNG MTTQ) */
.login-modal-card {
  max-width: 440px !important;
  border-radius: 24px !important;
  background: #ffffff;
  padding: 32px 28px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.25);
  border: 1px solid #fee2e2;
  text-align: center;
  position: relative;
}

.login-card-title {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--primary-red);
  line-height: 1.35;
  margin-bottom: 4px;
  text-transform: uppercase;
}

.login-card-subtitle {
  font-size: 0.88rem;
  color: #64748b;
  font-weight: 500;
}

.simple-input {
  border-radius: 12px !important;
  border: 1px solid #cbd5e1 !important;
  background: #f8fafc !important;
  padding: 12px 16px !important;
  font-size: 0.95rem !important;
  color: #1e293b !important;
}

.simple-input:focus {
  border-color: var(--primary-red) !important;
  background: #ffffff !important;
  box-shadow: 0 0 0 3px rgba(204, 13, 18, 0.15) !important;
}

.btn-simple-login {
  width: 100%;
  background: linear-gradient(135deg, var(--primary-red), var(--dark-red));
  color: white;
  font-size: 1rem;
  font-weight: 700;
  padding: 12px;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(204, 13, 18, 0.3);
}

.btn-simple-login:hover {
  background: linear-gradient(135deg, #b91c1c, #7f1d1d);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(204, 13, 18, 0.4);
}

.simple-divider {
  display: flex;
  align-items: center;
  text-align: center;
  margin: 18px 0;
  color: #94a3b8;
  font-size: 0.85rem;
}

.simple-divider::before, .simple-divider::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid #e2e8f0;
}

.simple-divider span {
  padding: 0 12px;
}

.btn-simple-guest {
  width: 100%;
  background: #f8fafc;
  color: #334155;
  font-size: 0.92rem;
  font-weight: 600;
  padding: 12px;
  border-radius: 12px;
  border: 1.5px solid #e2e8f0;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-simple-guest:hover {
  background: #fef2f2;
  color: var(--primary-red);
  border-color: #fecdd3;
}

.login-modal-header {
  background: linear-gradient(135deg, var(--primary-red), #991b1b);
  color: white;
  padding: 16px 20px;
}

.login-modal-body {
  padding: 20px;
}

.login-tabs {
  display: flex;
  background: #f1f5f9;
  padding: 4px;
  border-radius: 8px;
  margin-bottom: 20px;
  gap: 4px;
}

.login-tab-btn {
  flex: 1;
  padding: 10px 14px;
  border: none;
  background: transparent;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-muted);
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s ease;
}

.login-tab-btn.active {
  background: white;
  color: var(--primary-red);
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.login-tab-content {
  display: none;
}

.login-tab-content.active {
  display: block;
}

.login-tab-desc {
  font-size: 0.88rem;
  color: #475569;
  line-height: 1.5;
  margin-bottom: 16px;
  background: #f8fafc;
  padding: 10px 12px;
  border-radius: 6px;
  border-left: 3px solid var(--primary-red);
}

.viewer-submit-btn {
  background: linear-gradient(135deg, #0284c7, #0369a1);
}

.viewer-submit-btn:hover {
  background: linear-gradient(135deg, #0369a1, #075985);
}

.admin-submit-btn {
  background: linear-gradient(135deg, var(--primary-red), #991b1b);
}

.admin-submit-btn:hover {
  background: linear-gradient(135deg, #991b1b, #7f1d1d);
}

.login-error-msg {
  background: #fef2f2;
  color: #dc2626;
  border: 1px solid #fecdd3;
  padding: 10px;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-top: 10px;
}

.credential-hint-box {
  margin-top: 20px;
  background: #fffbeb;
  border: 1px dashed #f59e0b;
  border-radius: 8px;
  padding: 12px 14px;
  display: flex;
  gap: 12px;
  font-size: 0.82rem;
  color: #92400e;
  line-height: 1.5;
}

.credential-hint-box i {
  font-size: 1.3rem;
  color: #f59e0b;
  margin-top: 2px;
}

.credential-hint-box code {
  background: #fef3c7;
  padding: 1px 5px;
  border-radius: 4px;
  font-family: monospace;
  color: #78350f;
}

/* ADMIN CARD EDIT / DELETE CONTROLS */
.admin-card-actions {
  display: flex;
  gap: 6px;
  margin-top: 8px;
}

.btn-edit-news, .btn-delete-news {
  padding: 4px 8px;
  font-size: 0.75rem;
  border-radius: 4px;
  border: none;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: opacity 0.2s;
}

.btn-edit-news {
  background: #0284c7;
  color: white;
}

.btn-delete-news {
  background: #dc2626;
  color: white;
}

.btn-edit-news:hover, .btn-delete-news:hover {
  opacity: 0.85;
}

/* ==========================================================================
   MOBILE & TABLET RESPONSIVE OPTIMIZATIONS (ĐIỆN THOẠI & MÁY TÍNH BẢNG)
   ========================================================================== */

/* MOBILE NAV TOGGLE & BACKDROP OVERLAY */
.mobile-nav-header {
  display: none;
  align-items: center;
  justify-content: space-between;
  min-height: 58px;
  padding: 8px 16px;
  background: var(--dark-red);
  color: white;
  border-bottom: 2px solid var(--gold);
}

.mobile-nav-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--gold);
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 8px;
}

.mobile-nav-toggle {
  background: var(--gold);
  color: var(--dark-red);
  border: none;
  min-height: 40px;
  padding: 7px 14px;
  border-radius: var(--radius-sm);
  font-weight: 800;
  font-size: 0.85rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  transition: all 0.2s ease;
}

.mobile-nav-toggle:active {
  transform: scale(0.96);
}

.nav-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(2px);
  z-index: 95;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.nav-backdrop.active {
  opacity: 1;
  visibility: visible;
}

@media (max-width: 992px) {
  .mobile-nav-header {
    display: flex;
  }

  .main-nav {
    position: sticky;
    top: 0;
    z-index: 100;
    overflow: visible;
  }

  .nav-container {
    padding: 0 !important;
  }

  .nav-list {
    display: flex;
    flex-direction: column;
    max-height: 0;
    overflow: hidden;
    background: #7f1d1d;
    transition: max-height 0.35s ease-in-out;
    box-shadow: 0 10px 20px rgba(0,0,0,0.25);
  }

  .main-nav.nav-open .nav-list {
    max-height: calc(100vh - 58px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    border-bottom: 3px solid var(--gold);
    padding-bottom: 32px;
  }

  @supports (height: 100dvh) {
    .main-nav.nav-open .nav-list {
      max-height: calc(100dvh - 58px);
    }
  }

  .nav-item {
    width: 100%;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .nav-link {
    min-height: 54px;
    padding: 12px 18px;
    font-size: 0.92rem;
    line-height: 1.35;
    justify-content: flex-start;
    gap: 12px;
    width: 100%;
    border-right: none;
    -webkit-tap-highlight-color: rgba(255, 204, 0, 0.2);
    touch-action: manipulation;
    user-select: none;
    cursor: pointer;
  }

  .nav-link > i:first-child {
    width: 22px;
    flex: 0 0 22px;
    text-align: center;
  }

  .nav-link .dropdown-icon {
    margin-left: auto;
    flex: 0 0 auto;
    font-size: 0.82rem;
    transition: transform 0.25s ease, color 0.25s ease;
  }

  /* Khi mục menu sổ ra trên điện thoại (Dropdown Accordion Open) */
  .nav-item.open-mobile > .nav-link {
    background: #5c1414 !important;
    color: var(--gold) !important;
    border-left: 4px solid var(--gold);
    padding-left: 14px;
  }

  .nav-item.open-mobile .dropdown-icon {
    transform: rotate(180deg);
    color: var(--gold);
  }

  .dropdown-menu {
    position: static !important;
    width: 100% !important;
    min-width: 100% !important;
    max-height: 0;
    overflow: hidden;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    background: #470c0c !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: inset 0 3px 8px rgba(0,0,0,0.3) !important;
    transition: max-height 0.35s ease-in-out, padding 0.3s ease;
    padding: 0;
    margin: 0;
    list-style: none;
  }

  .nav-item.open-mobile .dropdown-menu {
    max-height: 800px;
    padding: 4px 0 6px 0;
  }

  .dropdown-menu li {
    list-style: none;
    margin: 0;
    padding: 0;
  }

  .dropdown-menu li a {
    color: #fef2f2 !important;
    min-height: 46px;
    padding: 11px 20px 11px 36px;
    font-size: 0.88rem;
    line-height: 1.4;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    -webkit-tap-highlight-color: rgba(255, 204, 0, 0.2);
    touch-action: manipulation;
    user-select: none;
    transition: all 0.2s ease;
    text-decoration: none;
  }

  .dropdown-menu li a::before {
    content: "\f105";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 0.8rem;
    color: var(--gold);
    opacity: 0.85;
    transition: transform 0.2s ease, opacity 0.2s ease;
    flex-shrink: 0;
  }

  .dropdown-menu li:last-child a {
    border-bottom: none;
  }

  .dropdown-menu li a:hover,
  .dropdown-menu li a:active {
    background: rgba(255, 204, 0, 0.16) !important;
    color: var(--gold) !important;
    padding-left: 42px;
  }

  .dropdown-menu li a:hover::before,
  .dropdown-menu li a:active::before {
    opacity: 1;
    transform: translateX(3px);
  }
}

@media (max-width: 768px) {
  /* Top Utility Bar on Mobile */
  .top-bar {
    padding: 6px 0 !important;
  }

  .top-bar-inner {
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    text-align: center !important;
    gap: 6px !important;
    padding: 0 10px !important;
  }

  .top-bar-info {
    font-size: 0.78rem !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 3px !important;
    text-align: center !important;
    width: 100% !important;
  }

  .top-bar-info span {
    margin-right: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    white-space: normal !important;
    word-break: break-word !important;
  }

  .admin-toggle-btn {
    font-size: 0.8rem;
    padding: 6px 14px;
  }

  /* Header Banner */
  .header-banner {
    padding: 16px 0 14px;
  }

  .banner-content {
    flex-direction: column;
    text-align: center;
    gap: 8px;
  }

  .logo-img {
    width: 70px;
    height: 70px;
  }

  .header-titles h1 {
    font-size: 1.15rem;
    font-weight: 800;
    line-height: 1.35;
    letter-spacing: 0.3px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
  }

  .header-titles h2 {
    font-size: 0.95rem;
    font-weight: 700;
    margin-top: 3px;
    letter-spacing: 0.2px;
  }

  /* Marquee Ticker on Mobile: Always smooth, complete and never frozen */
  .news-ticker {
    padding: 7px 0 !important;
    background: #fffbeb !important;
    border-bottom: 1px solid #fde68a !important;
  }

  .news-ticker .container {
    display: flex !important;
    align-items: center !important;
    flex-wrap: nowrap !important;
    gap: 8px !important;
    padding-left: 12px !important;
    padding-right: 12px !important;
    width: 100% !important;
    max-width: 100% !important;
    overflow: hidden !important;
  }

  .ticker-title {
    font-size: 0.74rem !important;
    padding: 3px 8px !important;
    gap: 4px !important;
    border-radius: 4px !important;
    flex-shrink: 0 !important;
    white-space: nowrap !important;
    box-shadow: 0 1px 3px rgba(185, 28, 28, 0.25) !important;
  }

  .ticker-content {
    font-size: 0.86rem !important;
    font-weight: 600 !important;
    color: #78350f !important;
    flex: 1 1 auto !important;
    min-width: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    overflow: hidden !important;
    white-space: nowrap !important;
    display: block !important;
    line-height: 1.4 !important;
  }

  .admin-ticker-btn-text {
    display: none;
  }

  /* Card Headers on Mobile: Titles and Subtitles never squish each other */
  .card-header {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 6px !important;
    padding: 12px 14px !important;
  }

  .card-header h3 {
    font-size: 1.0rem !important;
    line-height: 1.35 !important;
    width: 100% !important;
    margin: 0 !important;
    word-break: break-word !important;
  }

  .card-header span,
  .card-header .card-subtitle,
  .card-header p {
    font-size: 0.8rem !important;
    line-height: 1.35 !important;
    width: 100% !important;
    margin: 0 !important;
  }

  /* Main Wrapper Padding */
  .main-wrapper {
    padding: 16px 0 36px;
  }

  /* Section Header */
  .section-header {
    flex-direction: column;
    align-items: flex-start;
    padding: 14px 16px;
    gap: 10px;
  }

  .section-title-group h2 {
    font-size: 1.1rem;
  }

  .section-subtitle {
    font-size: 0.82rem;
  }

  .search-box {
    width: 100%;
  }

  /* Map Container & Map Toolbar */
  .map-container {
    height: 360px;
  }

  .map-toolbar {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding: 10px;
  }

  .map-search-group {
    width: 100%;
    min-width: 0;
    flex-direction: column;
  }

  .map-search-input, .map-kp-select {
    width: 100%;
    font-size: 16px !important;
  }

  /* 2-Column Grid to Single Column */
  .grid-2col {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }

  /* Prevent auto-zoom on iOS Safari input focus */
  .form-control, input[type="text"], input[type="password"], input[type="number"], select, textarea {
    font-size: 16px !important;
  }

  /* Category Filter Tabs */
  .category-tabs {
    gap: 6px;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 6px;
  }

  .tab-btn {
    padding: 8px 12px;
    font-size: 0.8rem;
  }

  /* Mobile Grid Containers */
  #news-grid-container,
  #kdc-grid-container,
  #ansinh-grid-container {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }

  /* Table Touch Scroll & Responsive Padding */
  .table-responsive {
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    touch-action: pan-x pan-y;
    border-radius: var(--radius-md);
  }

  .custom-table th, .custom-table td {
    padding: 10px 10px !important;
    font-size: 0.84rem !important;
  }

  .avatar-frame {
    width: 70px;
    height: 105px;
  }

  .avatar-frame-3x4 {
    width: 60px;
    height: 90px;
  }

  /* Modals Mobile Sizing & Touch Scroll */
  .modal-content {
    width: 95vw !important;
    max-width: 95vw !important;
    max-height: 90vh !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
    padding: 16px 14px !important;
    border-radius: 14px !important;
  }

  .modal-body {
    padding: 12px 4px !important;
    max-height: calc(90vh - 75px);
    overflow-y: auto;
  }

  /* Stack modal form grid fields vertically */
  .modal-body form div[style*="grid-template-columns"],
  .modal-body div[style*="grid-template-columns"] {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }

  .login-modal-card {
    padding: 24px 16px;
    width: 92vw;
  }

  /* Stat Boxes on Mobile: 2-column compact grid */
  .stats-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
  }

  .stat-box {
    padding: 12px 10px !important;
    gap: 10px !important;
  }

  .stat-icon {
    width: 40px !important;
    height: 40px !important;
    font-size: 1.1rem !important;
    border-radius: 10px !important;
  }

  .stat-num {
    font-size: 1.15rem !important;
  }

  .stat-label {
    font-size: 0.72rem !important;
    line-height: 1.2;
  }

  /* Leaflet Map Popups on Mobile */
  .leaflet-popup-content-wrapper {
    padding: 4px !important;
  }
  .leaflet-popup-content div[style*="width: 250px"],
  .leaflet-popup-content div[style*="width: 230px"] {
    width: 210px !important;
  }
}

@media (max-width: 480px) {
  .news-ticker .container {
    gap: 6px !important;
    padding-left: 8px !important;
    padding-right: 8px !important;
  }

  .ticker-title {
    font-size: 0.68rem;
    padding: 2.5px 6px;
    gap: 3px;
  }

  .ticker-content {
    font-size: 0.84rem !important;
    flex: 1 1 auto !important;
    width: 100% !important;
  }

  .mobile-nav-header {
    padding-right: 12px;
    padding-left: 12px;
  }

  .mobile-nav-title {
    font-size: 0.82rem;
    gap: 7px;
  }

  .mobile-nav-toggle {
    padding-right: 12px;
    padding-left: 12px;
    font-size: 0.82rem;
  }

  .nav-link {
    padding-right: 14px;
    padding-left: 14px;
    font-size: 0.9rem;
  }

  .map-container {
    height: 310px;
  }

  #modal-preview-map {
    height: 220px !important;
  }

  .header-titles h1 {
    font-size: 0.96rem;
  }

  .header-titles h2 {
    font-size: 0.8rem;
  }

  .btn-submit, .btn-primary {
    font-size: 0.82rem;
    padding: 10px 14px;
    width: 100%;
    justify-content: center;
  }

  .top-bar-auth {
    width: 100%;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
  }

  /* Featured Article Overlay text on small screens */
  .featured-img-container {
    height: 280px;
  }

  .featured-overlay {
    padding: 16px 12px 12px;
  }

  .featured-title {
    font-size: 1.05rem;
    line-height: 1.35;
  }
}

/* Touch & Smooth Mobile Scroll Enhancements */
html {
  scroll-behavior: smooth;
  -webkit-tap-highlight-color: transparent;
}

body {
  overflow-x: hidden;
}

/* ARTICLE DETAIL CONTENT & VISUAL WYSIWYG EDITOR STYLING */
#article-detail-content p,
.article-detail-body p,
.page-section p {
  margin-bottom: 16px;
  text-indent: 2em;
  text-align: justify;
  line-height: 1.8;
}

.rich-editor-visual {
  min-height: 180px;
  max-height: 450px;
  overflow-y: auto;
  padding: 12px 16px;
  border: 1px solid #cbd5e1;
  border-radius: 0 0 6px 6px;
  background: #ffffff;
  font-size: 0.98rem;
  line-height: 1.8;
  color: #1e293b;
  outline: none;
}

.rich-editor-visual p,
.rich-editor-visual div,
.article-body-content p,
.article-body-content div {
  text-indent: 0 !important;
  text-align: justify;
}

.rich-editor-visual p,
.article-body-content p {
  margin: 0 0 16px;
}

.rich-editor-visual:focus {
  border-color: var(--primary-red);
  box-shadow: 0 0 0 3px rgba(204, 13, 18, 0.15);
}

.rich-editor-visual:empty::before {
  content: attr(data-placeholder);
  color: #94a3b8;
  font-style: italic;
  pointer-events: none;
}

/* UNIFIED WYSIWYG EDITOR & ARTICLE DETAIL BODY STYLES */
.rich-editor-visual,
.article-body-content,
.article-detail-body {
  font-size: 1.02rem;
  line-height: 1.85;
  color: #334155;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.rich-editor-visual::after,
.article-body-content::after,
.article-detail-body::after {
  content: "";
  display: table;
  clear: both;
}

.rich-editor-visual p,
.article-body-content p,
.article-detail-body p {
  margin-bottom: 14px;
  line-height: 1.85;
}

/* FIGURE & IMAGE ALIGNMENT STANDARDS */
#article-detail-content figure,
.article-body-content figure,
.article-detail-body figure,
.rich-editor-visual figure {
  margin: 20px 0;
  clear: both;
}

/* Center aligned figure */
#article-detail-content figure.align-center,
.article-body-content figure.align-center,
.article-detail-body figure.align-center,
.rich-editor-visual figure.align-center {
  margin: 24px auto;
  text-align: center;
  width: 100%;
  clear: both;
}

/* Left floated figure */
#article-detail-content figure.align-left,
.article-body-content figure.align-left,
.article-detail-body figure.align-left,
.rich-editor-visual figure.align-left {
  float: left;
  max-width: 48%;
  margin: 8px 20px 14px 0;
  text-align: center;
}

/* Right floated figure */
#article-detail-content figure.align-right,
.article-body-content figure.align-right,
.article-detail-body figure.align-right,
.rich-editor-visual figure.align-right {
  float: right;
  max-width: 48%;
  margin: 8px 0 14px 20px;
  text-align: center;
}

/* RESET FIGURE FLOATS ON MOBILE SCREENS */
@media (max-width: 768px) {
  #article-detail-content figure.align-left,
  #article-detail-content figure.align-right,
  .article-body-content figure.align-left,
  .article-body-content figure.align-right,
  .article-detail-body figure.align-left,
  .article-detail-body figure.align-right {
    float: none !important;
    max-width: 100% !important;
    margin: 16px 0 !important;
    display: block !important;
  }
}

/* Unified image styling */
#article-detail-content figure img,
#article-detail-content img.article-cover-img,
.article-body-content figure img,
.article-body-content img,
.article-detail-body img,
.rich-editor-visual figure img,
.rich-editor-visual img {
  width: 100%;
  max-height: 460px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  display: block;
  margin: 0 auto;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

#article-detail-content figure img:hover,
#article-detail-content img.article-cover-img:hover,
.article-body-content figure img:hover,
.article-detail-body img:hover,
.rich-editor-visual figure img:hover {
  transform: scale(1.01);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

/* Caption styling */
#article-detail-content figcaption,
.article-body-content figcaption,
.article-detail-body figcaption,
.rich-editor-visual figcaption {
  font-size: 0.88rem;
  color: #64748b;
  margin-top: 8px;
  font-style: italic;
  text-align: center;
  font-weight: 500;
}

/* LEAFLET MAP LAYER CONTROL STYLING */
.leaflet-control-layers {
  border-radius: 8px !important;
  box-shadow: 0 4px 15px rgba(0,0,0,0.15) !important;
  border: 1px solid #cbd5e1 !important;
  padding: 6px 10px !important;
  background: rgba(255, 255, 255, 0.95) !important;
  backdrop-filter: blur(4px);
  font-family: inherit !important;
}

.leaflet-control-layers-expanded {
  padding: 10px 14px !important;
}

.leaflet-control-layers-base label {
  font-size: 0.82rem !important;
  font-weight: 600 !important;
  color: #1e293b !important;
  margin-bottom: 6px !important;
  cursor: pointer;
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
}

.leaflet-control-layers-base label input {
  cursor: pointer;
}

/* MOBILE PERFORMANCE & TOUCH OPTIMIZATIONS FOR LEAFLET MAPS */
@media (max-width: 768px) {
  .map-container {
    height: 400px !important;
    border-radius: 10px;
    touch-action: pan-x pan-y;
  }
  
  .map-toolbar {
    flex-direction: column;
    gap: 8px;
    padding: 10px;
  }
  
  .map-search-group {
    width: 100%;
    flex-direction: column;
    gap: 8px;
  }
  
  .map-search-input {
    width: 100%;
    min-height: 42px;
    font-size: 0.85rem;
    padding: 8px 12px;
  }

  .map-kp-select {
    width: 100%;
    min-height: 42px;
    font-size: 0.85rem;
    padding: 8px 12px;
  }

  .map-toolbar .btn-primary {
    width: 100%;
    min-height: 42px;
    justify-content: center;
    font-size: 0.85rem;
  }

  .kp-boundary-badge-icon div {
    font-size: 0.65rem !important;
    padding: 2px 5px !important;
    box-shadow: 0 1px 4px rgba(0,0,0,0.25) !important;
  }
}
}

/* Live Address Autocomplete Dropdown (Google Maps style) */
.address-suggestions-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 99999;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 0 0 8px 8px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.18);
  max-height: 240px;
  overflow-y: auto;
  margin-top: 2px;
}

.address-suggestion-item {
  padding: 10px 14px;
  cursor: pointer;
  font-size: 0.88rem;
  border-bottom: 1px solid #f1f5f9;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #1e293b;
  transition: background 0.15s ease;
}

.address-suggestion-item:last-child {
  border-bottom: none;
}

.address-suggestion-item:hover, .address-suggestion-item:active {
  background: #f0f9ff;
  color: #0284c7;
}

.address-suggestion-item i {
  color: #0284c7;
  font-size: 1rem;
  width: 20px;
  text-align: center;
}

/* MAP BOUNDARY LEGEND & BADGE STYLES */
.kp-map-boundary-legend {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 8px 12px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.16);
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 0.78rem;
  color: #1e293b;
  max-width: 260px;
  margin-left: 10px !important;
  margin-bottom: 10px !important;
  pointer-events: auto;
}

.kp-map-boundary-legend .legend-header {
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 6px;
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  gap: 6px;
  border-bottom: 1px solid #e2e8f0;
  padding-bottom: 4px;
}

.kp-map-boundary-legend .legend-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
  font-size: 0.75rem;
  color: #334155;
}

.kp-map-boundary-legend .legend-stroke-line {
  display: inline-block;
  width: 22px;
  height: 5px;
  border-radius: 3px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

.kp-map-boundary-legend .legend-color-box {
  display: inline-block;
  width: 18px;
  height: 12px;
  border-radius: 3px;
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.45), rgba(59, 130, 246, 0.45));
  border: 1.5px dashed #475569;
}

.kp-boundary-badge-icon .kp-badge-inner {
  transition: transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.22s ease;
}

.kp-boundary-badge-icon:hover .kp-badge-inner {
  transform: scale(1.15);
  box-shadow: 0 6px 16px rgba(0,0,0,0.5) !important;
  z-index: 9999;
}

@media (max-width: 768px) {
  .map-container {
    height: min(52vh, 420px) !important;
    min-height: 300px;
  }

  .kp-map-boundary-legend {
    max-width: calc(100vw - 32px);
    padding: 6px 9px;
    margin-left: 8px !important;
    margin-top: 6px !important;
    margin-bottom: 0 !important;
    font-size: 0.68rem;
  }

  .kp-map-boundary-legend .legend-header {
    margin-bottom: 4px;
    padding-bottom: 3px;
    font-size: 0.7rem;
  }

  .kp-map-boundary-legend .legend-row {
    gap: 6px;
    margin-bottom: 2px;
    font-size: 0.66rem;
    line-height: 1.2;
  }

  .kp-map-boundary-legend .legend-stroke-line {
    width: 18px;
    flex: 0 0 18px;
  }

  .leaflet-control-zoom a {
    width: 38px !important;
    height: 38px !important;
    line-height: 38px !important;
  }

  .leaflet-control-layers {
    min-width: 40px;
    min-height: 40px;
  }

  .leaflet-control-attribution {
    max-width: calc(100vw - 64px);
    white-space: normal;
    text-align: right;
    font-size: 9px;
    line-height: 1.2;
  }
}

@media (max-width: 480px) {
  .map-container {
    height: min(50vh, 400px) !important;
    min-height: 280px;
  }
}


/* =========================================================
   THỐNG NHẤT FONT CHỮ, MÀU SẮC VÀ CẤU TRÚC DỮ LIỆU ĐƯỢC THÊM
   ========================================================= */

/* 1. Đồng bộ Font chữ toàn hệ thống */
body, button, input, select, textarea, .card, .modal-body, .custom-table {
  font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif !important;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* 2. Chuẩn hóa tiêu đề các khối dữ liệu (Màu đỏ Mặt trận nổi bật) */
.section-header h2,
.section-title-group h2 {
  color: var(--primary-red, #cc0d12) !important;
  letter-spacing: -0.2px;
}

.card-header h3 {
  color: var(--primary-red, #cc0d12);
  letter-spacing: -0.2px;
}

.kplookup-detail-heading h3,
.kplookup-officials-heading {
  color: var(--primary-red, #cc0d12);
}

/* 3. Chuẩn hóa thẻ bài viết / mô hình / công trình mới thêm */
.activity-news-item,
.card {
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #ffffff;
  box-shadow: 0 2px 6px rgba(0,0,0,0.04);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.activity-news-item:hover,
.kplookup-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.08);
}

/* 4. Đồng bộ màu chữ bảng dữ liệu cán bộ - tiêu đề bảng chữ trắng nền đỏ, nội dung rõ nét */
.custom-table th,
.kplookup-officials-table th {
  color: #ffffff !important;
}

.kplookup-officials-table td {
  color: #000000 !important;
}

.kplookup-officials-table a {
  color: #000000 !important;
  text-decoration: none !important;
  font-weight: 600 !important;
}

/* 5. Chuẩn hóa nội dung chi tiết bài viết (WYSIWYG Sanitization) */
.article-body-content,
.article-body-content p,
.article-body-content span,
.article-body-content div {
  font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif !important;
  color: #1e293b !important;
  line-height: 1.85 !important;
}

.article-body-content p {
  margin-bottom: 14px !important;
  text-align: justify !important;
  font-size: 1.0rem !important;
}

.article-body-content img {
  max-width: 100% !important;
  height: auto !important;
  border-radius: 8px !important;
  margin: 16px auto !important;
  display: block !important;
  box-shadow: 0 3px 10px rgba(0,0,0,0.08) !important;
}

.article-body-content figcaption {
  font-size: 0.85rem !important;
  color: #64748b !important;
  text-align: center !important;
  font-style: italic !important;
  margin-top: 6px !important;
  margin-bottom: 16px !important;
}

/* 6. Đồng bộ nút bấm hành trị viên (Sửa / Xóa) gọn gàng */
.btn-edit-news,
.btn-delete-news,
.activity-news-admin button {
  padding: 5px 12px !important;
  border-radius: 6px !important;
  font-size: 0.78rem !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 5px !important;
  transition: all 0.2s ease !important;
}

/* =========================================================
   TIÊU ĐỀ BÀI VIẾT NỔI BẬT TRÊN ẢNH BÌA (HIGH CONTRAST & READABLE)
   ========================================================= */
.featured-overlay {
  position: absolute !important;
  bottom: 0 !important;
  left: 0 !important;
  right: 0 !important;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.75) 55%, rgba(0, 0, 0, 0.3) 80%, rgba(0, 0, 0, 0) 100%) !important;
  padding: 30px 22px 18px !important;
  color: #ffffff !important;
  z-index: 2 !important;
  pointer-events: auto !important;
}

.featured-title {
  font-size: 1.45rem !important;
  font-weight: 800 !important;
  line-height: 1.38 !important;
  margin-bottom: 8px !important;
  color: #ffffff !important;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.9), 0 1px 2px rgba(0, 0, 0, 0.9) !important;
  letter-spacing: 0.2px !important;
  display: -webkit-box !important;
  -webkit-line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
}

.featured-badge {
  background: #dc2626 !important;
  color: #ffffff !important;
  font-size: 0.75rem !important;
  font-weight: 800 !important;
  padding: 4px 10px !important;
  border-radius: 4px !important;
  text-transform: uppercase !important;
  display: inline-block !important;
  margin-bottom: 8px !important;
  letter-spacing: 0.5px !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.5) !important;
  border: 1px solid rgba(255, 255, 255, 0.25) !important;
}

.featured-date {
  font-size: 0.85rem !important;
  color: #f1f5f9 !important;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8) !important;
  font-weight: 500 !important;
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
}

.featured-date i {
  color: var(--gold, #fbbf24) !important;
}

@media (max-width: 768px) {
  .featured-overlay {
    padding: 24px 14px 14px !important;
  }
  .featured-title {
    font-size: 1.15rem !important;
    line-height: 1.35 !important;
  }
}

/* COMPACT HOMEPAGE SIDEBAR & TABS */
.home-side-news-card {
  margin-bottom: 18px !important;
}

.home-side-news-header {
  padding: 6px 8px !important;
  background: #f8fafc !important;
  border-bottom: 1px solid #e2e8f0 !important;
}

.side-news-tabs {
  display: flex !important;
  width: 100% !important;
  gap: 4px !important;
  background: #e2e8f0 !important;
  padding: 3px !important;
  border-radius: 8px !important;
}

.side-tab-btn {
  flex: 1 !important;
  padding: 7px 10px !important;
  font-size: 0.8rem !important;
  font-weight: 700 !important;
  border: none !important;
  background: transparent !important;
  color: #64748b !important;
  border-radius: 6px !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  white-space: nowrap !important;
}

.side-tab-btn.active {
  background: #ffffff !important;
  color: #0f172a !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1) !important;
}

.side-tab-btn:hover:not(.active) {
  color: #1e293b !important;
}

.news-mini-item {
  padding: 8px 0 !important;
}

.political-queue.is-collapsed {
  max-height: 0 !important;
  opacity: 0 !important;
  border-color: transparent !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
}

/* MODAL STATIC PULSE EFFECT (PREVENT ACCIDENTAL EXIT ON BACKDROP CLICK) */
@keyframes modalStaticPulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.02); }
  100% { transform: scale(1); }
}

.modal-content.modal-static-pulse {
  animation: modalStaticPulse 0.18s ease-in-out !important;
}

/* 5. TIÊU MỤC HOẠT ĐỘNG (NỀN ĐỎ CHỮ TRẮNG NỔI BẬT VÀ ĐẸP MẮT) */
.activity-category-heading h3 {
  color: #ffffff !important;
  background: linear-gradient(135deg, #dc2626, #b91c1c) !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.25) !important;
}

.activity-category-heading h3::before {
  background: #ffffff !important;
}

/* TOAST NOTIFICATION CARDS */
#mttq-toast-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 200000;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 380px;
  pointer-events: none;
}

.mttq-toast-item {
  pointer-events: auto;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  background: #ffffff;
  border-radius: 10px;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.18);
  border: 1px solid #e2e8f0;
  border-left: 5px solid #16a34a;
  animation: mttqToastSlideIn 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  transition: transform 0.25s ease, opacity 0.25s ease;
  font-family: inherit;
  font-size: 0.92rem;
  color: #1e293b;
  line-height: 1.45;
}

.mttq-toast-item.toast-success { border-left-color: #16a34a; }
.mttq-toast-item.toast-success .toast-icon { color: #16a34a; background: #dcfce7; }
.mttq-toast-item.toast-error { border-left-color: #dc2626; }
.mttq-toast-item.toast-error .toast-icon { color: #dc2626; background: #fee2e2; }
.mttq-toast-item.toast-warning { border-left-color: #d97706; }
.mttq-toast-item.toast-warning .toast-icon { color: #d97706; background: #fef3c7; }
.mttq-toast-item.toast-info { border-left-color: #2563eb; }
.mttq-toast-item.toast-info .toast-icon { color: #2563eb; background: #dbeafe; }

.toast-icon {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

.toast-content { flex: 1; word-break: break-word; }
.toast-title { font-weight: 700; font-size: 0.92rem; margin-bottom: 2px; color: #0f172a; }
.toast-message { font-size: 0.84rem; color: #475569; }
.toast-close-btn {
  flex-shrink: 0;
  background: none;
  border: none;
  color: #94a3b8;
  font-size: 1.25rem;
  line-height: 1;
  padding: 0 4px;
  cursor: pointer;
}
.toast-close-btn:hover { color: #334155; }
.mttq-toast-item.toast-fade-out { animation: mttqToastFadeOut 0.3s forwards; }

@keyframes mttqToastSlideIn {
  from { transform: translateX(120%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

@keyframes mttqToastFadeOut {
  from { transform: translateX(0) scale(1); opacity: 1; }
  to { transform: translateX(30px) scale(0.95); opacity: 0; }
}

@media (max-width: 640px) {
  #mttq-toast-container {
    top: 16px;
    right: 12px;
    left: 12px;
    max-width: calc(100vw - 24px);
  }
}
