/* ============================================================
   Rsale Components Design System (OLX-grade UI components)
   ============================================================ */

/* --- Banner / Carousel --- */
.promo-banner {
  margin: 12px 16px;
  background: linear-gradient(135deg, #0052cc 0%, #0070f3 100%);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 4px 14px rgba(0, 102, 255, 0.2);
  position: relative;
  overflow: hidden;
}
.promo-banner::after {
  content: '';
  position: absolute;
  right: -20px;
  top: -20px;
  width: 100px;
  height: 100px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.25) 0%, transparent 70%);
  border-radius: 50%;
}
.promo-text h3 {
  font-size: 14px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 2px;
}
.promo-text p {
  font-size: 11px;
  color: #b2dfdb;
}
.promo-btn {
  background: var(--accent);
  color: var(--primary);
  border: none;
  font-size: 11px;
  font-weight: 800;
  padding: 8px 14px;
  border-radius: 20px;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.15s;
}
.promo-btn:active {
  transform: scale(0.95);
}

/* --- Categories Horizontal Scroll Track --- */
.section-header {
  padding: 12px 16px 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.section-title {
  font-size: 15px;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.2px;
}
.section-link {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-secondary);
  text-decoration: underline;
  cursor: pointer;
}

.categories-track {
  display: flex;
  gap: 12px;
  padding: 4px 16px 14px;
  overflow-x: auto;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE */
}
.categories-track::-webkit-scrollbar {
  display: none; /* Chrome */
}

.category-chip {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  min-width: 64px;
  text-align: center;
  transition: transform 0.15s;
}
.category-chip:active {
  transform: scale(0.94);
}
.category-icon-box {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #ffffff;
  border: 1.5px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s;
  position: relative;
}
.category-chip.active .category-icon-box {
  background: var(--primary);
  border-color: var(--primary);
  box-shadow: 0 4px 10px rgba(0, 47, 52, 0.25);
}
.category-chip.active .category-icon-box svg {
  color: var(--accent);
}
.category-chip.active .category-name {
  color: var(--primary);
  font-weight: 800;
}
.category-icon-box svg {
  width: 24px;
  height: 24px;
  color: var(--primary);
}
.category-name {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-secondary);
  white-space: nowrap;
}

/* --- Filter & Distance Quick Pills --- */
.quick-filter-bar {
  display: flex;
  gap: 8px;
  padding: 0 16px 10px;
  overflow-x: auto;
  scrollbar-width: none;
}
.quick-filter-bar::-webkit-scrollbar {
  display: none;
}
.filter-pill {
  background: #ffffff;
  border: 1.5px solid var(--border-dark);
  padding: 6px 13px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-secondary);
  white-space: nowrap;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
  user-select: none;
}
.filter-pill:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-soft);
}
.filter-pill.active {
  background: var(--primary) !important;
  color: #ffffff !important;
  border-color: var(--primary) !important;
  box-shadow: 0 3px 10px rgba(0, 102, 255, 0.35);
  transform: translateY(-1px);
}
.filter-pill.active svg {
  color: #ffffff;
}

.card-time {
  font-size: 10.5px;
  font-weight: 600;
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  gap: 3px;
  white-space: nowrap;
}

/* --- Listings Grid (OLX 2-column mobile card) --- */
.listings-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  padding: 0 16px 20px;
}

.listing-card {
  background: #ffffff;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-light);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  cursor: pointer;
  position: relative;
  transition: transform 0.15s, box-shadow 0.15s;
}
.listing-card:hover {
  box-shadow: var(--shadow-md);
}
.listing-card:active {
  transform: scale(0.98);
}

.card-img-wrapper {
  position: relative;
  width: 100%;
  height: 125px;
  background-color: #e5e9eb;
  overflow: hidden;
}
.card-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}
.listing-card:hover .card-img-wrapper img {
  transform: scale(1.05);
}

/* Featured & Urgent Ribbons (Disabled) */
.card-badge-featured,
.card-badge-urgent {
  display: none !important;
}

/* Favorite Heart Button */
.card-fav-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  transition: all 0.2s;
  z-index: 2;
}
.card-fav-btn svg {
  width: 18px;
  height: 18px;
  color: var(--primary);
  transition: fill 0.2s, color 0.2s;
}
.card-fav-btn.active svg {
  fill: var(--coral);
  color: var(--coral);
}

/* Card Body Content */
.card-body {
  padding: 9px 10px;
  display: flex;
  flex-direction: column;
  flex: 1;
  justify-content: space-between;
}
.card-price-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 3px;
}
.card-price {
  font-size: 15px;
  font-weight: 800;
  color: var(--text-primary);
}
.card-negotiable {
  font-size: 9px;
  font-weight: 700;
  color: #00897b;
  background: #e0f2f1;
  padding: 1px 4px;
  border-radius: 3px;
}
.card-title {
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text-secondary);
  line-height: 1.3;
  margin-bottom: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  height: 32px;
}
.card-specs {
  font-size: 11px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 6px;
}
.card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 10px;
  color: var(--text-muted);
  border-top: 1px dashed var(--border-light);
  padding-top: 5px;
}
.card-location {
  display: flex;
  align-items: center;
  gap: 3px;
  max-width: 65%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* --- Modals & Sheets --- */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 2000;
  display: none;
  align-items: flex-end;
  justify-content: center;
}
.modal-backdrop.open {
  display: flex;
}

/* Centered Dialog Modals */
.modal-backdrop.modal-centered,
.modal-backdrop:has(.modal-card) {
  align-items: center !important;
  justify-content: center !important;
  padding: 16px;
}

