/**
 * Rent a Man - Static HTML (complete home)
 */
:root {
  --ram-primary: #3c65f5;
  --ram-primary-dark: #05264e;
  --ram-accent: #4fc3f7;
  --ram-danger: #dc3545;
  --ram-success: #198754;
  --ram-bg: #eef3fb;
  --ram-card: #ffffff;
  --ram-border: #e4e9f2;
  --ram-text: #1e2a3b;
  --ram-text-muted: #6b7a90;
  --ram-radius: 16px;
  --ram-radius-sm: 10px;
  --ram-shadow: 0 10px 30px rgba(5, 38, 78, 0.08);
  --ram-gap-x: 10px;
  --ram-gap-y: 12px;
  --ram-header-height: 92px;
  --ram-header-height-mobile: 64px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body.home-page {
  background: var(--ram-bg);
  color: var(--ram-text);
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, sans-serif;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; }

/* ── Header ── */
.header.sticky-bar {
  background: #fff !important;
  float: none;
  width: 100%;
  clear: both;
}

.project-slider-wrapper { width: 200px; overflow: hidden; margin: 0 auto; }
.project-slider { display: flex; transition: transform 0.35s ease; }
.project-item { flex: 0 0 100%; text-align: center; }
.project-item img { height: 56px; object-fit: contain; display: block; margin: 0 auto; }

.header .container-fluid { padding: 0 12px; max-width: 100%; }
.header .main-header { position: relative; width: 100%; }

.header-location-filters {
  display: flex; align-items: center; gap: 8px; flex: 1 1 auto; min-width: 0;
}

.header-filter-pill {
  display: flex; align-items: center; flex: 1 1 0; min-width: 0;
  height: 40px; padding: 0 12px; background: #fff;
  border: 1px solid var(--ram-border); border-radius: 999px;
  box-shadow: 0 2px 8px rgba(5, 38, 78, 0.05);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.header-filter-pill:focus-within {
  border-color: var(--ram-accent);
  box-shadow: 0 0 0 3px rgba(79, 195, 247, 0.18);
}

.header-filter-pill__icon {
  flex-shrink: 0; width: 20px; color: var(--ram-primary); font-size: 13px; text-align: center;
}

.header-filter-select {
  flex: 1; min-width: 0; border: none; background: transparent;
  font-size: 13px; font-weight: 600; color: var(--ram-primary-dark);
  padding: 0 16px 0 6px; height: 38px; cursor: pointer; appearance: none;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%236b7a90' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
  background-repeat: no-repeat; background-position: right 0 center; background-size: 11px;
}

.header-filter-select:disabled { opacity: 0.5; cursor: not-allowed; }

.header .header-burger { display: none; }

/* Header nav — dark links on white background (style.css defaults to white) */
.header.sticky-bar .nav-main-menu { width: 100%; }

.header.sticky-bar .main-menu {
  list-style: none; margin: 0; padding: 0;
  display: flex; align-items: center; justify-content: center;
  flex-wrap: nowrap; gap: 2px;
}

.header.sticky-bar .main-menu li {
  float: none; padding: 8px 14px; position: relative;
}

.header.sticky-bar .main-menu li a {
  color: var(--ram-primary-dark);
  font-weight: 600;
  font-size: 14px;
  transition: color 0.2s;
}

.header.sticky-bar .main-menu li a:hover,
.header.sticky-bar .main-menu li a.active {
  color: var(--ram-primary);
}

.header.sticky-bar .main-menu li a:hover::before,
.header.sticky-bar .main-menu li a.active::before {
  background-color: var(--ram-primary);
  bottom: -6px;
}

/* Custom burger — avoids main8c94.js double-toggle conflict */
.ram-burger {
  position: relative;
  width: 40px;
  height: 40px;
  cursor: pointer;
  border: none;
  background: transparent;
  padding: 0;
  flex-shrink: 0;
}

.ram-burger__line {
  display: block;
  position: absolute;
  left: 50%;
  width: 22px;
  height: 2px;
  margin-left: -11px;
  background: var(--ram-primary-dark);
  border-radius: 2px;
  transition: transform 0.25s ease, top 0.25s ease, opacity 0.25s ease;
}

.ram-burger__line:nth-child(1) { top: 12px; }
.ram-burger__line:nth-child(2) { top: 19px; }
.ram-burger__line:nth-child(3) { top: 26px; }

.ram-burger.is-open .ram-burger__line:nth-child(1) {
  top: 19px;
  transform: rotate(45deg);
}

.ram-burger.is-open .ram-burger__line:nth-child(2) { opacity: 0; }

.ram-burger.is-open .ram-burger__line:nth-child(3) {
  top: 19px;
  transform: rotate(-45deg);
}

.header.sticky-bar .btn-default {
  background: var(--ram-primary);
  color: #fff;
  border-radius: 999px;
  font-weight: 600;
  font-size: 13px;
  padding: 8px 18px;
  white-space: nowrap;
}

.header.sticky-bar .btn-default:hover {
  background: var(--ram-primary-dark);
  color: #fff;
}

/* Hide theme overlay — we use our own mobile-menu-overlay */
.body-overlay-1 { display: none !important; }

/* ── Mobile drawer ── */
.mobile-header-active {
  position: fixed; inset: 0; z-index: 1100;
  pointer-events: none; visibility: hidden;
}

.mobile-header-active.is-open,
.mobile-header-active.active,
.mobile-header-active.sidebar-visible {
  pointer-events: auto; visibility: visible;
}

.mobile-menu-overlay {
  position: fixed; inset: 0;
  background: rgba(5, 38, 78, 0.5);
  opacity: 0; transition: opacity 0.3s ease;
  z-index: 1;
}

.mobile-header-active.is-open .mobile-menu-overlay,
.mobile-header-active.active .mobile-menu-overlay,
.mobile-header-active.sidebar-visible .mobile-menu-overlay {
  opacity: 1;
}

.mobile-header-wrapper-style {
  position: fixed !important;
  top: 0 !important;
  right: 0 !important;
  width: min(320px, 88vw) !important;
  height: 100% !important;
  min-height: 100vh !important;
  background: #fff !important;
  box-shadow: -8px 0 30px rgba(0, 0, 0, 0.15) !important;
  transform: translateX(100%) !important;
  transition: transform 0.3s ease !important;
  overflow-y: auto;
  padding: 20px 18px;
  z-index: 2 !important;
  visibility: visible !important;
  opacity: 1 !important;
}

.mobile-header-active.is-open .mobile-header-wrapper-style,
.mobile-header-active.active .mobile-header-wrapper-style,
.mobile-header-active.sidebar-visible .mobile-header-wrapper-style,
.mobile-header-wrapper-style.sidebar-visible {
  transform: translateX(0) !important;
  visibility: visible !important;
  opacity: 1 !important;
}

.mobile-menu a {
  display: block; padding: 12px 0; color: var(--ram-primary-dark);
  text-decoration: none; font-weight: 600; font-size: 15px;
  border-bottom: 1px solid var(--ram-border);
  transition: color 0.2s, padding-left 0.2s;
}

.mobile-menu a:hover,
.mobile-menu a:focus {
  color: var(--ram-primary);
  padding-left: 4px;
}

.mobile-header-wrapper-style .btn-default {
  background: var(--ram-primary);
  color: #fff;
  border-radius: 999px;
  font-weight: 600;
}

/* ── Hero search ── */
.home-hero { padding: 12px 0 4px; }

.search-box {
  display: flex; align-items: stretch; width: 100%; min-width: 0;
  background: #fff; border-radius: 999px; border: 1px solid var(--ram-border);
  box-shadow: 0 4px 14px rgba(5, 38, 78, 0.06); overflow: hidden;
  transition: box-shadow 0.2s, border-color 0.2s;
}

.search-box:focus-within {
  border-color: var(--ram-accent);
  box-shadow: 0 0 0 3px rgba(79, 195, 247, 0.2);
}

.search-box input {
  flex: 1; min-width: 0; border: none; outline: none;
  padding: 13px 18px; font-size: 15px; background: transparent;
}

.search-box button {
  flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center;
  min-width: 50px; padding: 0 16px; border: none;
  background: linear-gradient(135deg, #4fc3f7, #3c65f5); color: #fff; cursor: pointer;
}

/* ── Main panel ── */
.home-page__body { padding-bottom: 80px; }

.home-page__content {
  background: var(--ram-card); border-radius: var(--ram-radius);
  box-shadow: var(--ram-shadow); padding: 14px 12px 22px;
  border: 1px solid rgba(255,255,255,0.8);
}

/* ── Horizontal scroll arrows ── */
.ram-hscroll {
  position: relative;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 14px;
}

.ram-hscroll__track {
  flex: 1;
  min-width: 0;
}

.ram-hscroll > .ram-hscroll__track {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}

.ram-hscroll__btn {
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 1px solid var(--ram-border);
  border-radius: 50%;
  background: #fff;
  color: var(--ram-primary-dark);
  font-size: 12px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(5, 38, 78, 0.08);
  transition: background 0.2s, color 0.2s, border-color 0.2s, opacity 0.2s;
}

.ram-hscroll__btn:hover:not(:disabled) {
  background: var(--ram-primary);
  border-color: var(--ram-primary);
  color: #fff;
}

.ram-hscroll__btn:disabled {
  opacity: 0.3;
  cursor: default;
  box-shadow: none;
}

.ram-hscroll--no-scroll .ram-hscroll__btn {
  display: none;
}

.ram-hscroll--no-scroll .ram-hscroll__track {
  flex: 1 1 100%;
}

/* ── Category tabs — horizontal scroll ── */
.category-tabs-grid {
  margin: 0 0 14px;
  padding: 4px 4px 8px;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.category-tabs-grid::-webkit-scrollbar { display: none; }

.category-tabs-grid #myTab {
  display: flex !important;
  flex-wrap: nowrap !important;
  justify-content: flex-start !important;
  align-items: flex-start;
  width: max-content !important;
  min-width: 100%;
  gap: 4px;
  border: none;
  margin: 0;
  padding: 0;
}

.category-tabs-grid .nav-item {
  flex: 0 0 auto;
  max-width: none;
  min-width: 72px;
  padding: 0 4px;
}

.category-tabs-grid .nav-link {
  border: none !important;
  background: transparent !important;
  padding: 6px 4px 10px !important;
  border-radius: 12px !important;
  transition: background 0.2s;
  width: 100%;
  text-align: center;
}

.category-tabs-grid .nav-link.active {
  background: rgba(60, 101, 245, 0.08) !important;
  position: relative;
}

.category-tabs-grid .nav-link.active::after {
  content: "";
  position: absolute;
  bottom: 2px;
  left: 18%;
  right: 18%;
  height: 3px;
  border-radius: 3px;
  background: var(--ram-primary);
}

.category-tabs-grid .nav-link span:last-child {
  font-size: 11px;
  font-weight: 700;
  color: var(--ram-primary-dark);
  white-space: nowrap;
  display: block;
  line-height: 1.2;
}

.tab-icon-wrap {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 6px;
  overflow: hidden;
  color: #fff;
  font-size: 22px;
  box-shadow: 0 4px 12px rgba(5, 38, 78, 0.12);
}

.tab-icon-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.tab-icon-wrap--logo,
.tab-icon-wrap--deals,
.tab-icon-wrap--services,
.tab-icon-wrap--directory,
.tab-icon-wrap--web {
  background: transparent;
  box-shadow: none;
}

.tab-icon-wrap--coupons { background: linear-gradient(135deg, #9c27b0, #7c4dff); }
.tab-icon-wrap--jobs { background: linear-gradient(135deg, #42a5f5, #1565c0); }
.tab-icon-wrap--postjob { background: linear-gradient(135deg, #ffb74d, #f57c00); }
.tab-icon-wrap--market { background: linear-gradient(135deg, #5c9cff, #2563eb); }
.tab-icon-wrap--local { background: linear-gradient(135deg, #26c6da, #00897b); }
.tab-icon-wrap--bids { background: linear-gradient(135deg, #ffa726, #ef6c00); }
.tab-icon-wrap--property { background: linear-gradient(135deg, #64b5f6, #1976d2); }
.tab-icon-wrap--help { background: linear-gradient(135deg, #00897b, #004d40); }
.tab-icon-wrap--shops { background: linear-gradient(135deg, #ffeb3b, #f9a825); color: #c62828; }
.tab-icon-wrap--places { background: linear-gradient(135deg, #ba68c8, #8e24aa); }
.tab-icon-wrap--qa { background: linear-gradient(135deg, #64b5f6, #3c65f5); }
.tab-icon-wrap--local2 { background: linear-gradient(135deg, #66bb6a, #2e7d32); }
.tab-icon-wrap--pages { background: linear-gradient(135deg, #5c6bc0, #283593); }
.tab-icon-wrap--groups { background: linear-gradient(135deg, #3949ab, #1a237e); }
.tab-icon-wrap--news { background: linear-gradient(135deg, #42a5f5, #1565c0); }

/* Legacy horizontal scroll (fallback) */
.category-tabs-scroll {
  overflow-x: auto; overflow-y: hidden; -webkit-overflow-scrolling: touch;
  margin: 0 -4px 12px; padding: 4px 4px 8px;
  scrollbar-width: none;
}

.category-tabs-scroll::-webkit-scrollbar { display: none; }

.category-tabs-scroll #myTab {
  display: flex !important; flex-wrap: nowrap !important;
  width: max-content !important; gap: 4px; border: none;
}

.category-tabs-scroll .nav-item { flex: 0 0 auto; }

.category-tabs-scroll .nav-link {
  border: none !important; background: transparent !important;
  padding: 8px 10px !important; border-radius: 12px !important;
  transition: background 0.2s;
}

.category-tabs-scroll .nav-link.active {
  background: rgba(60, 101, 245, 0.1) !important;
  position: relative;
}

.category-tabs-scroll .nav-link.active::after {
  content: ""; position: absolute; bottom: 2px; left: 20%; right: 20%;
  height: 3px; border-radius: 3px; background: var(--ram-primary);
}

.category-tabs-scroll .tab-icon {
  width: 44px !important; height: 44px !important; object-fit: contain;
  display: block; margin: 0 auto 4px;
}

.category-tabs-scroll .nav-link span {
  font-size: 10px; font-weight: 700; color: var(--ram-primary-dark);
  white-space: nowrap; display: block; text-align: center;
}

/* ── Toolbars ── */
.tab-toolbar, .home-jobs-toolbar, .directory-toolbar {
  display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 14px; width: 100%;
}

.tab-toolbar .search-box, .home-jobs-toolbar .search-box, .directory-toolbar .search-box {
  flex: 1 1 100%; margin: 0;
}

.tab-toolbar .btn-group, .tab-toolbar .filter-row, .tab-toolbar .tab-toolbar__actions,
.home-jobs-toolbar .btn-group, .directory-toolbar .btn-group {
  flex: 1 1 100%; display: flex; flex-wrap: wrap; gap: 6px;
}

.tab-toolbar .btn, .home-jobs-toolbar .btn, .directory-toolbar .btn {
  border-radius: 8px !important; font-size: 12px; font-weight: 600;
  padding: 7px 14px !important;
}

/* ── Sections ── */
.section-heading {
  font-size: 0.95rem; font-weight: 800; margin: 1rem 0 0.5rem;
  color: var(--ram-primary-dark); letter-spacing: 0.02em;
}

.section-heading.text-danger { color: var(--ram-danger) !important; }

/* ── All tab — filter chips + listings ── */
.all-tab {
  margin-top: 4px;
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, sans-serif;
}

.all-tab__search {
  margin-bottom: 16px;
}

.all-tab__search.search-box {
  border-radius: 999px;
  border: 1px solid var(--ram-border);
  box-shadow: 0 4px 14px rgba(5, 38, 78, 0.06);
}

.all-tab__search input {
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  color: var(--ram-text);
  padding: 13px 18px;
}

.all-tab__search input::placeholder {
  color: var(--ram-text-muted);
  font-weight: 500;
}

.all-filter-nav {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 4px 2px 14px;
  margin: 0 0 8px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.all-filter-nav::-webkit-scrollbar { display: none; }

.all-filter-chip {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px 8px 10px;
  border: 1px solid var(--ram-border);
  border-radius: 999px;
  background: #fff;
  cursor: pointer;
  white-space: nowrap;
  font-family: inherit;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s, transform 0.15s;
}

.all-filter-chip:hover {
  border-color: rgba(60, 101, 245, 0.35);
  box-shadow: 0 4px 12px rgba(5, 38, 78, 0.08);
  transform: translateY(-1px);
}

.all-filter-chip.is-active {
  border-color: var(--ram-primary);
  background: linear-gradient(135deg, rgba(79, 195, 247, 0.12), rgba(60, 101, 245, 0.1));
  box-shadow: 0 0 0 3px rgba(60, 101, 245, 0.12);
}

.all-filter-chip__icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  line-height: 1;
  flex-shrink: 0;
}

.all-filter-chip__icon--nearby { background: #dbeafe; }
.all-filter-chip__icon--new { background: #dcfce7; }
.all-filter-chip__icon--viewed { background: #e0e7ff; }
.all-filter-chip__icon--trending { background: #ffedd5; }
.all-filter-chip__icon--featured { background: #fef3c7; }
.all-filter-chip__icon--recommended { background: #fce7f3; }
.all-filter-chip__icon--rated { background: #fef9c3; }
.all-filter-chip__icon--deals { background: #d1fae5; }
.all-filter-chip__icon--offers { background: #ede9fe; }
.all-filter-chip__icon--discounts { background: #fee2e2; }
.all-filter-chip__icon--open { background: #dcfce7; }
.all-filter-chip__icon--popular { background: #e0f2fe; }

.all-filter-chip__label {
  font-size: 13px;
  font-weight: 700;
  color: var(--ram-primary-dark);
  letter-spacing: 0.01em;
}

.all-filter-chip.is-active .all-filter-chip__label { color: var(--ram-primary); }

.all-tab__section-head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  margin: 4px 0 16px;
  padding: 12px 14px;
  background: linear-gradient(135deg, rgba(79, 195, 247, 0.08), rgba(60, 101, 245, 0.06));
  border: 1px solid rgba(60, 101, 245, 0.12);
  border-radius: var(--ram-radius-sm);
}

.all-tab__section-title {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--ram-primary);
  letter-spacing: -0.02em;
  font-family: inherit;
}

.all-tab__view-all {
  font-size: 13px;
  font-weight: 700;
  color: var(--ram-primary);
  text-decoration: none;
  white-space: nowrap;
}

.all-tab__view-all:hover { color: var(--ram-primary-dark); }

.all-tab__result-count {
  display: block;
  margin: 0;
  padding: 0;
  font-size: 12px;
  font-weight: 500;
  color: var(--ram-text-muted);
}

.all-listing-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
}

#allListingGrid {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.all-module-section {
  margin: 0;
  padding: 16px 14px 14px;
  background: linear-gradient(180deg, #f7f9fd 0%, #ffffff 100%);
  border: 1px solid var(--ram-border);
  border-radius: var(--ram-radius);
  box-shadow: 0 4px 16px rgba(5, 38, 78, 0.04);
}

.all-module-section__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(228, 233, 242, 0.9);
}

.all-module-section__title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--ram-primary-dark);
  letter-spacing: -0.01em;
  position: relative;
  padding-left: 12px;
  font-family: inherit;
}

.all-module-section__title::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 18px;
  border-radius: 4px;
  background: linear-gradient(180deg, #4fc3f7, #3c65f5);
}

.all-module-section__view-all {
  font-size: 12px;
  font-weight: 700;
  color: var(--ram-primary);
  text-decoration: none;
  white-space: nowrap;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(60, 101, 245, 0.08);
  transition: background 0.2s, color 0.2s;
}

.all-module-section__view-all:hover {
  color: #fff;
  background: var(--ram-primary);
}

.all-module-slider {
  position: relative;
  margin: 0 -4px;
  padding: 0 4px;
}

.all-module-slider__btn {
  position: absolute;
  top: 42%;
  transform: translateY(-50%);
  z-index: 3;
  width: 36px;
  height: 36px;
  border: 1px solid var(--ram-border);
  border-radius: 50%;
  background: #fff;
  color: var(--ram-primary);
  box-shadow: 0 6px 18px rgba(5, 38, 78, 0.12);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, opacity 0.2s, box-shadow 0.2s;
}

.all-module-slider__btn:hover {
  background: var(--ram-primary);
  color: #fff;
  border-color: var(--ram-primary);
  box-shadow: 0 8px 20px rgba(60, 101, 245, 0.25);
}

.all-module-slider__btn:disabled,
.all-module-slider__btn.is-disabled {
  opacity: 0.35;
  cursor: default;
  pointer-events: none;
}

.all-module-slider__btn--prev { left: -2px; }
.all-module-slider__btn--next { right: -2px; }

.all-module-section__grid {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  gap: 14px;
  padding: 4px 28px 14px;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: rgba(60, 101, 245, 0.45) rgba(60, 101, 245, 0.1);
  cursor: grab;
}

.all-module-section__grid.is-dragging {
  cursor: grabbing;
  scroll-behavior: auto;
  scroll-snap-type: none;
  user-select: none;
}

.all-module-section__grid::-webkit-scrollbar {
  height: 6px;
}

.all-module-section__grid::-webkit-scrollbar-track {
  background: rgba(60, 101, 245, 0.1);
  border-radius: 999px;
  margin: 0 28px;
}

.all-module-section__grid::-webkit-scrollbar-thumb {
  background: linear-gradient(90deg, #4fc3f7, #3c65f5);
  border-radius: 999px;
}

.all-module-section__grid .all-listing-card {
  flex: 0 0 196px;
  max-width: 196px;
  scroll-snap-align: start;
}

.all-tab__empty {
  margin: 28px 12px;
  padding: 28px 16px;
  text-align: center;
  color: var(--ram-text-muted);
  font-size: 14px;
  font-weight: 500;
  background: #f7f9fd;
  border: 1px dashed var(--ram-border);
  border-radius: var(--ram-radius-sm);
}

.all-listing-card {
  background: #fff;
  border: 1px solid var(--ram-border);
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 14px rgba(5, 38, 78, 0.05);
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.all-listing-card:hover {
  transform: translateY(-3px);
  border-color: rgba(60, 101, 245, 0.28);
  box-shadow: 0 12px 28px rgba(5, 38, 78, 0.1);
}

.all-listing-card__media {
  position: relative;
  display: block;
  line-height: 0;
  background: linear-gradient(135deg, #eef3fb, #e4e9f2);
}

.all-listing-card__media img {
  width: 100%;
  height: 110px;
  object-fit: cover;
  display: block;
}

.all-listing-card__type {
  position: absolute;
  top: 8px;
  left: 8px;
  padding: 4px 9px;
  border-radius: 7px;
  background: linear-gradient(135deg, rgba(5, 38, 78, 0.88), rgba(60, 101, 245, 0.85));
  color: #fff;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  font-family: inherit;
}

.all-listing-card__body {
  padding: 12px 12px 14px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.all-listing-card__title {
  margin: 0 0 4px;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.35;
  font-family: inherit;
}

.all-listing-card__title a {
  color: var(--ram-primary-dark);
  text-decoration: none;
}

.all-listing-card__title a:hover {
  color: var(--ram-primary);
}

.all-listing-card__meta {
  margin: 0 0 10px;
  font-size: 11px;
  font-weight: 500;
  color: var(--ram-text-muted);
  line-height: 1.35;
}

.all-listing-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: auto;
  padding-top: 8px;
  border-top: 1px solid rgba(228, 233, 242, 0.85);
  font-size: 11px;
  font-weight: 700;
  color: var(--ram-primary-dark);
}

.all-listing-card__price { color: var(--ram-primary); }
.all-listing-card__footer .fa-star { color: #f59e0b; font-size: 10px; margin-right: 2px; }

/* ── Coupons tab ── */
.coupons-tab { margin-top: 2px; }

.coupons-tab__toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.coupons-tab__search { flex: 1 1 220px; margin: 0; }
.coupons-tab__search input { font-size: 14px; padding: 11px 14px; border-radius: 12px; }

.coupons-tab__add {
  font-size: 12px !important;
  font-weight: 700 !important;
  padding: 9px 14px !important;
  border-radius: 10px !important;
  white-space: nowrap;
}

.coupon-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 12px;
}

.coupon-section-head__title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--ram-primary-dark);
}

.coupon-section-head__title--solo { margin: 18px 0 12px; }

.coupon-section-head__link {
  font-size: 13px;
  font-weight: 600;
  color: var(--ram-primary);
  text-decoration: none;
  white-space: nowrap;
}

.coupon-section-head__link:hover { color: var(--ram-primary-dark); }

/* Featured coupon scroll */
.coupon-featured-scroll {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding: 4px 2px 16px;
  margin-bottom: 8px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.coupon-featured-scroll::-webkit-scrollbar { display: none; }

.coupon-featured-card {
  flex: 0 0 min(92%, 420px);
  display: flex;
  min-height: 168px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(5, 38, 78, 0.08);
}

.coupon-featured-card__main {
  position: relative;
  flex: 1;
  padding: 16px 110px 14px 16px;
  min-width: 0;
}

.coupon-featured-card--red .coupon-featured-card__main { background: linear-gradient(135deg, #fff5f5 0%, #ffe4e6 100%); }
.coupon-featured-card--green .coupon-featured-card__main { background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%); }
.coupon-featured-card--gold .coupon-featured-card__main { background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%); }

.coupon-featured-card__badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.85);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--ram-primary-dark);
  margin-bottom: 10px;
}

.coupon-featured-card__discount {
  margin: 0 0 4px;
  font-size: 1.65rem;
  font-weight: 900;
  line-height: 1.1;
  color: var(--ram-primary-dark);
}

.coupon-featured-card__sub {
  margin: 0 0 12px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: var(--ram-text-muted);
}

.coupon-featured-card__code {
  display: inline-block;
  padding: 6px 12px;
  border: 1.5px dashed rgba(5, 38, 78, 0.25);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.65);
  font-size: 10px;
  font-weight: 600;
  color: var(--ram-primary-dark);
  margin-bottom: 10px;
}

.coupon-featured-card__code strong { font-weight: 800; letter-spacing: 0.05em; }

.coupon-featured-card__valid {
  margin: 0;
  font-size: 10px;
  color: var(--ram-text-muted);
}

.coupon-featured-card__valid i { margin-right: 4px; }

.coupon-featured-card__img {
  position: absolute;
  right: 8px;
  bottom: 8px;
  width: 96px;
  height: 96px;
  object-fit: contain;
  pointer-events: none;
}

.coupon-featured-card__claim {
  position: relative;
  flex: 0 0 52px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 12px 6px;
}

.coupon-featured-card__claim::before {
  content: "";
  position: absolute;
  left: -5px;
  top: 0;
  bottom: 0;
  width: 10px;
  background: radial-gradient(circle at 0 50%, transparent 4px, #fff 4px) repeat-y;
  background-size: 10px 12px;
}

.coupon-featured-card--red .coupon-featured-card__claim { background: #e53935; }
.coupon-featured-card--green .coupon-featured-card__claim { background: #16a34a; }
.coupon-featured-card--gold .coupon-featured-card__claim { background: #f59e0b; }

.coupon-featured-card__claim-text {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: #fff;
  white-space: nowrap;
}

.coupon-featured-card__claim-btn {
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 50%;
  background: #fff;
  color: var(--ram-primary-dark);
  font-size: 12px;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
  transition: transform 0.2s;
}

.coupon-featured-card__claim-btn:hover { transform: scale(1.06); }

/* Coupon categories */
.coupon-cat-nav {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding: 4px 2px 18px;
  margin-bottom: 4px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.coupon-cat-nav::-webkit-scrollbar { display: none; }

.coupon-cat-nav__item {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  min-width: 72px;
  border: none;
  background: transparent;
  cursor: pointer;
  padding: 0;
}

.coupon-cat-nav__icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  transition: box-shadow 0.2s, transform 0.2s;
}

.coupon-cat-nav__item.is-active .coupon-cat-nav__icon {
  box-shadow: 0 0 0 3px rgba(60, 101, 245, 0.25);
  transform: scale(1.04);
}

.coupon-cat-nav__icon--food { background: #ffedd5; color: #ea580c; }
.coupon-cat-nav__icon--fashion { background: #fce7f3; color: #db2777; }
.coupon-cat-nav__icon--electronics { background: #dbeafe; color: #2563eb; }
.coupon-cat-nav__icon--travel { background: #e0e7ff; color: #4f46e5; }
.coupon-cat-nav__icon--beauty { background: #f3e8ff; color: #9333ea; }
.coupon-cat-nav__icon--home { background: #dcfce7; color: #16a34a; }
.coupon-cat-nav__icon--automotive { background: #fee2e2; color: #dc2626; }
.coupon-cat-nav__icon--more { background: #f1f5f9; color: #64748b; border-radius: 14px; }

.coupon-cat-nav__label {
  font-size: 11px;
  font-weight: 600;
  color: var(--ram-text-muted);
  text-align: center;
  line-height: 1.25;
  max-width: 76px;
}

.coupon-cat-nav__item.is-active .coupon-cat-nav__label {
  color: var(--ram-primary);
  font-weight: 700;
}

/* Popular coupons grid */
.coupon-pop-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.coupon-pop-card {
  display: flex;
  align-items: stretch;
  min-height: 140px;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(5, 38, 78, 0.06);
  transition: transform 0.2s, box-shadow 0.2s;
}

.coupon-pop-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(5, 38, 78, 0.1);
}

.coupon-pop-card__content {
  flex: 1;
  padding: 14px 10px 14px 14px;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.coupon-pop-card--pink .coupon-pop-card__content { background: #fdf2f8; }
.coupon-pop-card--blue .coupon-pop-card__content { background: #eff6ff; }
.coupon-pop-card--purple .coupon-pop-card__content { background: #f5f3ff; }
.coupon-pop-card--teal .coupon-pop-card__content { background: #f0fdfa; }

.coupon-pop-card__off {
  margin: 0 0 4px;
  font-size: 14px;
  font-weight: 900;
  color: var(--ram-primary-dark);
  line-height: 1.2;
}

.coupon-pop-card__desc {
  margin: 0 0 10px;
  font-size: 10px;
  color: var(--ram-text-muted);
  line-height: 1.35;
}

.coupon-pop-card__code {
  display: inline-block;
  align-self: flex-start;
  padding: 5px 10px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.75);
  font-size: 9px;
  font-weight: 600;
  color: var(--ram-primary-dark);
  margin-bottom: auto;
}

.coupon-pop-card__code strong { font-weight: 800; letter-spacing: 0.04em; }

.coupon-pop-card__valid {
  margin: 8px 0 0;
  font-size: 9px;
  color: var(--ram-text-muted);
}

.coupon-pop-card__valid i { margin-right: 3px; }

.coupon-pop-card__claim {
  align-self: flex-end;
  margin-top: 8px;
  padding: 6px 16px;
  border: none;
  border-radius: 8px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #fff;
  cursor: pointer;
  transition: opacity 0.2s;
}

.coupon-pop-card__claim:hover { opacity: 0.9; }

.coupon-pop-card--pink .coupon-pop-card__claim { background: #ec4899; }
.coupon-pop-card--blue .coupon-pop-card__claim { background: #3b82f6; }
.coupon-pop-card--purple .coupon-pop-card__claim { background: #8b5cf6; }
.coupon-pop-card--teal .coupon-pop-card__claim { background: #14b8a6; }

.coupon-pop-card__media {
  flex: 0 0 38%;
  max-width: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  background: rgba(255, 255, 255, 0.5);
}

.coupon-pop-card__media img {
  width: 100%;
  max-height: 100px;
  object-fit: contain;
}

.content-grid {
  --bs-gutter-x: var(--ram-gap-x);
  --bs-gutter-y: var(--ram-gap-y);
}

/* ── Featured deal card ── */
.deal-card {
  border: none; border-radius: var(--ram-radius-sm); overflow: hidden;
  box-shadow: 0 3px 10px rgba(0,0,0,.07); height: 100%;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.deal-card:hover { transform: translateY(-4px); box-shadow: var(--ram-shadow); }

.deal-card img { width: 100%; height: 76px; object-fit: cover; }

.deal-card .card-body {
  background: linear-gradient(180deg, rgba(5,38,78,.95), rgba(5,38,78,.88));
  padding: 8px 10px;
}

.deal-card h6 {
  margin: 0; font-size: 11px; font-weight: 600; color: #fff; line-height: 1.3;
}

/* ── Job card ── */
.job-card {
  background: #fff; border: 1px solid var(--ram-border); border-radius: var(--ram-radius);
  height: 100%; display: flex; flex-direction: column; overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
}

.job-card:hover { transform: translateY(-3px); box-shadow: var(--ram-shadow); }

.job-card__media {
  display: flex; align-items: center; justify-content: center;
  padding: 14px 12px 6px; text-decoration: none;
  background: linear-gradient(180deg, #f8faff, #fff);
}

.job-card__media img {
  width: 68px; height: 68px; object-fit: cover; border-radius: 50%;
  border: 3px solid #fff; box-shadow: 0 4px 14px rgba(0,0,0,.1);
}

.job-card__body { padding: 10px 12px 12px; flex: 1; display: flex; flex-direction: column; }

.job-card__title {
  font-size: 13px; font-weight: 700; line-height: 1.35; margin: 0 0 5px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

.job-card__title a { color: var(--ram-primary-dark); text-decoration: none; }

.job-card__meta, .job-card__category {
  font-size: 10px; color: var(--ram-text-muted); margin: 0 0 4px; line-height: 1.35;
}

.job-card__category { color: var(--ram-primary); font-weight: 600; }

.job-card__footer {
  margin-top: auto; padding-top: 8px; border-top: 1px solid #eef1f6;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px;
}

.job-card__price { font-size: 14px; font-weight: 800; color: var(--ram-primary); }
.job-card__price small { font-size: 10px; font-weight: 500; color: var(--ram-text-muted); }

/* ── Services tab page layout ── */
.services-tab {
  margin: -4px -2px 0;
}

.services-tab__hero {
  display: grid;
  grid-template-columns: 1fr 1.4fr auto;
  grid-template-areas: "intro search location";
  align-items: center;
  gap: 16px 20px;
  margin-bottom: 20px;
}

.services-tab__intro { grid-area: intro; min-width: 0; }

.services-tab__title {
  margin: 0 0 4px;
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--ram-primary-dark);
  line-height: 1.2;
}

.services-tab__subtitle {
  margin: 0;
  font-size: 13px;
  color: var(--ram-text-muted);
  line-height: 1.45;
  max-width: 260px;
}

.services-tab__search {
  grid-area: search;
  max-width: 100%;
}

.services-tab__search input {
  font-size: 14px;
  padding: 12px 16px;
}

.services-tab__location {
  grid-area: location;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border: 1px solid var(--ram-border);
  border-radius: 12px;
  background: #fff;
  color: var(--ram-primary-dark);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(5, 38, 78, 0.05);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.services-tab__location:hover {
  border-color: var(--ram-primary);
  box-shadow: 0 0 0 3px rgba(60, 101, 245, 0.1);
}

.services-tab__location > .fa-map-marker-alt {
  color: var(--ram-primary);
  font-size: 15px;
}

.services-tab__location-chevron {
  font-size: 10px;
  color: var(--ram-text-muted);
}

/* Category nav strip */
.service-cat-nav {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  padding: 4px 2px 12px;
  margin-bottom: 18px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.service-cat-nav::-webkit-scrollbar { display: none; }

.service-cat-nav__item {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  min-width: 88px;
  padding: 8px 10px 10px;
  border: none;
  background: transparent;
  cursor: pointer;
  position: relative;
}

.service-cat-nav__item::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 20%;
  right: 20%;
  height: 3px;
  border-radius: 3px;
  background: transparent;
  transition: background 0.2s;
}

.service-cat-nav__item.is-active::after {
  background: var(--ram-primary);
}

.service-cat-nav__icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  transition: transform 0.2s;
}

.service-cat-nav__item:hover .service-cat-nav__icon {
  transform: scale(1.05);
}

.service-cat-nav__icon--home { background: #ede9fe; color: #7c3aed; }
.service-cat-nav__icon--cleaning { background: #dcfce7; color: #16a34a; }
.service-cat-nav__icon--beauty { background: #fce7f3; color: #db2777; }
.service-cat-nav__icon--plumbing { background: #dbeafe; color: #2563eb; }
.service-cat-nav__icon--electrical { background: #fef3c7; color: #d97706; }
.service-cat-nav__icon--car { background: #e0e7ff; color: #4338ca; }
.service-cat-nav__icon--tutoring { background: #d1fae5; color: #059669; }
.service-cat-nav__icon--events { background: #fee2e2; color: #dc2626; }
.service-cat-nav__icon--more { background: #f1f5f9; color: #64748b; }

.service-cat-nav__label {
  font-size: 11px;
  font-weight: 600;
  color: var(--ram-text-muted);
  text-align: center;
  line-height: 1.25;
  max-width: 90px;
}

.service-cat-nav__item.is-active .service-cat-nav__label {
  color: var(--ram-primary);
  font-weight: 700;
}

/* Trust badges bar */
.services-trust {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 24px;
  padding: 20px 18px;
  background: linear-gradient(135deg, #f5f3ff 0%, #eef3fb 100%);
  border-radius: 14px;
  border: 1px solid rgba(60, 101, 245, 0.1);
}

.services-trust__item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  min-width: 0;
}

.services-trust__icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: #fff;
  color: var(--ram-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  box-shadow: 0 2px 8px rgba(60, 101, 245, 0.12);
}

.services-trust__item strong {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: var(--ram-primary-dark);
  margin-bottom: 2px;
  line-height: 1.3;
}

.services-trust__item span {
  display: block;
  font-size: 11px;
  color: var(--ram-text-muted);
  line-height: 1.4;
}

/* ── Popular Services cards ── */
.services-section { margin-bottom: 8px; }

.services-section__head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; margin-bottom: 14px;
}

.services-section__title {
  margin: 0; font-size: 1.15rem; font-weight: 800; color: var(--ram-primary-dark);
}

.services-section__view-all {
  font-size: 14px; font-weight: 600; color: var(--ram-primary);
  text-decoration: none; white-space: nowrap;
  display: inline-flex; align-items: center; gap: 4px;
}

.services-section__view-all:hover { color: var(--ram-primary-dark); }

.services-scroll {
  display: flex; gap: 16px; overflow-x: auto; overflow-y: hidden;
  padding: 4px 2px 12px; scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch; scrollbar-width: thin;
}

.services-scroll::-webkit-scrollbar { height: 6px; }
.services-scroll::-webkit-scrollbar-thumb { background: #c5cee0; border-radius: 999px; }

.service-card {
  flex: 0 0 220px; max-width: 220px; scroll-snap-align: start;
  background: #fff; border: 1px solid var(--ram-border); border-radius: 16px;
  overflow: hidden; display: flex; flex-direction: column;
  box-shadow: 0 4px 18px rgba(5, 38, 78, 0.06);
  transition: transform 0.2s, box-shadow 0.2s;
}

.service-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(5, 38, 78, 0.1);
}

.service-card__media {
  position: relative; line-height: 0; background: #eef1f6;
}

.service-card__media img {
  width: 100%; height: 130px; object-fit: cover; display: block;
}

.service-card__wish {
  position: absolute; top: 10px; right: 10px;
  width: 32px; height: 32px; border: none; border-radius: 50%;
  background: #fff; color: var(--ram-primary); font-size: 14px;
  display: inline-flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 8px rgba(5, 38, 78, 0.12); cursor: pointer;
  transition: transform 0.2s, color 0.2s, background 0.2s;
}

.service-card__wish:hover { transform: scale(1.08); }

.service-card__wish.is-active { color: #e53935; }

.service-card__body {
  padding: 12px 14px 14px; flex: 1; display: flex; flex-direction: column;
}

.service-card__title {
  margin: 0 0 4px; font-size: 14px; font-weight: 800;
  color: var(--ram-primary-dark); line-height: 1.35;
}

.service-card__desc {
  margin: 0 0 10px; font-size: 11px; line-height: 1.45;
  color: var(--ram-text-muted);
}

.service-card__meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px;
  margin-bottom: 10px; font-size: 11px; color: var(--ram-text-muted);
}

.service-card__rating { font-weight: 600; color: var(--ram-text); }
.service-card__rating i { color: var(--ram-primary); font-size: 10px; margin-right: 2px; }
.service-card__rating small { font-weight: 500; color: var(--ram-text-muted); }

.service-card__time i { margin-right: 4px; font-size: 10px; }

.service-card__price {
  font-size: 22px; font-weight: 800; color: var(--ram-primary);
  margin-bottom: 12px; line-height: 1;
}

.service-card__btn {
  display: block; width: 100%; margin-top: auto;
  padding: 10px 12px; border-radius: 10px; border: none;
  background: var(--ram-primary); color: #fff;
  font-size: 13px; font-weight: 700; text-align: center; text-decoration: none;
  transition: background 0.2s, transform 0.2s;
}

.service-card__btn:hover {
  background: var(--ram-primary-dark); color: #fff; transform: translateY(-1px);
}

/* ── Deal list card ── */
.deal-item-card {
  background: #fff; border: 1px solid var(--ram-border); border-radius: var(--ram-radius);
  height: 100%; display: flex; flex-direction: column; overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
}

.deal-item-card:hover { transform: translateY(-3px); box-shadow: var(--ram-shadow); }

.deal-item-card__media { display: block; line-height: 0; }
.deal-item-card__media img { width: 100%; height: 100px; object-fit: cover; }

.deal-item-card__body { padding: 10px 12px 12px; flex: 1; display: flex; flex-direction: column; }

.deal-item-card__title {
  font-size: 13px; font-weight: 700; margin: 0 0 4px; line-height: 1.35;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

.deal-item-card__title a { color: var(--ram-primary-dark); text-decoration: none; }

.deal-item-card__cat { font-size: 10px; color: var(--ram-primary); font-weight: 600; margin: 0 0 6px; }

.deal-item-card__footer {
  margin-top: auto; padding-top: 8px; border-top: 1px solid #eef1f6;
  display: flex; align-items: center; justify-content: space-between; gap: 6px;
}

/* ── Category tiles ── */
.deal-category-item, .job-category-item, .service_box {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: 12px 8px; background: #fff; border: 1px solid var(--ram-border);
  border-radius: var(--ram-radius-sm); height: 100%; text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
}

.deal-category-item:hover, .job-category-item:hover, .service_box:hover {
  transform: translateY(-2px); box-shadow: 0 6px 16px rgba(5,38,78,.08);
}

.deal-category-item__icon, .job-category-item__icon, .service_box .img-box {
  width: 50px; height: 50px; border-radius: 50%; overflow: hidden; margin-bottom: 6px;
}

.deal-category-item__icon img, .job-category-item__icon img, .service_box .img-box img {
  width: 100%; height: 100%; object-fit: cover;
}

.deal-category-item__label, .job-category-item__label, .service_box h5 {
  font-size: 11px; font-weight: 700; color: var(--ram-primary-dark); line-height: 1.25;
  margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

.service_box h5 a { color: inherit; text-decoration: none; }

/* ── Directory card ── */
/* ── Directory tab ── */
.directory-tab { margin: -2px 0 0; }

.dir-cat-nav {
  display: flex; gap: 10px; overflow-x: auto; padding: 4px 2px 16px;
  margin-bottom: 4px; scrollbar-width: none;
}

.dir-cat-nav::-webkit-scrollbar { display: none; }

.dir-cat-nav__item {
  flex: 0 0 auto;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  min-width: 96px; padding: 12px 14px 10px;
  border: 1px solid var(--ram-border); border-radius: 12px;
  background: #fff; cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s, color 0.2s;
}

.dir-cat-nav__item:hover {
  border-color: rgba(60, 101, 245, 0.35);
  box-shadow: 0 4px 12px rgba(5, 38, 78, 0.06);
}

.dir-cat-nav__item.is-active {
  border-color: var(--ram-primary);
  box-shadow: 0 0 0 3px rgba(60, 101, 245, 0.12);
}

.dir-cat-nav__icon {
  width: 40px; height: 40px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
}

.dir-cat-nav__icon--all { background: #ede9fe; color: #7c3aed; }
.dir-cat-nav__icon--doctors { background: #dcfce7; color: #16a34a; }
.dir-cat-nav__icon--realestate { background: #ffedd5; color: #ea580c; }
.dir-cat-nav__icon--restaurants { background: #fee2e2; color: #dc2626; }
.dir-cat-nav__icon--salons { background: #f3e8ff; color: #9333ea; }
.dir-cat-nav__icon--lawyers { background: #dbeafe; color: #2563eb; }
.dir-cat-nav__icon--tutors { background: #d1fae5; color: #059669; }
.dir-cat-nav__icon--fitness { background: #ffedd5; color: #f97316; }
.dir-cat-nav__icon--more { background: #f1f5f9; color: #64748b; }

.dir-cat-nav__label {
  font-size: 11px; font-weight: 600; color: var(--ram-text);
  text-align: center; line-height: 1.25;
}

.dir-cat-nav__item.is-active .dir-cat-nav__label {
  color: var(--ram-primary); font-weight: 700;
}

.directory-results-bar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; flex-wrap: wrap;
  padding: 10px 0 16px;
  border-bottom: 1px solid var(--ram-border);
  margin-bottom: 16px;
}

.directory-results-bar__count {
  margin: 0; font-size: 13px; color: var(--ram-text-muted);
}

.directory-results-bar__actions {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
}

.directory-sort {
  position: relative;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 32px 8px 12px;
  border: 1px solid var(--ram-border); border-radius: 10px;
  background: #fff; font-size: 13px; color: var(--ram-text);
}

.directory-sort span { color: var(--ram-text-muted); white-space: nowrap; }

.directory-sort select {
  border: none; background: transparent; font-size: 13px; font-weight: 600;
  color: var(--ram-primary-dark); cursor: pointer; appearance: none;
  padding: 0; min-width: 70px;
}

.directory-sort > .fa-chevron-down {
  position: absolute; right: 12px; font-size: 10px; color: var(--ram-text-muted);
  pointer-events: none;
}

.directory-filter-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px; border: 1px solid var(--ram-border); border-radius: 10px;
  background: #fff; font-size: 13px; font-weight: 600;
  color: var(--ram-primary-dark); cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}

.directory-filter-btn:hover {
  border-color: var(--ram-primary);
  background: rgba(60, 101, 245, 0.04);
}

.directory-filter-panel {
  margin-bottom: 14px;
}

.directory-filter-panel__search { max-width: 100%; }

/* Directory toolbar: search + type bar */
.directory-toolbar {
  flex-wrap: wrap;
  align-items: stretch;
  margin-bottom: 16px;
}

.directory-toolbar .search-box {
  flex: 1 1 220px;
  min-width: 0;
}

.directory-toolbar .directory-type-bar {
  flex: 1 1 320px;
  max-width: none;
  margin: 0;
}

/* Directory type bar: All / Individual / Company / Add Directory */
.directory-type-bar {
  display: flex;
  width: 100%;
  max-width: 520px;
  margin: 0 0 18px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(5, 38, 78, 0.08);
}

.directory-type-bar__btn {
  flex: 1 1 0;
  min-width: 0;
  padding: 11px 10px;
  border: none;
  background: #6fcf97;
  color: var(--ram-primary-dark);
  font-size: 13px;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  white-space: nowrap;
}

.directory-type-bar__btn:hover:not(.directory-type-bar__btn--add):not(.is-active) {
  background: #5ec489;
}

.directory-type-bar__btn.is-active,
.directory-type-bar__btn.filter-btn-directory.is-active {
  background: #198754;
  color: #fff;
}

.directory-type-bar__btn--add {
  flex: 1.15 1 0;
  background: var(--ram-danger);
  color: #fff;
}

.directory-type-bar__btn--add:hover {
  background: #c82333;
  color: #fff;
}

.directory-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
}

.dir-listing-card {
  background: #fff;
  border: 1px solid var(--ram-border);
  border-radius: 14px;
  overflow: hidden;
  display: flex; flex-direction: column;
  box-shadow: 0 4px 16px rgba(5, 38, 78, 0.05);
  transition: transform 0.2s, box-shadow 0.2s;
}

.dir-listing-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(5, 38, 78, 0.1);
}

.dir-listing-card__media {
  position: relative; line-height: 0; background: #eef1f6;
}

.dir-listing-card__cover {
  width: 100%; height: 100px; object-fit: cover; display: block;
}

.dir-listing-card__badge {
  position: absolute; top: 8px; left: 8px;
  padding: 3px 8px; border-radius: 6px;
  font-size: 9px; font-weight: 700; color: #fff; line-height: 1.3;
}

.dir-listing-card__badge--featured { background: #7c3aed; }
.dir-listing-card__badge--top { background: #f97316; }
.dir-listing-card__badge--verified { background: #16a34a; }
.dir-listing-card__badge--new { background: #2563eb; }
.dir-listing-card__badge--popular { background: #ec4899; }

.dir-listing-card__avatar {
  position: absolute; bottom: -18px; left: 10px;
  width: 36px; height: 36px; border-radius: 50%;
  object-fit: cover; border: 2px solid #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
  z-index: 2;
}

.dir-listing-card__verified {
  position: absolute; bottom: -10px; right: 10px;
  width: 22px; height: 22px; border-radius: 50%;
  background: #22c55e; color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 10px; border: 2px solid #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1); z-index: 2;
}

.dir-listing-card__body {
  padding: 22px 12px 12px; flex: 1;
  display: flex; flex-direction: column;
}

.dir-listing-card__name {
  margin: 0 0 2px; font-size: 12px; font-weight: 800;
  color: var(--ram-primary-dark); line-height: 1.35;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

.dir-listing-card__role {
  margin: 0 0 8px; font-size: 10px; color: var(--ram-text-muted); line-height: 1.35;
}

.dir-listing-card__meta {
  display: flex; flex-wrap: wrap; gap: 6px 10px;
  margin-bottom: 8px; font-size: 10px; color: var(--ram-text-muted);
}

.dir-listing-card__meta span { display: inline-flex; align-items: center; gap: 3px; }
.dir-listing-card__meta .fa-star { color: #f59e0b; font-size: 9px; }
.dir-listing-card__meta small { color: var(--ram-text-muted); }

.dir-listing-card__phone {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 10px; font-weight: 600; color: var(--ram-primary);
  text-decoration: none; margin-bottom: 10px;
}

.dir-listing-card__phone:hover { color: var(--ram-primary-dark); }

.dir-listing-card__btn {
  display: block; width: 100%; margin-top: auto;
  padding: 8px 10px; border-radius: 8px;
  border: 1.5px solid var(--ram-primary);
  background: transparent; color: var(--ram-primary);
  font-size: 11px; font-weight: 700; text-align: center; text-decoration: none;
  transition: background 0.2s, color 0.2s;
}

.dir-listing-card__btn:hover {
  background: var(--ram-primary); color: #fff;
}

/* ── Places tab ── */
.places-tab { margin: -2px 0 0; }

.places-tab__hero {
  display: grid;
  grid-template-columns: 1fr 1.5fr auto;
  grid-template-areas: "intro search actions";
  align-items: center;
  gap: 16px 20px;
  margin-bottom: 18px;
}

.places-tab__intro { grid-area: intro; min-width: 0; }

.places-tab__title {
  margin: 0 0 4px;
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--ram-primary-dark);
}

.places-tab__subtitle {
  margin: 0;
  font-size: 13px;
  color: var(--ram-text-muted);
}

.places-tab__search { grid-area: search; max-width: 100%; }
.places-tab__search input { font-size: 14px; padding: 12px 16px; }

.places-tab__actions {
  grid-area: actions;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.places-tab__location,
.places-tab__map {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 12px;
  border: 1px solid var(--ram-border);
  border-radius: 10px;
  background: #fff;
  font-size: 12px;
  font-weight: 600;
  color: var(--ram-primary-dark);
  cursor: pointer;
  white-space: nowrap;
}

.places-tab__location .fa-map-marker-alt,
.places-tab__map .fa-map { color: var(--ram-primary); }

.places-tab__map { color: var(--ram-primary); }

.places-tab__add {
  padding: 9px 14px !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  border-radius: 10px !important;
  white-space: nowrap;
}

.places-cat-nav {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 4px 2px 14px;
  margin-bottom: 6px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.places-cat-nav::-webkit-scrollbar { display: none; }

.places-cat-nav__item {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  min-width: 88px;
  padding: 10px 12px 12px;
  border: 1px solid var(--ram-border);
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
  position: relative;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.places-cat-nav__item::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 18%;
  right: 18%;
  height: 3px;
  border-radius: 3px;
  background: transparent;
}

.places-cat-nav__item.is-active {
  border-color: var(--ram-primary);
  box-shadow: 0 0 0 3px rgba(60, 101, 245, 0.1);
}

.places-cat-nav__item.is-active::after {
  background: var(--ram-primary);
}

.places-cat-nav__icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.places-cat-nav__icon--all { background: #ede9fe; color: #7c3aed; }
.places-cat-nav__icon--restaurants { background: #ffedd5; color: #ea580c; }
.places-cat-nav__icon--cafes { background: #fef3c7; color: #b45309; }
.places-cat-nav__icon--hotels { background: #dbeafe; color: #2563eb; }
.places-cat-nav__icon--gyms { background: #ccfbf1; color: #0d9488; }
.places-cat-nav__icon--parks { background: #dcfce7; color: #16a34a; }
.places-cat-nav__icon--shopping { background: #f3e8ff; color: #9333ea; }
.places-cat-nav__icon--hospitals { background: #fee2e2; color: #dc2626; }
.places-cat-nav__icon--more { background: #f1f5f9; color: #64748b; }

.places-cat-nav__label {
  font-size: 11px;
  font-weight: 600;
  color: var(--ram-text-muted);
  text-align: center;
  line-height: 1.25;
}

.places-cat-nav__item.is-active .places-cat-nav__label {
  color: var(--ram-primary);
  font-weight: 700;
}

.places-results-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 8px 0 16px;
  border-bottom: 1px solid var(--ram-border);
  margin-bottom: 16px;
}

.places-results-bar__count {
  margin: 0;
  font-size: 13px;
  color: var(--ram-text-muted);
}

.places-results-bar__actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.places-sort {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 32px 8px 12px;
  border: 1px solid var(--ram-border);
  border-radius: 10px;
  background: #fff;
  font-size: 13px;
}

.places-sort span { color: var(--ram-text-muted); }

.places-sort select {
  border: none;
  background: transparent;
  font-size: 13px;
  font-weight: 600;
  color: var(--ram-primary-dark);
  cursor: pointer;
  appearance: none;
}

.places-sort > .fa-chevron-down {
  position: absolute;
  right: 12px;
  font-size: 10px;
  color: var(--ram-text-muted);
  pointer-events: none;
}

.places-filter-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border: 1px solid var(--ram-border);
  border-radius: 10px;
  background: #fff;
  font-size: 13px;
  font-weight: 600;
  color: var(--ram-primary-dark);
  cursor: pointer;
}

.places-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
}

.place-card {
  background: #fff;
  border: 1px solid var(--ram-border);
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 16px rgba(5, 38, 78, 0.05);
  transition: transform 0.2s, box-shadow 0.2s;
}

.place-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(5, 38, 78, 0.1);
}

.place-card__media {
  position: relative;
  line-height: 0;
  background: #eef1f6;
}

.place-card__media img {
  width: 100%;
  height: 110px;
  object-fit: cover;
  display: block;
}

.place-card__badge {
  position: absolute;
  top: 8px;
  left: 8px;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 9px;
  font-weight: 700;
  color: #fff;
}

.place-card__badge--top { background: #16a34a; }
.place-card__badge--popular { background: #f97316; }
.place-card__badge--featured { background: #2563eb; }
.place-card__badge--trending { background: #9333ea; }

.place-card__wish {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 30px;
  height: 30px;
  border: none;
  border-radius: 50%;
  background: #fff;
  color: var(--ram-primary);
  font-size: 13px;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.place-card__wish.is-active { color: #e53935; }

.place-card__body { padding: 12px; flex: 1; }

.place-card__title {
  margin: 0 0 2px;
  font-size: 12px;
  font-weight: 800;
  color: var(--ram-primary-dark);
  line-height: 1.35;
}

.place-card__cat {
  margin: 0 0 8px;
  font-size: 10px;
  color: var(--ram-text-muted);
}

.place-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  margin-bottom: 6px;
  font-size: 10px;
  color: var(--ram-text-muted);
}

.place-card__meta span { display: inline-flex; align-items: center; gap: 3px; }
.place-card__meta .fa-star { color: #f59e0b; font-size: 9px; }

.place-card__hours {
  margin: 0;
  font-size: 10px;
  color: var(--ram-text-muted);
}

.place-card__open {
  color: #16a34a;
  font-weight: 700;
  margin-right: 4px;
}

/* Legacy directory card (home tab) */
.directory-card {
  background: #fff; border: 1px solid var(--ram-border); border-radius: 14px;
  height: 100%; overflow: hidden; display: flex; flex-direction: column;
  transition: transform 0.2s, box-shadow 0.2s;
}

.directory-card:hover { transform: translateY(-2px); box-shadow: var(--ram-shadow); }

.directory-card__media { display: block; aspect-ratio: 4/3; overflow: hidden; background: #f0f4fa; }
.directory-card__media img { width: 100%; height: 100%; object-fit: cover; }

.directory-card__body { padding: 10px 12px 12px; flex: 1; display: flex; flex-direction: column; }

.directory-card__title {
  font-size: 13px; font-weight: 700; margin: 0 0 4px; line-height: 1.3;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

.directory-card__title a { color: var(--ram-primary-dark); text-decoration: none; }

.directory-card__category { font-size: 10px; color: var(--ram-text-muted); margin: 0 0 6px; }

.directory-card__rate { font-size: 10px; color: var(--ram-text-muted); margin-top: auto; padding-top: 6px; border-top: 1px solid #eef1f6; }

/* ── FAQ ── */
.faq-accordion .accordion-item {
  border: 1px solid var(--ram-border); border-radius: 10px !important;
  margin-bottom: 8px; overflow: hidden;
}

.faq-accordion .accordion-button {
  font-size: 13px; font-weight: 600; padding: 12px 14px;
  background: #fff; color: var(--ram-primary-dark);
}

.faq-accordion .accordion-button:not(.collapsed) {
  background: rgba(60, 101, 245, 0.08); color: var(--ram-primary);
}

.faq-accordion .accordion-body { font-size: 13px; color: var(--ram-text-muted); padding: 12px 14px; }

/* ── Help tab ── */
.help-tab { margin-top: 4px; }

.help-tab__sos {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  color: #fff;
  margin-bottom: 14px;
}

.help-tab__sos-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #fff;
  color: #dc2626;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.04em;
}

.help-tab__sos-text h4 { margin: 0; font-size: 16px; font-weight: 800; color: #fff; }
.help-tab__sos-text p { margin: 2px 0 0; font-size: 11px; opacity: 0.95; }

.help-tab__sos-arrow {
  margin-left: auto;
  border: none;
  background: transparent;
  color: #fff;
  font-size: 14px;
}

.help-section { margin-bottom: 14px; }

.help-section__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 0 0 10px;
}

.help-section__title {
  margin: 0;
  font-size: 16px;
  font-weight: 800;
  color: var(--ram-primary-dark);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.help-section__title i { color: #ef4444; font-size: 14px; }

.help-section__view {
  font-size: 12px;
  font-weight: 700;
  color: var(--ram-primary);
  text-decoration: none;
  white-space: nowrap;
}

.help-section__view:hover { color: var(--ram-primary-dark); }

.help-card-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.help-card {
  position: relative;
  background: #fff;
  border: 1px solid #e5eaf3;
  border-radius: 12px;
  padding: 8px 8px 10px;
  text-align: center;
  min-height: 150px;
}

.help-card img {
  width: 100%;
  height: 56px;
  object-fit: contain;
  margin-bottom: 6px;
}

.help-card h6 {
  margin: 0 0 4px;
  font-size: 13px;
  font-weight: 800;
  color: var(--ram-primary-dark);
}

.help-card p {
  margin: 0;
  font-size: 10px;
  line-height: 1.3;
  color: var(--ram-text-muted);
}

.help-card--fast { background: #f8fbff; }

.help-card__badge {
  position: absolute;
  top: 6px;
  left: 6px;
  font-size: 8px;
  font-weight: 800;
  color: #15803d;
  background: #dcfce7;
  border-radius: 999px;
  padding: 2px 6px;
}

.help-category-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
}

.help-category {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  text-decoration: none;
  color: var(--ram-primary-dark);
  border: 1px solid #e5eaf3;
  border-radius: 12px;
  background: #fff;
  padding: 10px 8px;
  text-align: center;
  min-height: 88px;
}

.help-category__icon {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: #f1f5f9;
  font-size: 16px;
}

.help-category span:last-child {
  font-size: 10px;
  font-weight: 700;
  line-height: 1.25;
}

/* ── Local Pages tab ── */
.local-pages-tab { margin-top: 2px; }

.local-pages-tab__head { margin-bottom: 10px; }
.local-pages-tab__title {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--ram-primary-dark);
}
.local-pages-tab__subtitle {
  margin: 2px 0 0;
  font-size: 12px;
  color: var(--ram-text-muted);
}

.local-pages-tab__search { margin-bottom: 12px; }
.local-pages-tab__search input { border-radius: 12px; font-size: 13px; }

.local-pages-cat-nav {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 4px 2px 12px;
  margin-bottom: 2px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.local-pages-cat-nav::-webkit-scrollbar { display: none; }

.local-pages-cat-nav__item {
  flex: 0 0 auto;
  min-width: 72px;
  border: 1px solid var(--ram-border);
  background: #fff;
  border-radius: 12px;
  padding: 8px 8px 9px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  font-weight: 700;
  color: var(--ram-primary-dark);
}
.local-pages-cat-nav__item.is-active {
  border-color: var(--ram-primary);
  box-shadow: 0 0 0 3px rgba(60, 101, 245, 0.1);
}

.local-pages-cat-nav__icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
}
.local-pages-cat-nav__icon--all { background: #e0e7ff; color: #4f46e5; }
.local-pages-cat-nav__icon--services { background: #ede9fe; color: #7c3aed; }
.local-pages-cat-nav__icon--shopping { background: #dcfce7; color: #16a34a; }
.local-pages-cat-nav__icon--food { background: #fee2e2; color: #dc2626; }
.local-pages-cat-nav__icon--places { background: #dbeafe; color: #2563eb; }
.local-pages-cat-nav__icon--events { background: #ffedd5; color: #ea580c; }
.local-pages-cat-nav__icon--more { background: #f1f5f9; color: #64748b; }

.local-pages-section { margin-top: 12px; }
.local-pages-section__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}
.local-pages-section__head h5 {
  margin: 0;
  font-size: 14px;
  font-weight: 800;
  color: var(--ram-primary-dark);
}
.local-pages-section__head a {
  font-size: 11px;
  font-weight: 700;
  color: var(--ram-danger);
  text-decoration: none;
}

.local-featured-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
.local-featured-card {
  border: 1px solid var(--ram-border);
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
}
.local-featured-card img { width: 100%; height: 88px; object-fit: cover; }
.local-featured-card__body { padding: 7px 8px 9px; }
.local-featured-card h6 {
  margin: 0 0 3px;
  font-size: 11px;
  font-weight: 800;
  color: var(--ram-primary-dark);
}
.local-featured-card p {
  margin: 0 0 5px;
  font-size: 9px;
  color: var(--ram-text-muted);
}
.local-featured-card__meta {
  display: flex;
  gap: 7px;
  align-items: center;
  flex-wrap: wrap;
  font-size: 9px;
  color: var(--ram-text-muted);
}
.local-featured-card__meta .fa-star { color: #f59e0b; }
.local-featured-card__meta .is-open {
  color: #15803d;
  background: #dcfce7;
  border-radius: 999px;
  padding: 1px 6px;
  font-weight: 700;
}

.local-pop-list { display: grid; gap: 8px; }
.local-pop-item {
  display: grid;
  grid-template-columns: 32px 1fr auto;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--ram-border);
  border-radius: 12px;
  background: #fff;
  padding: 8px 10px;
}
.local-pop-item__logo {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f97316, #f43f5e);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.local-pop-item h6 {
  margin: 0 0 2px;
  font-size: 12px;
  font-weight: 800;
  color: var(--ram-primary-dark);
}
.local-pop-item p {
  margin: 0 0 2px;
  font-size: 9px;
  color: var(--ram-text-muted);
}
.local-pop-item__meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 9px;
  color: var(--ram-text-muted);
}
.local-pop-item__meta .fa-star { color: #f59e0b; }
.local-pop-item__meta .is-open {
  color: #15803d;
  background: #dcfce7;
  border-radius: 999px;
  padding: 1px 6px;
  font-weight: 700;
}

.local-follow-btn {
  border: 1px solid #fca5a5;
  color: #ef4444;
  background: #fff;
  border-radius: 8px;
  padding: 5px 12px;
  font-size: 10px;
  font-weight: 700;
}
.local-follow-btn.is-following {
  border-color: #86efac;
  color: #15803d;
  background: #f0fdf4;
}

.local-near-map {
  position: relative;
  height: 170px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--ram-border);
  background:
    radial-gradient(circle at 20% 30%, rgba(255,255,255,0.9) 0 16px, transparent 17px),
    radial-gradient(circle at 76% 70%, rgba(255,255,255,0.85) 0 16px, transparent 17px),
    linear-gradient(135deg, #eef2f7 0%, #e2e8f0 100%);
}
.local-near-map::before,
.local-near-map::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.local-near-map::before {
  background:
    linear-gradient(0deg, rgba(148,163,184,0.18) 1px, transparent 1px) 0 0 / 100% 24px,
    linear-gradient(90deg, rgba(148,163,184,0.18) 1px, transparent 1px) 0 0 / 24px 100%;
}
.local-near-map__pulse {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 16px;
  height: 16px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: #2563eb;
  box-shadow: 0 0 0 8px rgba(37,99,235,0.22);
}
.local-near-map__pin {
  position: absolute;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 11px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.14);
}
.local-near-map__pin--1 { left: 16%; top: 40%; background: #ef4444; }
.local-near-map__pin--2 { left: 36%; top: 22%; background: #16a34a; }
.local-near-map__pin--3 { left: 74%; top: 50%; background: #f59e0b; }
.local-near-map__pin--4 { left: 60%; top: 26%; background: #7c3aed; }

/* ── Groups tab ── */
.groups-tab { margin-top: 2px; }
.groups-tab__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.groups-tab__title { margin: 0; font-size: 1.3rem; font-weight: 800; color: var(--ram-primary-dark); }
.groups-tab__create { font-size: 12px; font-weight: 700; color: #7c3aed; text-decoration: none; }
.groups-tab__subtitle { margin: 2px 0 10px; font-size: 12px; color: var(--ram-text-muted); }

.groups-filter-tabs {
  display: inline-flex;
  background: #f1f3f8;
  border-radius: 12px;
  padding: 4px;
  margin-bottom: 12px;
}
.groups-filter-tabs__btn {
  min-width: 96px;
  border: none;
  background: transparent;
  border-radius: 10px;
  padding: 8px 14px;
  font-size: 12px;
  font-weight: 700;
  color: var(--ram-text-muted);
}
.groups-filter-tabs__btn.is-active { background: #fff; color: #6d28d9; box-shadow: 0 2px 10px rgba(5, 38, 78, 0.08); }

.groups-tab__search { margin-bottom: 10px; }
.groups-tab__search input { border-radius: 12px; }

.groups-panel.is-hidden { display: none; }
.groups-section { margin-top: 12px; }
.groups-section__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.groups-section__head h5 { margin: 0; font-size: 14px; font-weight: 800; color: var(--ram-primary-dark); }
.groups-section__head a { font-size: 11px; font-weight: 700; color: #7c3aed; text-decoration: none; }

.group-cats {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
}
.group-cats__item {
  border: 1px solid var(--ram-border);
  background: #fff;
  border-radius: 12px;
  padding: 10px 8px;
  text-align: center;
  color: var(--ram-primary-dark);
}
.group-cats__item.is-active { border-color: #7c3aed; box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.1); }
.group-cats__icon { width: 36px; height: 36px; margin: 0 auto 6px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; font-size: 16px; }
.group-cats__icon--community { background: #ede9fe; color: #7c3aed; }
.group-cats__icon--hobbies { background: #dcfce7; color: #16a34a; }
.group-cats__icon--education { background: #dbeafe; color: #2563eb; }
.group-cats__icon--business { background: #ffedd5; color: #ea580c; }
.group-cats__icon--health { background: #fee2e2; color: #dc2626; }
.group-cats__icon--technology { background: #e0e7ff; color: #4f46e5; }
.group-cats__item span { display: block; font-size: 11px; font-weight: 700; line-height: 1.25; }
.group-cats__item small { display: block; font-size: 9px; color: var(--ram-text-muted); margin-top: 2px; }

.groups-list { display: grid; gap: 10px; }
.group-card {
  display: grid;
  grid-template-columns: 132px 1fr auto;
  gap: 12px;
  border: 1px solid var(--ram-border);
  border-radius: 14px;
  background: #fff;
  padding: 8px;
}
.group-card img { width: 132px; height: 96px; border-radius: 10px; object-fit: cover; }
.group-card__body { min-width: 0; }
.group-card h6 { margin: 0 0 3px; font-size: 13px; font-weight: 800; color: var(--ram-primary-dark); }
.group-card__topic { margin: 0 0 4px; font-size: 10px; color: #7c3aed; font-weight: 700; }
.group-card__desc { margin: 0 0 7px; font-size: 10px; color: var(--ram-text-muted); line-height: 1.35; }
.group-card__members { margin: 0; font-size: 10px; color: var(--ram-text-muted); }

.group-join-btn {
  align-self: center;
  border: 1px solid #a78bfa;
  background: #fff;
  color: #7c3aed;
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 11px;
  font-weight: 700;
}
.group-join-btn.is-joined { border-color: #86efac; color: #15803d; background: #f0fdf4; }

.group-new-scroll { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.group-new-scroll::-webkit-scrollbar { display: none; }
.group-new-card {
  flex: 0 0 96px;
  border: 1px solid var(--ram-border);
  border-radius: 12px;
  background: #fff;
  padding: 6px;
}
.group-new-card img { width: 100%; height: 64px; border-radius: 8px; object-fit: cover; }
.group-new-card h6 { margin: 5px 0 2px; font-size: 10px; font-weight: 700; color: var(--ram-primary-dark); line-height: 1.2; }
.group-new-card p { margin: 0; font-size: 9px; color: var(--ram-text-muted); }

.groups-categories-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.groups-cat-card {
  border: 1px solid var(--ram-border);
  border-radius: 12px;
  background: #fff;
  padding: 14px 10px;
  text-align: center;
  color: var(--ram-primary-dark);
}
.groups-cat-card i { font-size: 20px; color: #7c3aed; margin-bottom: 6px; display: block; }
.groups-cat-card span { display: block; font-size: 12px; font-weight: 700; }
.groups-cat-card small { display: block; font-size: 10px; color: var(--ram-text-muted); margin-top: 2px; }

/* ── Property tab ── */
.property-tab { margin-top: 2px; padding-bottom: 70px; }

.property-tab__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.property-tab__title {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--ram-primary-dark);
}

.property-tab__count {
  margin: 2px 0 0;
  font-size: 12px;
  color: var(--ram-text-muted);
}

.property-tab__head-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.property-tab__icon-btn {
  width: 36px;
  height: 36px;
  border: 1px solid var(--ram-border);
  border-radius: 10px;
  background: #fff;
  color: var(--ram-primary-dark);
  font-size: 14px;
  cursor: pointer;
}

.property-sort {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 28px 8px 12px;
  border: 1px solid var(--ram-border);
  border-radius: 10px;
  background: #fff;
  font-size: 12px;
}

.property-sort span { color: var(--ram-text-muted); font-weight: 600; }

.property-sort select {
  border: none;
  background: transparent;
  font-size: 12px;
  font-weight: 700;
  color: var(--ram-primary-dark);
  cursor: pointer;
  appearance: none;
}

.property-sort > .fa-chevron-down {
  position: absolute;
  right: 10px;
  font-size: 9px;
  color: var(--ram-text-muted);
  pointer-events: none;
}

.property-filter-chips {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 2px 2px 10px;
  margin-bottom: 10px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.property-filter-chips::-webkit-scrollbar { display: none; }

.property-filter-chips__filters,
.property-filter-chips__chip,
.property-filter-chips__clear {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border: 1px solid var(--ram-border);
  border-radius: 999px;
  background: #fff;
  font-size: 11px;
  font-weight: 600;
  color: var(--ram-primary-dark);
  white-space: nowrap;
  cursor: pointer;
}

.property-filter-chips__filters { background: #f8fafc; }

.property-filter-chips__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--ram-primary);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
}

.property-filter-chips__chip.is-active {
  border-color: var(--ram-primary);
  background: rgba(60, 101, 245, 0.06);
}

.property-filter-chips__chip .fa-times { font-size: 9px; opacity: 0.6; }

.property-filter-chips__clear {
  border: none;
  background: transparent;
  color: var(--ram-primary);
  font-weight: 700;
}

.property-active-filters {
  padding: 12px 14px;
  margin-bottom: 12px;
  border: 1px solid var(--ram-border);
  border-radius: 12px;
  background: #f8fafc;
}

.property-active-filters__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.property-active-filters__label {
  font-size: 12px;
  font-weight: 800;
  color: #15803d;
}

.property-active-filters__modify {
  border: none;
  background: transparent;
  font-size: 11px;
  font-weight: 700;
  color: var(--ram-primary);
  cursor: pointer;
}

.property-active-filters__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.property-active-filters__item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 11px;
  font-weight: 700;
  color: var(--ram-primary-dark);
  line-height: 1.3;
}

.property-active-filters__item i {
  color: #16a34a;
  font-size: 14px;
  margin-top: 2px;
}

.property-active-filters__item small {
  display: block;
  font-size: 9px;
  font-weight: 600;
  color: var(--ram-text-muted);
}

.property-type-nav {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 2px 2px 12px;
  margin-bottom: 12px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.property-type-nav::-webkit-scrollbar { display: none; }

.property-type-nav__item {
  flex: 0 0 auto;
  padding: 8px 14px;
  border: 1px solid var(--ram-border);
  border-radius: 999px;
  background: #fff;
  font-size: 12px;
  font-weight: 700;
  color: var(--ram-primary-dark);
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.property-type-nav__item small {
  font-weight: 600;
  color: var(--ram-text-muted);
}

.property-type-nav__item.is-active {
  background: var(--ram-primary);
  border-color: var(--ram-primary);
  color: #fff;
}

.property-type-nav__item.is-active small { color: rgba(255, 255, 255, 0.85); }

.property-tab__search { margin-bottom: 14px; }
.property-tab__search input { border-radius: 12px; font-size: 13px; }

.property-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.property-card {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 12px;
  padding: 10px;
  border: 1px solid var(--ram-border);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 4px 14px rgba(5, 38, 78, 0.05);
  transition: box-shadow 0.2s, transform 0.2s;
}

.property-card:hover {
  box-shadow: 0 8px 22px rgba(5, 38, 78, 0.08);
  transform: translateY(-1px);
}

.property-card__media {
  position: relative;
  line-height: 0;
  border-radius: 10px;
  overflow: hidden;
  background: #eef1f6;
}

.property-card__media img {
  width: 100%;
  height: 120px;
  object-fit: cover;
  display: block;
}

.property-card__badge {
  position: absolute;
  top: 6px;
  left: 6px;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 9px;
  font-weight: 800;
  color: #fff;
}

.property-card__badge--featured { background: #16a34a; }
.property-card__badge--new { background: #7c3aed; }
.property-card__badge--hot { background: #f97316; }

.property-card__photos {
  position: absolute;
  bottom: 6px;
  left: 6px;
  padding: 3px 7px;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.65);
  color: #fff;
  font-size: 9px;
  font-weight: 700;
}

.property-card__photos i { margin-right: 3px; }

.property-card__body { min-width: 0; display: flex; flex-direction: column; }

.property-card__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 4px;
}

.property-card__title {
  margin: 0;
  font-size: 14px;
  font-weight: 800;
  color: var(--ram-primary-dark);
  line-height: 1.3;
}

.property-card__wish {
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  border: none;
  border-radius: 50%;
  background: #f1f5f9;
  color: var(--ram-primary);
  font-size: 12px;
  cursor: pointer;
}

.property-card__wish.is-active { color: #e53935; }

.property-card__location {
  margin: 0 0 6px;
  font-size: 11px;
  color: var(--ram-text-muted);
}

.property-card__location i { margin-right: 4px; color: var(--ram-primary); }

.property-card__price-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}

.property-card__price {
  font-size: 15px;
  font-weight: 900;
  color: #15803d;
}

.property-card__status {
  padding: 3px 8px;
  border-radius: 6px;
  background: #dbeafe;
  color: #2563eb;
  font-size: 9px;
  font-weight: 800;
}

.property-card__status--rent {
  background: #ede9fe;
  color: #7c3aed;
}

.property-card__specs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 8px;
  font-size: 10px;
  color: var(--ram-text-muted);
}

.property-card__specs span { display: inline-flex; align-items: center; gap: 4px; }
.property-card__specs i { color: var(--ram-primary); font-size: 9px; }

.property-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}

.property-card__tags span {
  padding: 3px 8px;
  border-radius: 6px;
  background: #f1f5f9;
  font-size: 9px;
  font-weight: 600;
  color: var(--ram-text-muted);
}

.property-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: auto;
  padding-top: 8px;
  border-top: 1px solid #eef1f6;
}

.property-card__agent {
  font-size: 10px;
  font-weight: 600;
  color: var(--ram-text-muted);
}

.property-card__agent .fa-check-circle { color: #2563eb; margin-left: 2px; }

.property-card__call {
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--ram-primary);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  text-decoration: none;
  transition: background 0.2s;
}

.property-card__call:hover { background: var(--ram-primary-dark); color: #fff; }

.property-fab {
  position: sticky;
  bottom: 12px;
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-top: 16px;
  z-index: 5;
}

.property-fab__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border: none;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(5, 38, 78, 0.15);
  transition: transform 0.2s, box-shadow 0.2s;
}

.property-fab__btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(5, 38, 78, 0.2);
}

.property-fab__btn--map {
  background: #fff;
  color: var(--ram-primary-dark);
  border: 1px solid var(--ram-border);
}

.property-fab__btn--save {
  background: var(--ram-primary);
  color: #fff;
}

@media (min-width: 992px) {
  .property-list { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .property-card { grid-template-columns: 160px 1fr; padding: 12px; }
  .property-card__media img { height: 130px; }
  .property-active-filters__grid { grid-template-columns: repeat(4, 1fr); }
}

/* ── Jobs tab ── */
.jobs-tab { margin-top: -2px; }

.jobs-hero {
  margin: 0 -12px 14px;
  padding: 18px 14px 16px;
  border-radius: 0 0 18px 18px;
  background: linear-gradient(135deg, #7c3aed 0%, #4f46e5 45%, #3b82f6 100%);
  color: #fff;
}

.jobs-hero__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.jobs-hero__title {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 800;
  color: #fff;
}

.jobs-hero__subtitle {
  margin: 4px 0 0;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.9);
}

.jobs-hero__notify {
  position: relative;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 16px;
  cursor: pointer;
}

.jobs-hero__notify-badge {
  position: absolute;
  top: -2px;
  right: -2px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 999px;
  background: #ef4444;
  color: #fff;
  font-size: 9px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.jobs-mode-toggle {
  display: flex;
  gap: 0;
  padding: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
}

.jobs-mode-toggle__btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 12px;
  border: none;
  border-radius: 999px;
  background: transparent;
  color: rgba(255, 255, 255, 0.85);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.jobs-mode-toggle__btn.is-active {
  background: #fff;
  color: #4f46e5;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
}

.jobs-panel.is-hidden { display: none; }

.jobs-search-row {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 14px;
}

.jobs-tab__search { flex: 1; margin: 0; }
.jobs-tab__search input { border-radius: 12px; font-size: 13px; }

.jobs-filter-btn {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  border: 1px solid var(--ram-border);
  border-radius: 12px;
  background: #fff;
  font-size: 12px;
  font-weight: 700;
  color: var(--ram-primary-dark);
  cursor: pointer;
  white-space: nowrap;
}

.jobs-section { margin-bottom: 16px; }

.jobs-section__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.jobs-section__head h5 {
  margin: 0;
  font-size: 14px;
  font-weight: 800;
  color: var(--ram-primary-dark);
}

.jobs-section__head a {
  font-size: 11px;
  font-weight: 700;
  color: var(--ram-primary);
  text-decoration: none;
}

.jobs-type-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
}

.jobs-type-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 12px 8px;
  border: 1px solid var(--ram-border);
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
  text-align: center;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.jobs-type-card.is-active {
  border-color: var(--ram-primary);
  box-shadow: 0 0 0 3px rgba(60, 101, 245, 0.1);
}

.jobs-type-card span:not(.jobs-type-card__icon) {
  font-size: 11px;
  font-weight: 700;
  color: var(--ram-primary-dark);
  line-height: 1.25;
}

.jobs-type-card small {
  font-size: 9px;
  color: var(--ram-text-muted);
}

.jobs-type-card__icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}

.jobs-type-card__icon--hourly { background: #ede9fe; color: #7c3aed; }
.jobs-type-card__icon--day { background: #dcfce7; color: #16a34a; }
.jobs-type-card__icon--full { background: #dbeafe; color: #2563eb; }
.jobs-type-card__icon--part { background: #ffedd5; color: #ea580c; }
.jobs-type-card__icon--contract { background: #ccfbf1; color: #0d9488; }
.jobs-type-card__icon--casual { background: #fce7f3; color: #db2777; }
.jobs-type-card__icon--onsite { background: #dcfce7; color: #16a34a; }
.jobs-type-card__icon--hybrid { background: #ede9fe; color: #7c3aed; }
.jobs-type-card__icon--remote { background: #dbeafe; color: #2563eb; }

.jobs-cat-scroll {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 6px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.jobs-cat-scroll::-webkit-scrollbar { display: none; }

.jobs-cat-card {
  flex: 0 0 auto;
  min-width: 100px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 12px 10px;
  border: 1px solid var(--ram-border);
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
  text-align: center;
}

.jobs-cat-card.is-active {
  border-color: var(--ram-primary);
  box-shadow: 0 0 0 3px rgba(60, 101, 245, 0.1);
}

.jobs-cat-card span:not(.jobs-cat-card__icon) {
  font-size: 10px;
  font-weight: 700;
  color: var(--ram-primary-dark);
  line-height: 1.25;
}

.jobs-cat-card small {
  font-size: 9px;
  color: var(--ram-text-muted);
}

.jobs-cat-card__icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
}

.jobs-cat-card__icon--design { background: #ede9fe; color: #7c3aed; }
.jobs-cat-card__icon--dev { background: #dcfce7; color: #16a34a; }
.jobs-cat-card__icon--marketing { background: #ffedd5; color: #ea580c; }
.jobs-cat-card__icon--sales { background: #fce7f3; color: #db2777; }
.jobs-cat-card__icon--support { background: #dbeafe; color: #2563eb; }
.jobs-cat-card__icon--hr { background: #ccfbf1; color: #0d9488; }

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

.jobs-listing-card {
  position: relative;
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 12px;
  padding: 12px 40px 12px 12px;
  border: 1px solid var(--ram-border);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 4px 14px rgba(5, 38, 78, 0.05);
  transition: box-shadow 0.2s, transform 0.2s;
}

.jobs-listing-card:hover {
  box-shadow: 0 8px 22px rgba(5, 38, 78, 0.08);
  transform: translateY(-1px);
}

.jobs-listing-card__logo {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 800;
  color: #fff;
}

.jobs-listing-card__logo--aw { background: linear-gradient(135deg, #3b82f6, #2563eb); }
.jobs-listing-card__logo--dc { background: linear-gradient(135deg, #16a34a, #15803d); }
.jobs-listing-card__logo--tf { background: linear-gradient(135deg, #f97316, #ea580c); }
.jobs-listing-card__logo--px { background: linear-gradient(135deg, #7c3aed, #6d28d9); }

.jobs-listing-card__body { min-width: 0; }

.jobs-listing-card__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 2px;
}

.jobs-listing-card h6 {
  margin: 0;
  font-size: 13px;
  font-weight: 800;
  color: var(--ram-primary-dark);
  line-height: 1.3;
}

.jobs-listing-card__time {
  flex: 0 0 auto;
  font-size: 10px;
  color: var(--ram-text-muted);
  white-space: nowrap;
}

.jobs-listing-card__company {
  margin: 0 0 6px;
  font-size: 11px;
  color: var(--ram-text-muted);
}

.jobs-listing-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  font-size: 10px;
  color: var(--ram-text-muted);
}

.jobs-listing-card__meta span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.jobs-listing-card__meta i { color: var(--ram-primary); font-size: 9px; }

.jobs-listing-card__save {
  position: absolute;
  right: 12px;
  bottom: 12px;
  width: 28px;
  height: 28px;
  border: none;
  border-radius: 8px;
  background: #f1f5f9;
  color: var(--ram-primary);
  font-size: 12px;
  cursor: pointer;
}

.jobs-listing-card__save.is-active { color: #7c3aed; }

.jobs-cta {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  margin-top: 8px;
  border-radius: 14px;
  background: linear-gradient(135deg, #ede9fe 0%, #e0e7ff 100%);
}

.jobs-cta__icon {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #fff;
  color: #7c3aed;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.jobs-cta__text {
  flex: 1;
  min-width: 0;
}

.jobs-cta__text p {
  margin: 0;
  font-size: 12px;
  font-weight: 600;
  color: var(--ram-primary-dark);
  line-height: 1.4;
}

.jobs-cta__btn {
  flex: 0 0 auto;
  padding: 8px 14px;
  border: none;
  border-radius: 999px;
  background: #fff;
  color: var(--ram-primary);
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
}

.jobs-post-card {
  padding: 20px 16px;
  border: 1px solid var(--ram-border);
  border-radius: 14px;
  background: #fff;
}

.jobs-post-card h3 {
  margin: 0 0 6px;
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--ram-primary-dark);
}

.jobs-post-card > p {
  margin: 0 0 16px;
  font-size: 13px;
  color: var(--ram-text-muted);
}

.jobs-post-form {
  display: grid;
  gap: 10px;
}

.jobs-post-form input,
.jobs-post-form select,
.jobs-post-form textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--ram-border);
  border-radius: 10px;
  font-size: 13px;
}

.jobs-post-form__submit {
  padding: 12px;
  border: none;
  border-radius: 10px;
  background: linear-gradient(135deg, #7c3aed, #4f46e5);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

@media (min-width: 992px) {
  .jobs-hero { margin: 0 0 16px; border-radius: 16px; padding: 22px 20px 18px; }
  .jobs-type-grid { grid-template-columns: repeat(5, 1fr); }
  .jobs-list { grid-template-columns: repeat(2, 1fr); gap: 12px; }
}

/* ── Q/A tab ── */
.qa-tab { margin-top: 2px; }

.qa-subtabs {
  display: flex;
  gap: 0;
  padding: 4px;
  margin-bottom: 16px;
  background: #f1f3f8;
  border-radius: 12px;
}

.qa-subtabs__btn {
  flex: 1;
  padding: 10px 16px;
  border: none;
  border-radius: 10px;
  background: transparent;
  font-size: 14px;
  font-weight: 700;
  color: var(--ram-text-muted);
  cursor: pointer;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}

.qa-subtabs__btn.is-active {
  background: var(--ram-primary);
  color: #fff;
  box-shadow: 0 4px 14px rgba(60, 101, 245, 0.28);
}

.qa-panel.is-hidden { display: none; }

.qa-layout {
  display: block;
}

.qa-layout__aside { display: none; }

.qa-hero {
  position: relative;
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 12px;
  padding: 20px 18px;
  margin-bottom: 14px;
  border-radius: 16px;
  background: linear-gradient(135deg, #0a1f44 0%, #152a52 55%, #1e3a6e 100%);
  overflow: hidden;
  min-height: 150px;
}

.qa-hero__text {
  position: relative;
  z-index: 2;
  flex: 1;
  min-width: 0;
}

.qa-hero__title {
  margin: 0 0 6px;
  font-size: 1.25rem;
  font-weight: 800;
  color: #fff;
}

.qa-hero__subtitle {
  margin: 0 0 14px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.4;
}

.qa-hero__form {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 4px 4px 14px;
  background: #fff;
  border-radius: 999px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.qa-hero__input {
  flex: 1;
  min-width: 0;
  border: none;
  background: transparent;
  font-size: 13px;
  color: var(--ram-primary-dark);
  outline: none;
}

.qa-hero__input::placeholder { color: #9aa3b5; }

.qa-hero__send {
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 50%;
  background: var(--ram-primary);
  color: #fff;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}

.qa-hero__send:hover {
  background: var(--ram-primary-dark);
  transform: scale(1.04);
}

.qa-hero__art {
  position: relative;
  flex: 0 0 88px;
  min-height: 100px;
}

.qa-hero__bubble {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-weight: 800;
  color: #fff;
}

.qa-hero__bubble--lg {
  top: 8px;
  right: 4px;
  width: 52px;
  height: 52px;
  background: linear-gradient(135deg, #7c3aed, #a855f7);
  font-size: 22px;
  box-shadow: 0 6px 18px rgba(124, 58, 237, 0.35);
}

.qa-hero__bubble--sm {
  top: 52px;
  right: 36px;
  width: 34px;
  height: 34px;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  font-size: 14px;
}

.qa-hero__dot {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(167, 139, 250, 0.8);
}

.qa-hero__dot--1 { top: 18px; right: 68px; }
.qa-hero__dot--2 { top: 42px; right: 0; width: 4px; height: 4px; }
.qa-hero__dot--3 { bottom: 16px; right: 24px; background: rgba(96, 165, 250, 0.9); }

.qa-search {
  margin-bottom: 14px;
}

.qa-search input {
  font-size: 14px;
  padding: 12px 14px;
  border-radius: 12px;
}

.qa-actions {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 18px;
}

.qa-action-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 14px 8px;
  border: 1px solid var(--ram-border);
  border-radius: 14px;
  background: #fff;
  text-decoration: none;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}

.qa-action-card:hover {
  border-color: rgba(60, 101, 245, 0.35);
  box-shadow: 0 6px 18px rgba(5, 38, 78, 0.08);
  transform: translateY(-2px);
}

.qa-action-card__icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.qa-action-card__icon--ask { background: #ede9fe; color: #7c3aed; }
.qa-action-card__icon--saved { background: #fef3c7; color: #d97706; }
.qa-action-card__icon--ai { background: #dbeafe; color: #2563eb; }
.qa-action-card__icon--mine { background: #dcfce7; color: #16a34a; }

.qa-action-card__label {
  font-size: 11px;
  font-weight: 700;
  color: var(--ram-primary-dark);
  text-align: center;
  line-height: 1.25;
}

.qa-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.qa-section-head__title {
  margin: 0;
  font-size: 1rem;
  font-weight: 800;
  color: var(--ram-primary-dark);
}

.qa-section-head__link {
  border: none;
  background: none;
  padding: 0;
  font-size: 13px;
  font-weight: 600;
  color: var(--ram-primary);
  text-decoration: none;
  cursor: pointer;
}

.qa-section-head__link:hover { color: var(--ram-primary-dark); }

.qa-question-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.qa-question-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--ram-border);
  border-radius: 14px;
  background: #fff;
  text-decoration: none;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}

.qa-question-card:hover {
  border-color: rgba(60, 101, 245, 0.3);
  box-shadow: 0 6px 18px rgba(5, 38, 78, 0.07);
  transform: translateY(-1px);
}

.qa-question-card__icon {
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
}

.qa-question-card__icon--driving { background: #dbeafe; color: #2563eb; }
.qa-question-card__icon--passport { background: #dcfce7; color: #16a34a; }
.qa-question-card__icon--visa { background: #ede9fe; color: #7c3aed; }
.qa-question-card__icon--address { background: #ffedd5; color: #ea580c; }
.qa-question-card__icon--tax { background: #fef3c7; color: #ca8a04; }
.qa-question-card__icon--health { background: #fee2e2; color: #dc2626; }
.qa-question-card__icon--education { background: #e0e7ff; color: #4f46e5; }
.qa-question-card__icon--legal { background: #f1f5f9; color: #475569; }

.qa-question-card__body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.qa-question-card__title {
  font-size: 14px;
  font-weight: 700;
  color: var(--ram-primary-dark);
  line-height: 1.35;
}

.qa-question-card__meta {
  font-size: 12px;
  color: var(--ram-text-muted);
}

.qa-question-card__meta em {
  font-style: normal;
  font-weight: 600;
  color: var(--ram-primary);
}

.qa-question-card__arrow {
  flex: 0 0 auto;
  font-size: 12px;
  color: #c5cee0;
}

.qa-cat-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 18px;
}

.qa-cat-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 18px 12px;
  border: 1px solid var(--ram-border);
  border-radius: 14px;
  background: #fff;
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}

.qa-cat-card:hover,
.qa-cat-card.is-active {
  border-color: var(--ram-primary);
  box-shadow: 0 0 0 3px rgba(60, 101, 245, 0.1);
}

.qa-cat-card__icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.qa-cat-card__label {
  font-size: 13px;
  font-weight: 700;
  color: var(--ram-primary-dark);
  text-align: center;
}

.qa-cat-card__count {
  font-size: 11px;
  color: var(--ram-text-muted);
}

.qa-cat-back.is-hidden { display: none; }

.qa-question-list--filtered:empty::after {
  content: "No questions in this category yet.";
  display: block;
  padding: 24px;
  text-align: center;
  font-size: 13px;
  color: var(--ram-text-muted);
  border: 1px dashed var(--ram-border);
  border-radius: 12px;
}

@media (min-width: 768px) {
  .qa-question-list { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .qa-cat-grid { grid-template-columns: repeat(4, 1fr); }
  .qa-hero__title { font-size: 1.45rem; }
  .qa-action-card { padding: 18px 12px; }
  .qa-action-card__icon { width: 50px; height: 50px; font-size: 20px; }
  .qa-action-card__label { font-size: 12px; }
}

@media (min-width: 992px) {
  .qa-layout {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 22px;
    align-items: start;
  }

  .qa-layout__aside {
    display: flex;
    flex-direction: column;
    gap: 14px;
    position: sticky;
    top: calc(var(--ram-header-height, 80px) + 16px);
  }

  .qa-aside-card {
    padding: 16px;
    border: 1px solid var(--ram-border);
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 4px 14px rgba(5, 38, 78, 0.05);
  }

  .qa-aside-card__title {
    margin: 0 0 12px;
    font-size: 14px;
    font-weight: 800;
    color: var(--ram-primary-dark);
  }

  .qa-aside-list {
    list-style: none;
    margin: 0;
    padding: 0;
  }

  .qa-aside-list li + li { margin-top: 8px; }

  .qa-aside-list a {
    font-size: 13px;
    font-weight: 600;
    color: var(--ram-primary);
    text-decoration: none;
  }

  .qa-aside-list a:hover { color: var(--ram-primary-dark); }

  .qa-aside-stat {
    margin: 0 0 8px;
    font-size: 13px;
    color: var(--ram-text-muted);
  }

  .qa-aside-stat strong {
    color: var(--ram-primary-dark);
    font-weight: 800;
  }

  .qa-hero {
    padding: 24px 26px;
    min-height: 170px;
  }

  .qa-hero__art { flex: 0 0 120px; }

  .qa-hero__bubble--lg { width: 64px; height: 64px; font-size: 26px; }
}

/* ── Web tab chips ── */
.web-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }

.web-chip {
  border: 1px solid var(--ram-border); background: #fff; border-radius: 999px;
  padding: 8px 16px; font-size: 12px; font-weight: 600; cursor: pointer;
  transition: all 0.2s;
}

.web-chip.active, .web-chip:hover {
  background: var(--ram-primary); color: #fff; border-color: var(--ram-primary);
}

.web-link-card {
  display: block; border-radius: 12px; overflow: hidden; border: 1px solid var(--ram-border);
  background: #fff; text-decoration: none; transition: transform 0.2s;
}

.web-link-card:hover { transform: translateY(-2px); }
.web-link-card img { width: 100%; height: 64px; object-fit: cover; }
.web-link-card span { display: block; padding: 8px; font-size: 11px; font-weight: 600; color: var(--ram-primary-dark); text-align: center; }

/* ── Sticky mobile footer ── */
.sticky-footer {
  display: none; position: fixed; bottom: 0; left: 0; right: 0; z-index: 900;
  background: #fff; border-top: 1px solid var(--ram-border);
  box-shadow: 0 -4px 20px rgba(5,38,78,.08);
  padding: 6px 8px calc(6px + env(safe-area-inset-bottom));
  justify-content: space-around; align-items: center;
}

.sticky-footer a {
  flex: 1; text-align: center; text-decoration: none; color: var(--ram-text-muted);
  font-size: 10px; font-weight: 600; padding: 4px 2px;
}

.sticky-footer a i { display: block; font-size: 18px; margin-bottom: 2px; color: var(--ram-primary); }

.sticky-footer a.is-active { color: var(--ram-primary); }

/* ── Stats counters (above footer) ── */
.ram-stats {
  background: #fff;
  padding: 48px 0 56px;
  border-top: 1px solid var(--ram-border);
}

.ram-stats__item {
  text-align: center;
  padding: 8px 12px;
}

.ram-stats__number {
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 800;
  color: var(--ram-primary);
  line-height: 1.1;
  margin: 0 0 10px;
}

.ram-stats__title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ram-primary-dark);
  margin: 0 0 12px;
}

.ram-stats__desc {
  font-size: 13px;
  line-height: 1.6;
  color: var(--ram-text-muted);
  margin: 0 auto;
  max-width: 240px;
}

/* ── Home section toolbar ── */
.home-section-toolbar {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  margin-bottom: 10px; flex-wrap: wrap;
}

.home-section-toolbar__hint {
  margin: 0; font-size: 13px; color: var(--ram-text-muted); font-weight: 500;
}

/* ── Site footer (white layout) ── */
.ram-footer {
  background: #fff; color: #4f5e64; padding: 48px 0 0; margin-top: 0;
  border-top: none;
}

.ram-footer__grid { row-gap: 28px; }

@media (min-width: 992px) {
  .ram-footer__grid {
    display: flex; flex-wrap: nowrap; gap: 16px; align-items: flex-start;
  }

  .ram-footer__grid > [class*="footer-col"] {
    flex: 1 1 0; width: auto !important; max-width: none !important; padding: 0 8px;
  }

  .ram-footer__grid > .footer-col-1,
  .ram-footer__grid > .footer-col-6 { flex: 1.35 1 0; }
}

.ram-footer__logo { height: 70px; width: auto; display: block; margin-bottom: 16px; }

.ram-footer__desc {
  font-size: 14px; line-height: 1.65; color: #667085; margin-bottom: 18px; max-width: 280px;
}

.ram-footer__title {
  color: #002347; font-weight: 700; font-size: 16px; margin-bottom: 18px;
}

.ram-footer .menu-footer { padding: 0; margin: 0; }

.ram-footer .menu-footer li { list-style: none; margin-bottom: 8px; }

.ram-footer .menu-footer li a {
  color: #667085; font-size: 14px; text-decoration: none; transition: color 0.2s, padding-left 0.2s;
}

.ram-footer .menu-footer li a:hover { color: #002347; padding-left: 3px; }

.ram-footer__social { display: flex; gap: 10px; }

.ram-footer__social a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 50%; background: #f0f4ff;
  color: var(--ram-primary); font-size: 14px; text-decoration: none;
  transition: background 0.2s, transform 0.2s, color 0.2s;
}

.ram-footer__social a:hover {
  background: var(--ram-primary); color: #fff; transform: translateY(-3px);
}

.ram-footer__app-text {
  font-size: 13px; line-height: 1.6; color: #667085; margin-bottom: 14px; max-width: 260px;
}

.ram-footer__app-btns { display: flex; flex-direction: column; gap: 10px; max-width: 220px; }

.ram-app-btn {
  display: flex; align-items: center; gap: 10px; padding: 10px 14px;
  background: var(--ram-primary); border-radius: 8px; text-decoration: none; color: #fff;
  transition: background 0.2s, transform 0.2s;
}

.ram-app-btn:hover { background: #2f52e0; color: #fff; transform: translateY(-1px); }

.ram-app-btn__icon { font-size: 22px; line-height: 1; flex-shrink: 0; }

.ram-app-btn__text { display: flex; flex-direction: column; line-height: 1.15; }

.ram-app-btn__text small { font-size: 9px; font-weight: 500; opacity: 0.92; }

.ram-app-btn__text strong { font-size: 13px; font-weight: 700; }

.ram-footer .footer-bottom {
  border-top: 1px solid #e0e6f7; padding: 24px 0 28px; margin-top: 36px;
}

.ram-footer__copy { font-size: 13px; color: #667085; }

.ram-footer__legal { display: flex; flex-wrap: wrap; gap: 8px 24px; }

.ram-footer__legal a {
  font-size: 13px; color: #667085; text-decoration: none; transition: color 0.2s;
}

.ram-footer__legal a:hover { color: #002347; }

/* Scroll to top */
.ram-scroll-top {
  position: fixed; right: 24px; bottom: 88px; z-index: 998;
  width: 48px; height: 48px; border: none; border-radius: 50%;
  background: var(--ram-primary); color: #fff; font-size: 16px;
  box-shadow: 0 6px 20px rgba(60, 101, 245, 0.35);
  opacity: 0; visibility: hidden; transform: translateY(12px);
  transition: opacity 0.25s, visibility 0.25s, transform 0.25s, background 0.2s;
}

.ram-scroll-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }

.ram-scroll-top:hover { background: #2f52e0; }

/* ── Login modal ── */
.ram-login-modal {
  background: #0a1931; border: none; border-radius: 22px;
  padding: 28px 24px 30px; color: #fff; position: relative;
}

.ram-login-modal__close { position: absolute; top: 14px; right: 14px; }

.ram-login-modal__brand { text-align: center; font-size: 1.3rem; font-weight: 800; color: #f5a623; margin-bottom: 16px; }

.ram-login-modal__tabs {
  display: flex; background: rgba(255,255,255,.08); border-radius: 999px; padding: 4px; margin-bottom: 16px;
}

.ram-login-modal__tab {
  flex: 1; border: none; background: transparent; color: #fff; font-weight: 600;
  font-size: 14px; padding: 10px; border-radius: 999px; text-align: center; text-decoration: none;
}

.ram-login-modal__tab.is-active { background: linear-gradient(90deg, #4facfe, #7b61ff); }

.ram-login-modal__roles { display: flex; gap: 8px; margin-bottom: 16px; }

.ram-login-role,
.ram-signup-role {
  flex: 1;
  appearance: none;
  -webkit-appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border-radius: 999px;
  padding: 10px 8px;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;
  cursor: pointer;
  text-align: center;
  transition: 0.2s ease;
  box-shadow: none;
}

.ram-login-role:hover,
.ram-signup-role:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.55);
  color: #fff;
}

.ram-login-role.is-active,
.ram-signup-role.is-active {
  background: linear-gradient(90deg, #4facfe, #7b61ff);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 6px 18px rgba(79, 172, 254, 0.35);
}

.ram-login-input { border: none; border-radius: 999px; padding: 12px 18px; font-size: 14px; }

.ram-login-submit {
  border: none; border-radius: 999px; padding: 13px; font-weight: 700; color: #fff;
  background: linear-gradient(90deg, #4facfe, #7b61ff);
}

.ram-login-divider--or {
  display: flex; align-items: center; gap: 12px; margin: 20px 0 16px;
}

.ram-login-divider__line { flex: 1; height: 1px; background: rgba(255,255,255,.28); }

.ram-login-divider__text {
  font-size: 12px; font-weight: 800; letter-spacing: 0.14em; color: rgba(255,255,255,.9);
}

.btn-google {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  width: 100%; min-height: 48px; padding: 11px 20px; background: #fff;
  border: 1px solid #dadce0; border-radius: 8px;
  box-shadow: 0 1px 3px rgba(60,64,67,.12); color: #3c4043;
  text-decoration: none; font-size: 15px; font-weight: 600;
  transition: background 0.2s, box-shadow 0.2s, transform 0.2s;
}

.btn-google:hover { background: #f8f9fa; color: #202124; transform: translateY(-1px); box-shadow: 0 3px 8px rgba(60,64,67,.15); }

.btn-google__icon svg { width: 20px; height: 20px; display: block; }

/* Tab fade */
.tab-pane { animation: tabFade 0.3s ease; }

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