.modal-card {
  background: #ffffff !important;
  color: #0f172a !important;
  width: 100%;
  max-width: 450px;
  max-height: 88vh;
  overflow-y: auto;
  border-radius: 20px;
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(0, 0, 0, 0.1);
  margin: auto;
  position: relative;
  z-index: 10;
  padding: 22px;
  animation: modalPop 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalPop {
  from {
    opacity: 0;
    transform: scale(0.92) translateY(12px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

/* Sub-modals higher stack so they are never hidden or blended with detail sheets */
#report-ad-modal,
#moderation-alert-modal,
#quick-apply-modal,
#service-booking-modal,
#make-offer-modal,
#edit-ad-modal,
#monetization-modal,
#turbo-hub-modal,
#referral-celebration-modal {
  z-index: 3500 !important;
}

/* Report Modal Option Items */
.report-reason-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  background: #ffffff !important;
  border: 1.5px solid #cbd5e1;
  border-radius: 10px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  color: #0f172a !important;
  transition: all 0.15s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}
.report-reason-item:hover {
  border-color: #94a3b8;
  background: #f8fafc !important;
}
.report-reason-item.danger-item {
  border-color: #fecaca;
  background: #fff5f5 !important;
  color: #b91c1c !important;
  font-weight: 700;
}
.report-reason-item:has(input:checked),
.report-reason-item.selected {
  border-color: #dc2626 !important;
  background: #fef2f2 !important;
  color: #991b1b !important;
  font-weight: 800;
  box-shadow: 0 0 0 1.5px #dc2626;
}
.report-reason-item input[type="radio"] {
  width: 17px;
  height: 17px;
  accent-color: #dc2626;
  flex-shrink: 0;
}

.bottom-sheet {
  background: #fff;
  width: 100%;
  max-width: 440px;
  border-radius: 20px 20px 0 0;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  animation: slideUp 0.25s cubic-bezier(0.1, 0.9, 0.2, 1);
  overflow: hidden;
}

@keyframes slideUp {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

.sheet-header {
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-light);
}
.sheet-title {
  font-size: 16px;
  font-weight: 800;
  color: var(--primary);
}
.sheet-close-btn {
  background: none;
  border: none;
  font-size: 20px;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px;
}

.sheet-body {
  padding: 16px 18px;
  overflow-y: auto;
  flex: 1;
}

/* --- Form Fields --- */
.form-group {
  margin-bottom: 16px;
}
.form-label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-secondary);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}
.form-control {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--border-dark);
  border-radius: var(--radius-sm);
  font-size: 14px;
  color: var(--text-primary);
  outline: none;
  background: #fff;
  transition: border-color 0.2s;
}
.form-control:focus {
  border-color: var(--primary);
}

.btn-primary {
  width: 100%;
  background: var(--primary);
  color: #fff;
  border: none;
  padding: 13px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  transition: background 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.btn-primary:hover {
  background: var(--primary-light);
}
.btn-secondary {
  width: 100%;
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
  padding: 12px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
}

/* --- Photo Upload Grid --- */
.photo-upload-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 8px;
}
.photo-upload-box {
  aspect-ratio: 1;
  border: 2px dashed var(--border-dark);
  border-radius: var(--radius-sm);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  background: var(--bg-main);
  color: var(--text-muted);
  font-size: 11px;
  text-align: center;
  padding: 6px;
  position: relative;
  overflow: hidden;
}
.photo-upload-box:hover {
  border-color: var(--primary);
  color: var(--primary);
}
.uploaded-photo-preview {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.remove-photo-btn {
  position: absolute;
  top: 4px;
  right: 4px;
  background: rgba(0, 0, 0, 0.65);
  color: #fff;
  border: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  cursor: pointer;
}

/* --- Floating Toast --- */
.toast-container {
  position: absolute;
  top: 75px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
  width: 90%;
  max-width: 380px;
}
.toast {
  background: #0f172a;
  color: #ffffff;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.25);
  display: flex;
  align-items: center;
  gap: 10px;
  border-left: 4px solid var(--primary);
  animation: toastIn 0.25s ease-out;
}
.toast.info {
  border-left-color: var(--primary);
}
.toast.success {
  border-left-color: var(--success);
}
.toast.error {
  border-left-color: var(--coral);
}
@keyframes toastIn {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* --- Product Detail View Header & Content --- */
.detail-view {
  background: #fff;
  min-height: 100%;
  display: flex;
  flex-direction: column;
}
.detail-gallery {
  position: relative;
  width: 100%;
  height: 270px;
  background: #0f172a;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.detail-gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.2s ease;
}
.detail-gallery .card-badge-verified-pro,
.detail-gallery .card-badge-wfh {
  position: absolute;
  top: auto;
  bottom: 12px;
  left: 14px;
  right: auto;
  width: auto;
  max-width: fit-content;
  height: auto;
  font-size: 11.5px;
  font-weight: 800;
  padding: 5px 12px;
  border-radius: 6px;
  backdrop-filter: blur(8px);
  z-index: 5;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.detail-photo-count {
  position: absolute;
  bottom: 12px;
  right: 14px;
  background: rgba(0, 0, 0, 0.65);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 12px;
  backdrop-filter: blur(4px);
  z-index: 5;
}
.detail-thumb-strip {
  display: flex;
  gap: 8px;
  padding: 8px 14px;
  background: #ffffff;
  overflow-x: auto;
  border-bottom: 1px solid var(--border-light);
  scrollbar-width: none;
}
.detail-thumb-strip::-webkit-scrollbar {
  display: none;
}
.detail-thumb {
  width: 48px;
  height: 48px;
  border-radius: 6px;
  object-fit: cover;
  cursor: pointer;
  border: 2px solid transparent;
  flex-shrink: 0;
  opacity: 0.7;
  transition: all 0.15s ease;
}
.detail-thumb.active {
  border-color: var(--primary);
  opacity: 1;
  transform: scale(1.04);
}
.detail-back-btn {
  position: absolute;
  top: 14px;
  left: 14px;
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  box-shadow: var(--shadow-sm);
}
.detail-actions-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  max-width: 440px;
  margin: 0 auto;
  background: #fff;
  padding: 12px 16px;
  box-shadow: 0 -4px 16px rgba(0, 47, 52, 0.12);
  display: flex;
  gap: 10px;
  z-index: 150;
}
.detail-actions-bar .btn-primary {
  flex: 2;
}
.detail-actions-bar .btn-secondary {
  flex: 1;
}

/* Trust Badges */
.badge-verified {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #e8f5e9;
  color: #2e7d32;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 12px;
}

/* --- Mobile OTP Input Styles --- */
.otp-inputs-wrapper {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin: 18px 0 12px;
}
.otp-digit-input {
  width: 52px;
  height: 56px;
  border: 2px solid var(--border-dark);
  border-radius: 10px;
  font-size: 24px;
  font-weight: 800;
  text-align: center;
  color: var(--primary);
  background: #ffffff;
  outline: none;
  transition: all 0.2s ease;
}
.otp-digit-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0, 47, 52, 0.15);
  background: #fdfdfd;
}

.otp-sim-banner {
  background: #e0f2f1;
  border: 1px solid #b2dfdb;
  color: #004d40;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}
.otp-autofill-btn {
  background: var(--primary);
  color: var(--accent);
  border: none;
  font-size: 11px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 6px;
  cursor: pointer;
  transition: transform 0.15s;
}
.otp-autofill-btn:active {
  transform: scale(0.95);
}

.otp-timer-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 14px;
}
.resend-otp-btn {
  background: none;
  border: none;
  color: var(--primary);
  font-weight: 700;
  font-size: 12px;
  cursor: pointer;
  text-decoration: underline;
}
.resend-otp-btn:disabled {
  color: var(--text-muted);
  text-decoration: none;
  cursor: not-allowed;
}

/* --- Edit Profile & Avatar Selector Styles --- */
.profile-header-card {
  background: #ffffff;
  border-radius: 14px;
  padding: 18px;
  border: 1.5px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 16px;
}
.profile-card-top {
  display: flex;
  gap: 14px;
  align-items: center;
}
.btn-edit-profile-pill {
  background: var(--bg-main);
  border: 1.5px solid var(--border-dark);
  color: var(--primary);
  font-size: 11.5px;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 20px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  align-self: flex-start;
  transition: all 0.15s;
}
.btn-edit-profile-pill:hover {
  background: #e5eaeb;
  border-color: var(--primary);
}

.avatar-edit-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 18px;
}
.avatar-preview-wrapper {
  position: relative;
  width: 80px;
  height: 80px;
  margin-bottom: 10px;
}
.avatar-preview-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #ffffff;
  box-shadow: var(--shadow-md);
}
.avatar-upload-badge {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--primary);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0,0,0,0.25);
}

.avatar-presets-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 8px;
  text-align: center;
}
.avatar-presets-row {
  display: flex;
  gap: 10px;
  justify-content: center;
}
.avatar-preset-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid transparent;
  padding: 0;
  cursor: pointer;
  overflow: hidden;
  transition: transform 0.15s, border-color 0.15s;
}
.avatar-preset-btn.active {
  border-color: var(--accent);
  transform: scale(1.1);
}
.avatar-preset-btn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Logged Out State Banner */
.profile-logged-out-box {
  background: #ffffff;
  border-radius: 14px;
  padding: 28px 20px;
  border: 1.5px solid var(--border-light);
  text-align: center;
  box-shadow: var(--shadow-sm);
  margin-bottom: 18px;
}

.btn-logout-row {
  margin-top: 16px;
  display: flex;
  justify-content: center;
}
.btn-logout {
  background: none;
  border: none;
  color: var(--coral);
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 6px;
  transition: background 0.15s;
}
.btn-logout:hover {
  background: #fff0ed;
}

/* --- RDeal Turbo Boost Components --- */
.turbo-boost-card {
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
  border: 2px solid #0066ff;
  border-radius: 12px;
  padding: 14px 16px;
  margin: 14px 0;
  position: relative;
  box-shadow: 0 4px 12px rgba(0, 102, 255, 0.1);
  transition: all 0.2s ease;
}
.turbo-boost-card.active {
  background: linear-gradient(135deg, #e0f2fe 0%, #bfdbfe 100%);
  box-shadow: 0 6px 16px rgba(0, 102, 255, 0.2);
}
.turbo-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: linear-gradient(135deg, #0052cc 0%, #0070f3 100%);
  color: #ffffff;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.5px;
  padding: 3px 8px;
  border-radius: 6px;
  margin-bottom: 8px;
  box-shadow: 0 2px 6px rgba(0, 102, 255, 0.3);
}
.turbo-benefit-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  background: #ffffff;
  border-radius: 8px;
  margin-bottom: 8px;
  border: 1px solid var(--border-light);
}
.turbo-benefit-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #eff6ff;
  color: #0066ff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}
.turbo-benefit-text h4 {
  font-size: 12.5px;
  font-weight: 800;
  color: var(--text-primary);
}
.turbo-benefit-text p {
  font-size: 11px;
  color: var(--text-muted);
}

/* --- Auth Segmented Role Switcher Tabs --- */
.auth-role-tabs {
  display: flex;
  background: var(--bg-main);
  border: 1.5px solid var(--border-dark);
  border-radius: 10px;
  padding: 3px;
  margin-bottom: 16px;
  gap: 4px;
}
.auth-tab-btn {
  flex: 1;
  padding: 9px 12px;
  border: none;
  background: transparent;
  border-radius: 8px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.2s ease;
}
.auth-tab-btn.active {
  background: var(--primary);
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(0, 102, 255, 0.25);
}

/* Admin Demo Box */
.admin-demo-box {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 11.5px;
  color: #1e40af;
  margin-bottom: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.admin-demo-autofill {
  background: #0066ff;
  color: #ffffff;
  border: none;
  font-size: 11px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 6px;
  cursor: pointer;
  transition: opacity 0.15s;
}
.admin-demo-autofill:hover {
  opacity: 0.9;
}

/* Admin Dashboard Styles */
.admin-dashboard-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.admin-badge-banner {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  color: #ffffff;
  border-radius: 12px;
  padding: 14px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: var(--shadow-sm);
}
.admin-stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.admin-stat-card {
  background: #ffffff;
  border: 1px solid var(--border-dark);
  border-radius: 10px;
  padding: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: var(--shadow-sm);
}
.admin-stat-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--primary-soft);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}
.admin-stat-val {
  font-size: 18px;
  font-weight: 900;
  color: var(--text-primary);
  line-height: 1.1;
}
.admin-stat-label {
  font-size: 10.5px;
  color: var(--text-muted);
  font-weight: 700;
  text-transform: uppercase;
  margin-top: 2px;
}
.admin-card-section {
  background: #ffffff;
  border: 1px solid var(--border-dark);
  border-radius: 12px;
  padding: 14px;
  box-shadow: var(--shadow-sm);
}
.admin-card-section h4 {
  font-size: 13.5px;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.admin-listing-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border-light);
}
.admin-listing-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}
.admin-action-btn {
  border: none;
  padding: 5px 9px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: all 0.15s;
}
.admin-action-btn.boost {
  background: #eff6ff;
  color: #0066ff;
  border: 1px solid #bfdbfe;
}
.admin-action-btn.boost.active {
  background: #ffcc00;
  color: #0f172a;
}
.admin-action-btn.delete {
  background: #fef2f2;
  color: #ef4444;
  border: 1px solid #fecaca;
}

/* Live Pulse Indicator */
.pulse-indicator {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #22c55e;
  box-shadow: 0 0 0 rgba(34, 197, 94, 0.4);
  animation: pulse-green 1.8s infinite;
}

@keyframes pulse-green {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
  }
  70% {
    transform: scale(1);
    box-shadow: 0 0 0 6px rgba(34, 197, 94, 0);
  }
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0);
  }
}

/* Referral Leaderboard Row */
.referral-leaderboard-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border-light);
}
.referral-leaderboard-row:last-child {
  border-bottom: none;
}
.referral-rank-badge {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 800;
  flex-shrink: 0;
}
.referral-rank-1 { background: #fef3c7; color: #b45309; border: 1.5px solid #fde68a; font-size: 14px; }
.referral-rank-2 { background: #f1f5f9; color: #475569; border: 1.5px solid #cbd5e1; font-size: 14px; }
.referral-rank-3 { background: #ffedd5; color: #c2410c; border: 1.5px solid #fed7aa; font-size: 14px; }
.referral-rank-other { background: #f8fafc; color: var(--text-muted); font-size: 11px; }

/* User Moment Item */
.user-moment-item {
  position: relative;
  padding-left: 28px;
  padding-bottom: 14px;
  border-left: 2px solid #e2e8f0;
  margin-left: 8px;
}
.user-moment-item:last-child {
  border-left: 2px solid transparent;
  padding-bottom: 0;
}
.user-moment-icon-bullet {
  position: absolute;
  left: -13px;
  top: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #ffffff;
  border: 2px solid #cbd5e1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
}
.user-moment-card {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: 8px;
  padding: 8px 10px;
  box-shadow: var(--shadow-sm);
}

/* Global Broadcast Banner */
.global-broadcast-card {
  border-radius: 10px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  box-shadow: var(--shadow-sm);
  animation: fadeIn 0.25s ease;
}
.global-broadcast-card.primary {
  background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 100%);
  color: #ffffff;
}
.global-broadcast-card.urgent {
  background: linear-gradient(135deg, #7c2d12 0%, #ea580c 100%);
  color: #ffffff;
}
.global-broadcast-card.success {
  background: linear-gradient(135deg, #064e3b 0%, #059669 100%);
  color: #ffffff;
}

/* --- Enhanced Location Search Modal & Kakinada Localities --- */
.location-search-box {
  position: relative;
  margin-bottom: 12px;
}
.location-search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
}
.location-search-input {
  width: 100%;
  padding: 11px 36px 11px 38px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border-dark);
  font-size: 13.5px;
  font-weight: 600;
  outline: none;
  background: var(--bg-main);
  transition: all 0.2s ease;
}
.location-search-input:focus {
  border-color: var(--primary);
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(0, 102, 255, 0.12);
}
.location-search-clear {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  font-size: 18px;
  color: var(--text-muted);
  cursor: pointer;
  display: none;
  width: 24px;
  height: 24px;
  align-items: center;
  justify-content: center;
}

.location-quick-chips {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 8px;
  margin-bottom: 12px;
  scrollbar-width: none;
}
.location-quick-chips::-webkit-scrollbar {
  display: none;
}
.location-chip {
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 11.5px;
  font-weight: 700;
  border: 1px solid var(--border-dark);
  background: #ffffff;
  color: var(--text-secondary);
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.15s ease;
}
.location-chip:hover {
  border-color: var(--primary);
  color: var(--primary);
}
.location-chip.active {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
}
.location-chip.kakinada-star {
  background: #fffbeb;
  border-color: #f59e0b;
  color: #b45309;
}
.location-chip.kakinada-star.active {
  background: #f59e0b;
  color: #ffffff;
  border-color: #f59e0b;
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.35);
}

.location-results-container {
  max-height: 210px;
  overflow-y: auto;
  border: 1.5px solid var(--border-light);
  border-radius: 10px;
  background: #ffffff;
  margin-bottom: 14px;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.04);
}
.location-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border-light);
  cursor: pointer;
  transition: background 0.15s ease;
}
.location-item:last-child {
  border-bottom: none;
}
.location-item:hover {
  background: #f0f7ff;
}
.location-item.selected {
  background: #eff6ff;
  border-left: 3.5px solid var(--primary);
}
.location-item-info {
  display: flex;
  flex-direction: column;
}
.location-item-area {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
}
.location-item-city {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 1px;
}
.location-kakinada-badge {
  font-size: 9.5px;
  font-weight: 800;
  background: #fef3c7;
  color: #b45309;
  padding: 2px 6px;
  border-radius: 4px;
  border: 1px solid #fde68a;
  display: inline-flex;
  align-items: center;
  gap: 3px;
}
.location-metro-badge {
  font-size: 9.5px;
  font-weight: 700;
  background: #f1f5f9;
  color: #475569;
  padding: 2px 6px;
  border-radius: 4px;
}

/* Card Distance Badges */
.card-dist-badge {
  font-size: 9.5px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  gap: 2px;
  white-space: nowrap;
}
.card-dist-badge.nearby {
  background: #e6f4ea;
  color: #137333;
  border: 1px solid #ceead6;
}
.card-dist-badge.farther {
  background: #eff6ff;
  color: #1d4ed8;
  border: 1px solid #bfdbfe;
}

/* Feed Location Divider */
.feed-location-divider {
  grid-column: 1 / -1;
  margin: 12px 0 6px;
  padding: 10px 14px;
  background: linear-gradient(135deg, #f0f7ff 0%, #e0f2fe 100%);
  border: 1.5px dashed #0066ff;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.feed-location-divider .divider-left {
  display: flex;
  align-items: center;
  gap: 10px;
}
.feed-location-divider .divider-icon {
  font-size: 20px;
}
.feed-location-divider .divider-title {
  font-size: 12.5px;
  font-weight: 800;
  color: #0052cc;
  line-height: 1.2;
}
.feed-location-divider .divider-sub {
  font-size: 10.5px;
  color: #475569;
  margin-top: 1px;
}
.feed-location-divider .divider-badge {
  font-size: 11px;
  font-weight: 800;
  color: #0052cc;
  background: #ffffff;
  padding: 3px 9px;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

/* Related Ads Carousel inside Detail Sheet */
.related-ads-container {
  margin: 20px 0 16px;
  padding-top: 14px;
  border-top: 1px solid var(--border-light);
}
.related-ads-scroll {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 8px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}
.related-ads-scroll::-webkit-scrollbar {
  height: 4px;
}
.related-ads-scroll::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}
.related-card-item {
  min-width: 148px;
  max-width: 148px;
  background: #ffffff;
  border: 1.5px solid var(--border-light);
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  flex-shrink: 0;
}
.related-card-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
  border-color: #0066ff;
}

/* ============================================================
   Google AdSense Bottom Bar & Ad Engine Interstitial Styles
   ============================================================ */

/* Bottom clearance for app views */
.app-view {
  padding-bottom: calc(var(--bottom-nav-height) + 16px) !important;
}

/* Interstitial Ads (Video & Image Modals) */
.ad-interstitial-backdrop {
  z-index: 1000;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.ad-interstitial-backdrop.open {
  display: flex !important;
  animation: fadeIn 0.2s ease-out;
}

.ad-modal-card {
  width: 100%;
  max-width: 390px;
  background: #ffffff;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.4);
  display: flex;
  flex-direction: column;
}

.ad-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  background: #0f172a;
  color: #ffffff;
}

.ad-badge-left {
  display: flex;
  align-items: center;
  gap: 6px;
}

.ad-tag {
  background: #f59e0b;
  color: #000;
  font-size: 9px;
  font-weight: 900;
  padding: 2px 5px;
  border-radius: 4px;
  text-transform: uppercase;
}

.ad-sponsor-label {
  font-size: 11px;
  font-weight: 700;
  color: #cbd5e1;
  max-width: 170px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ad-timer-pill {
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 3px 10px;
  border-radius: 14px;
  font-size: 11px;
  color: #e2e8f0;
}
.ad-timer-pill strong {
  color: #38bdf8;
  font-weight: 900;
}

/* Video Wrapper */
.ad-video-wrapper {
  position: relative;
  width: 100%;
  height: 200px;
  background: #000;
  overflow: hidden;
}

.ad-video-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: pulseZoom 15s linear infinite;
}

@keyframes pulseZoom {
  0% { transform: scale(1); }
  50% { transform: scale(1.06); }
  100% { transform: scale(1); }
}

.ad-video-overlay-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.6) 0%, transparent 50%);
}

.ad-video-play-indicator {
  position: absolute;
  bottom: 12px;
  left: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(4px);
  color: #fff;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
}
.ad-video-play-indicator svg {
  color: #ef4444;
  animation: pulse 1s infinite;
}

/* Image Wrapper */
.ad-image-wrapper {
  position: relative;
  width: 100%;
  height: 200px;
  background: #f1f5f9;
  overflow: hidden;
}

.ad-creative-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Progress bar inside ads */
.ad-progress-track {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: rgba(255, 255, 255, 0.3);
}

.ad-progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #0052cc, #00d2ff);
  transition: width 0.1s linear;
}

/* Ad Body Content */
.ad-body-content {
  padding: 14px 16px 16px;
  display: flex;
  flex-direction: column;
}

.ad-brand-title {
  font-size: 11px;
  font-weight: 800;
  color: #0052cc;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 2px;
}

.ad-brand-headline {
  font-size: 14px;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.3;
  margin-bottom: 6px;
}

.ad-brand-desc {
  font-size: 11.5px;
  color: #64748b;
  line-height: 1.4;
  margin-bottom: 14px;
}

.ad-footer-actions {
  display: flex;
  justify-content: center;
  border-top: 1px solid #f1f5f9;
  padding-top: 10px;
}

.btn-ad-adfree {
  background: #fee2e2;
  color: #991b1b;
  border: 1px solid #fecaca;
  font-size: 11.5px;
  font-weight: 800;
  padding: 8px 14px;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: background 0.15s, transform 0.15s;
}
.btn-ad-adfree:active {
  transform: scale(0.97);
  background: #fca5a5;
}

/* VIP Ad-Free Modal Styles */
.adfree-price-box {
  background: linear-gradient(135deg, #f0f7ff 0%, #e0effe 100%);
  border: 2px solid #0052cc;
  border-radius: 14px;
  padding: 16px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.adfree-price-tag {
  display: flex;
  align-items: baseline;
  gap: 2px;
}
.adfree-price-tag .currency {
  font-size: 18px;
  font-weight: 900;
  color: #0052cc;
}
.adfree-price-tag .amount {
  font-size: 32px;
  font-weight: 900;
  color: #0052cc;
  line-height: 1;
}
.adfree-price-tag .period {
  font-size: 13px;
  font-weight: 700;
  color: #475569;
  margin-left: 4px;
}

.adfree-save-badge {
  background: #22c55e;
  color: #ffffff;
  font-size: 10.5px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 20px;
  text-transform: uppercase;
}

.adfree-perks-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.adfree-perk-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.adfree-perk-icon {
  font-size: 18px;
  width: 32px;
  height: 32px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.adfree-perk-text h4 {
  font-size: 13px;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 2px;
}

.adfree-perk-text p {
  font-size: 11.5px;
  color: #64748b;
  line-height: 1.35;
}

/* ============================================================
   Category Direction, Smart Suggestions & Playing Image Ads
   ============================================================ */

/* --- Category Hero Header --- */
.category-hero-wrapper {
  margin: 6px 16px 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.category-hero-header {
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  border: 1.5px solid var(--border-dark);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 4px 12px rgba(0, 82, 204, 0.06);
  position: relative;
  overflow: hidden;
}

.category-hero-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, var(--primary) 0%, var(--accent) 100%);
}

.category-hero-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.category-hero-icon-box {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--primary-soft);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(0, 102, 255, 0.12);
}

.category-hero-icon-box svg {
  width: 24px;
  height: 24px;
}

.category-hero-badge {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--primary);
  letter-spacing: 0.5px;
  display: inline-block;
  margin-bottom: 2px;
}

.category-hero-title {
  font-size: 16px;
  font-weight: 900;
  color: var(--text-primary);
  line-height: 1.2;
}

.category-hero-meta {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
}

.btn-clear-category {
  background: #f1f5f9;
  color: var(--text-secondary);
  border: 1px solid var(--border-dark);
  border-radius: 20px;
  padding: 6px 12px;
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s;
}

.btn-clear-category:hover {
  background: #e2e8f0;
  color: var(--text-primary);
}

/* --- Category Suggestions Bar --- */
.category-suggestions-wrapper {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.suggestions-label {
  font-size: 11px;
  font-weight: 800;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 4px;
}

.category-suggestions-track {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 2px 0 4px;
}

.category-suggestions-track::-webkit-scrollbar {
  display: none;
}

.cat-suggestion-chip {
  background: #ffffff;
  border: 1.5px solid var(--border-dark);
  border-radius: 20px;
  padding: 6px 14px;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--text-primary);
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  transition: all 0.15s;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.cat-suggestion-chip:active {
  transform: scale(0.96);
}

.cat-suggestion-chip.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #ffffff;
  box-shadow: 0 3px 8px rgba(0, 102, 255, 0.28);
}

/* --- Billboard Playing Image Ad (Top of Category) --- */
.billboard-ad-card {
  background: #ffffff;
  border: 1.5px solid var(--border-dark);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
  position: relative;
  display: flex;
  flex-direction: column;
}

.billboard-ad-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  background: #0f172a;
  color: #ffffff;
}

.billboard-badge-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
}

.billboard-sponsor-name {
  font-size: 11px;
  font-weight: 800;
  color: #f1f5f9;
  letter-spacing: 0.2px;
}

.billboard-play-badge {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 10px;
  font-weight: 700;
  color: #94a3b8;
  background: rgba(255, 255, 255, 0.1);
  padding: 2px 7px;
  border-radius: 12px;
}

.live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ef4444;
  box-shadow: 0 0 6px #ef4444;
  animation: blinkLive 1.2s infinite;
}

@keyframes blinkLive {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

.billboard-media-wrap {
  position: relative;
  width: 100%;
  height: 155px;
  background: #1e293b;
  overflow: hidden;
}

/* Multi-Frame Ad Slides Playing Animation */
.ad-slide-item {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.6s ease-in-out, transform 0.6s ease-out;
  transform: scale(1.03);
}

.ad-slide-item.active {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
}

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

.billboard-gradient-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15, 23, 42, 0.75) 0%, transparent 60%);
  pointer-events: none;
}

.billboard-dots-bar {
  position: absolute;
  bottom: 10px;
  left: 12px;
  display: flex;
  gap: 4px;
  z-index: 5;
}

.ad-slide-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  transition: all 0.25s;
}

.ad-slide-dot.active {
  background: #ffffff;
  width: 16px;
  border-radius: 3px;
}

/* Slide Progress Track */
.ad-slide-progress-track {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: rgba(255, 255, 255, 0.2);
  z-index: 10;
}

.ad-slide-progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #ffcc00, #ff5a5f);
  animation: adProgressAnim 4.5s linear infinite;
}

@keyframes adProgressAnim {
  0% { width: 0%; }
  100% { width: 100%; }
}

.billboard-content-row {
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: #ffffff;
}

.billboard-info {
  flex: 1;
  min-width: 0;
}

.billboard-deal-pill {
  font-size: 10.5px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 4px;
  display: inline-block;
  margin-bottom: 4px;
}

.billboard-title {
  font-size: 14px;
  font-weight: 900;
  color: #0f172a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.25;
}

.billboard-headline {
  font-size: 11.5px;
  color: #475569;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 2px;
}

.btn-billboard-cta {
  border: none;
  color: #ffffff;
  font-size: 11.5px;
  font-weight: 800;
  padding: 9px 16px;
  border-radius: 8px;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  transition: transform 0.15s;
}

.btn-billboard-cta:active {
  transform: scale(0.95);
}

/* --- In-Feed Native Image Ad Card (Fits 2-Column Grid) --- */
.infeed-ad-card {
  border: 1.5px solid #fed7aa !important;
  background: #fffaf0 !important;
  position: relative;
  display: flex;
  flex-direction: column;
}

.infeed-ad-img-box {
  position: relative;
  width: 100%;
  height: 130px;
  overflow: hidden;
  background: #1e293b;
}

.card-badge-sponsor {
  position: absolute;
  top: 6px;
  left: 6px;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(4px);
  color: #ffffff;
  font-size: 9px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  gap: 4px;
  z-index: 5;
}

.infeed-play-indicator {
  position: absolute;
  bottom: 6px;
  right: 6px;
  background: rgba(0, 0, 0, 0.6);
  color: #ffcc00;
  font-size: 8.5px;
  font-weight: 800;
  padding: 1px 5px;
  border-radius: 4px;
  z-index: 5;
}

.ad-slide-dots-mini {
  position: absolute;
  bottom: 6px;
  left: 6px;
  display: flex;
  gap: 3px;
  z-index: 5;
}

.ad-slide-dots-mini .ad-slide-dot {
  width: 4px;
  height: 4px;
}

.ad-slide-dots-mini .ad-slide-dot.active {
  width: 10px;
}

.infeed-ad-body {
  padding: 10px 10px 12px !important;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex: 1;
}

.infeed-sponsor-pill {
  font-size: 10px;
  font-weight: 800;
  margin-bottom: 3px;
}

.infeed-title {
  font-size: 12px !important;
  font-weight: 800 !important;
  color: #0f172a !important;
  line-height: 1.3 !important;
  height: 32px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.infeed-deal-desc {
  font-size: 10.5px;
  color: #78350f;
  line-height: 1.25;
  height: 26px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  margin-top: 4px;
}

.infeed-footer {
  margin-top: 8px;
}

.btn-infeed-cta {
  width: 100%;
  border: none;
  color: #ffffff;
  font-size: 11px;
  font-weight: 800;
  padding: 7px 10px;
  border-radius: 6px;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.15s;
}

.btn-infeed-cta:active {
  transform: scale(0.96);
}

/* --- Panoramic Wide Image Ad Break (Full Width between Grid Rows) --- */
.panoramic-ad-card {
  grid-column: 1 / -1;
  background: #ffffff;
  border: 1.5px solid var(--border-dark);
  border-radius: var(--radius-md);
  overflow: hidden;
  margin: 8px 0;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.05);
}

.panoramic-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 7px 12px;
  background: #0f172a;
  color: #ffffff;
}

.panoramic-badge-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.panoramic-brand-text {
  font-size: 11px;
  color: #cbd5e1;
}

.panoramic-timer-text {
  font-size: 9.5px;
  font-weight: 700;
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.15);
  padding: 2px 6px;
  border-radius: 4px;
}

.panoramic-media-box {
  position: relative;
  width: 100%;
  height: 130px;
  background: #000;
  overflow: hidden;
}

.panoramic-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.5) 0%, transparent 60%);
  pointer-events: none;
}

.panoramic-info-row {
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.panoramic-deal-badge {
  font-size: 10px;
  font-weight: 800;
  color: #d97706;
  text-transform: uppercase;
}

.panoramic-title {
  font-size: 13.5px;
  font-weight: 800;
  color: #0f172a;
  margin: 1px 0;
}

.panoramic-desc {
  font-size: 11px;
  color: #64748b;
}

.btn-panoramic-cta {
  border: none;
  color: #ffffff;
  font-size: 11px;
  font-weight: 800;
  padding: 8px 14px;
  border-radius: 8px;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: transform 0.15s;
}

.btn-panoramic-cta:active {
  transform: scale(0.96);
}

/* ==========================================================================
   In-Feed Auto-Playing Video Ads on Scroll
   ========================================================================== */
.video-ad-card {
  grid-column: 1 / -1;
  background: #ffffff;
  border-radius: 14px;
  border: 1px solid rgba(226, 232, 240, 0.9);
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
  margin: 10px 0 16px 0;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  position: relative;
}

.video-ad-card:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.video-ad-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: #ffffff;
  border-bottom: 1px solid #f1f5f9;
}

.video-ad-brand-box {
  display: flex;
  align-items: center;
  gap: 8px;
}

.video-ad-badge {
  font-size: 9px;
  font-weight: 800;
  background: linear-gradient(135deg, #1e293b, #0f172a);
  color: #ffffff;
  padding: 2.5px 7px;
  border-radius: 4px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.video-ad-brand-name {
  font-size: 12.5px;
  font-weight: 700;
  color: #0f172a;
}

.video-ad-pill {
  font-size: 10.5px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 999px;
  letter-spacing: 0.2px;
}

.video-ad-player-box {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000000;
  overflow: hidden;
  cursor: pointer;
}

.video-ad-element {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.video-ad-overlay-tint {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(0,0,0,0.2) 0%, transparent 40%, rgba(0,0,0,0.3) 100%);
}

.video-ad-live-pill {
  position: absolute;
  top: 10px;
  left: 10px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(8px);
  color: #ffffff;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  pointer-events: none;
  z-index: 2;
}

.video-ad-live-pill .live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ef4444;
  box-shadow: 0 0 6px #ef4444;
  animation: pulse-dot 1.5s infinite;
}

.video-ad-sound-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  cursor: pointer;
  z-index: 5;
  transition: transform 0.15s ease, background 0.15s ease;
}

.video-ad-sound-btn:hover {
  transform: scale(1.08);
  background: rgba(15, 23, 42, 0.95);
}

.video-ad-play-indicator {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(6px);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  opacity: 0.9;
  transition: opacity 0.25s ease;
  z-index: 3;
}

.video-ad-play-indicator svg {
  width: 20px;
  height: 20px;
  margin-left: 2px;
}

.video-ad-play-indicator.playing {
  opacity: 0;
}

.video-ad-progress-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3.5px;
  background: rgba(255, 255, 255, 0.3);
  z-index: 4;
}

.video-ad-progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #0052cc, #06b6d4);
  transition: width 0.1s linear;
}

.video-ad-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  background: #ffffff;
  cursor: pointer;
}

.video-ad-info {
  flex: 1;
  min-width: 0;
}

.video-ad-title {
  font-size: 13.5px;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 3px 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.video-ad-deal {
  font-size: 11.5px;
  color: #475569;
  margin: 0;
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.btn-video-ad-cta {
  flex-shrink: 0;
  padding: 8px 14px;
  color: #ffffff;
  border: none;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
  transition: transform 0.15s ease;
}

.btn-video-ad-cta:hover {
  transform: translateY(-1px);
}

.btn-video-ad-cta:active {
  transform: scale(0.96);
}

/* --- Sponsored Ad Card in Listing Detail View --- */
.detail-sponsored-ad-card {
  background: linear-gradient(135deg, #f8fafc 0%, #edf4ff 100%);
  border: 1.5px solid #bfdbfe;
  border-radius: 12px;
  padding: 12px 14px;
  margin: 16px 0;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 102, 255, 0.08);
  transition: transform 0.15s;
}

.detail-sponsored-ad-card:active {
  transform: scale(0.98);
}

.detail-ad-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.detail-ad-discount-pill {
  font-size: 10px;
  font-weight: 800;
  background: #fef08a;
  color: #854d0e;
  padding: 2px 6px;
  border-radius: 4px;
}

.detail-ad-body {
  display: flex;
  gap: 12px;
  align-items: center;
}

.detail-ad-img {
  width: 76px;
  height: 76px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid rgba(0,0,0,0.06);
}

.detail-ad-info {
  flex: 1;
  min-width: 0;
}

.btn-detail-ad-cta {
  border: none;
  color: #ffffff;
  font-size: 11px;
  font-weight: 800;
  padding: 5px 12px;
  border-radius: 6px;
  cursor: pointer;
  display: inline-block;
  margin-top: 2px;
}

/* ==========================================================================
   2-PANEL CATEGORIES & SUBCATEGORIES EXPLORER MODAL (MATCHING REFERENCE UI)
   ========================================================================== */
.cat-explorer-modal {
  width: 95%;
  max-width: 520px;
  height: 85vh;
  max-height: 720px;
  border-radius: 20px;
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: #ffffff;
}

.cat-explorer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1.5px solid #e2e8f0;
  background: #ffffff;
  position: sticky;
  top: 0;
  z-index: 10;
}

.cat-back-btn {
  background: none;
  border: none;
  color: #0f172a;
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background 0.15s;
}
.cat-back-btn:hover {
  background: #f1f5f9;
}

.cat-header-title {
  font-size: 17px;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.2px;
}

.cat-explorer-body {
  display: flex;
  flex: 1;
  overflow: hidden;
  height: calc(100% - 56px);
}

/* Left Sidebar Rail */
.cat-sidebar-rail {
  width: 90px;
  background: #f8fafc;
  border-right: 1.5px solid #e2e8f0;
  overflow-y: auto;
  scrollbar-width: none;
  display: flex;
  flex-direction: column;
}
.cat-sidebar-rail::-webkit-scrollbar {
  display: none;
}

.cat-sidebar-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 12px 6px;
  cursor: pointer;
  text-align: center;
  border-left: 3.5px solid transparent;
  transition: all 0.15s ease;
  position: relative;
}

.cat-sidebar-item:hover {
  background: #f1f5f9;
}

.cat-sidebar-item.active {
  background: #ffffff;
  border-left-color: #0066ff;
}

.cat-sidebar-icon {
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #64748b;
  margin-bottom: 5px;
  transition: color 0.15s, transform 0.15s;
}

.cat-sidebar-item.active .cat-sidebar-icon {
  color: #0066ff;
  transform: scale(1.1);
}

.cat-sidebar-label {
  font-size: 10px;
  font-weight: 700;
  color: #64748b;
  line-height: 1.2;
}

.cat-sidebar-item.active .cat-sidebar-label {
  color: #0066ff;
  font-weight: 800;
}

/* Right Sub-categories Pane */
.cat-subcat-pane {
  flex: 1;
  background: #ffffff;
  overflow-y: auto;
  padding: 16px 14px 24px;
}

.cat-pane-header {
  margin-bottom: 16px;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  border-bottom: 1px solid #f1f5f9;
  padding-bottom: 10px;
}

.cat-pane-title {
  font-size: 18px;
  font-weight: 900;
  color: #0f172a;
  letter-spacing: -0.3px;
}

.cat-pane-subtitle {
  font-size: 11.5px;
  font-weight: 600;
  color: #64748b;
}

/* 3-Column Circular Subcategories Grid (Matches Screenshots) */
.cat-subcat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px 8px;
  margin-bottom: 24px;
}

.subcat-circle-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  cursor: pointer;
  user-select: none;
}

.subcat-circle-icon {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.03);
}

.subcat-circle-card:hover .subcat-circle-icon,
.subcat-circle-card:active .subcat-circle-icon {
  transform: translateY(-2px) scale(1.06);
  border-color: #0066ff;
  background: #eff6ff;
  box-shadow: 0 6px 12px rgba(0, 102, 255, 0.15);
}

.subcat-emoji {
  font-size: 26px;
}

.subcat-new-badge {
  position: absolute;
  top: -3px;
  right: -5px;
  background: #dc2626;
  color: #ffffff;
  font-size: 8px;
  font-weight: 900;
  padding: 1.5px 5px;
  border-radius: 8px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  box-shadow: 0 2px 4px rgba(220, 38, 38, 0.4);
}

.subcat-label {
  font-size: 11px;
  font-weight: 600;
  color: #334155;
  line-height: 1.3;
  margin-top: 7px;
  max-width: 82px;
  text-align: center;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Seller Link Card at Bottom of Subcategories */
.cat-list-here-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #f8fafc;
  border: 1.5px dashed #cbd5e1;
  border-radius: 12px;
  padding: 12px 14px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.cat-list-here-card:hover {
  background: #eff6ff;
  border-color: #0066ff;
}

.cat-list-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.cat-list-icon-box {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: #e0edff;
  color: #0066ff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.cat-list-title {
  font-size: 12px;
  font-weight: 800;
  color: #0f172a;
}

.cat-list-sub {
  font-size: 10px;
  color: #64748b;
  margin-top: 1px;
}

.cat-list-cta {
  display: flex;
  align-items: center;
  gap: 3px;
  font-size: 11px;
  font-weight: 800;
  color: #0066ff;
  flex-shrink: 0;
}

/* ==========================================================================
   CATEGORY HERO SUBCATEGORY PILLS TRACK
   ========================================================================== */
.category-subcat-section {
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 12px;
  padding: 10px 12px;
  margin: 10px 0 14px;
}

.subcat-section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.subcat-header-left {
  display: flex;
  align-items: center;
  gap: 6px;
}

.subcat-header-icon {
  font-size: 14px;
}

.subcat-section-title {
  font-size: 12px;
  font-weight: 800;
  color: #0f172a;
}

.btn-subcat-view-all {
  background: none;
  border: none;
  font-size: 11.5px;
  font-weight: 700;
  color: #0066ff;
  cursor: pointer;
  padding: 2px 4px;
}

.category-subcat-track {
  display: flex;
  gap: 7px;
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: 4px;
}
.category-subcat-track::-webkit-scrollbar {
  display: none;
}

.cat-subcat-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 20px;
  border: 1.5px solid #e2e8f0;
  background: #f8fafc;
  font-size: 11.5px;
  font-weight: 700;
  color: #334155;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease;
  flex-shrink: 0;
}

.cat-subcat-pill:hover {
  background: #eff6ff;
  border-color: #93c5fd;
}

.cat-subcat-pill.active {
  background: #0066ff;
  border-color: #0066ff;
  color: #ffffff;
  box-shadow: 0 2px 6px rgba(0, 102, 255, 0.25);
}

.pill-new-badge {
  background: #dc2626;
  color: #ffffff;
  font-size: 8px;
  font-weight: 900;
  padding: 1px 4px;
  border-radius: 4px;
  margin-left: 2px;
}

/* ==========================================================================
   JOBS & SERVICES CARDS CUSTOM STYLING
   ========================================================================== */
.listing-card.job-card {
  border-color: #dbeafe;
}
.listing-card.job-card:hover {
  border-color: #0066ff;
}

.listing-card.service-card {
  border-color: #dcfce7;
}
.listing-card.service-card:hover {
  border-color: #10b981;
}

.salary-price {
  color: #0066ff !important;
  font-weight: 900;
}

.price-sub {
  font-size: 10px;
  font-weight: 600;
  color: #64748b;
  margin-left: 3px;
}

.card-badge-verified-pro {
  position: absolute;
  bottom: 6px;
  left: 6px;
  background: rgba(22, 101, 52, 0.9);
  color: #ffffff;
  font-size: 8.5px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 4px;
  backdrop-filter: blur(4px);
}

.card-badge-wfh {
  position: absolute;
  bottom: 6px;
  left: 6px;
  background: rgba(14, 116, 144, 0.9);
  color: #ffffff;
  font-size: 8.5px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 4px;
  backdrop-filter: blur(4px);
}

.card-quick-action-row {
  margin: 6px 0 2px;
}

.btn-card-quick-apply {
  width: 100%;
  padding: 6px 10px;
  background: linear-gradient(135deg, #0066ff, #0052cc);
  color: #ffffff;
  border: none;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  transition: opacity 0.15s, transform 0.1s;
  box-shadow: 0 2px 6px rgba(0, 102, 255, 0.25);
}
.btn-card-quick-apply:hover {
  opacity: 0.92;
}
.btn-card-quick-apply:active {
  transform: scale(0.98);
}

.btn-card-book-service {
  width: 100%;
  padding: 6px 10px;
  background: linear-gradient(135deg, #10b981, #059669);
  color: #ffffff;
  border: none;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  transition: opacity 0.15s, transform 0.1s;
  box-shadow: 0 2px 6px rgba(16, 185, 129, 0.25);
}
.btn-card-book-service:hover {
  opacity: 0.92;
}
.btn-card-book-service:active {
  transform: scale(0.98);
}

/* Post Ad Suggestions & Sentence Templates */
.suggestion-chips-track {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  max-height: 140px;
  overflow-y: auto;
  padding: 2px 2px 4px 2px;
}
.suggestion-chips-track::-webkit-scrollbar {
  width: 4px;
}
.suggestion-chips-track::-webkit-scrollbar-thumb {
  background: var(--border-medium);
  border-radius: 4px;
}

.btn-suggestion-chip {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: #15803d;
  font-size: 11px;
  font-weight: 600;
  padding: 5px 11px;
  border-radius: 16px;
  cursor: pointer;
  transition: all 0.15s ease;
  line-height: 1.35;
  text-align: left;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.btn-suggestion-chip:hover {
  background: #dcfce7;
  border-color: #86efac;
  color: #14532d;
  transform: translateY(-1px);
}
.btn-suggestion-chip:active {
  transform: scale(0.97);
}

.btn-template-chip {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  color: #1d4ed8;
  font-size: 11px;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 16px;
  cursor: pointer;
  transition: all 0.15s ease;
  line-height: 1.35;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.btn-template-chip:hover {
  background: #dbeafe;
  border-color: #93c5fd;
  color: #1e40af;
  transform: translateY(-1px);
}
.btn-template-chip:active {
  transform: scale(0.97);
}

body.dark-mode .btn-suggestion-chip {
  background: rgba(34, 197, 94, 0.12);
  border-color: rgba(34, 197, 94, 0.3);
  color: #86efac;
}
body.dark-mode .btn-suggestion-chip:hover {
  background: rgba(34, 197, 94, 0.22);
}

body.dark-mode .btn-template-chip {
  background: rgba(59, 130, 246, 0.12);
  border-color: rgba(59, 130, 246, 0.3);
  color: #93c5fd;
}
body.dark-mode .btn-template-chip:hover {
  background: rgba(59, 130, 246, 0.22);
}
