/* ==========================================================================
   Khonj [Dot] Live - Authentic Brand Design System
   A Mass Media Initiative, Malda
   Signature Colors: Khonj Scarlet (#dc2626) & Emerald Discovery (#059669)
   ========================================================================== */

:root {
  /* Brand Primary: Khonj Vermilion Scarlet */
  --primary: #dc2626;
  --primary-hover: #b91c1c;
  --primary-light: #fee2e2;
  --primary-glow: rgba(220, 38, 38, 0.25);
  
  /* Brand Secondary: Khonj Emerald Discovery (Iconic Logo Magnifying Glass) */
  --secondary: #059669;
  --secondary-hover: #047857;
  --secondary-light: #ecfdf5;
  --secondary-glow: rgba(5, 150, 105, 0.25);
  
  /* Brand Accent: Warm Bengal Gold / Amber (VIP Featured & Urgency) */
  --accent: #f59e0b;
  --accent-hover: #d97706;
  --accent-light: #fef3c7;
  --accent-glow: rgba(245, 158, 11, 0.25);
  
  --success: #10b981;
  --whatsapp: #25d366;
  --whatsapp-hover: #128c7e;
  
  /* Layout Surfaces */
  --bg-main: #f8fafc;
  --bg-card: #ffffff;
  --bg-dark: #07111e;
  --bg-header: #ffffff;
  --bg-topbar: linear-gradient(90deg, #064e3b 0%, #065f46 50%, #047857 100%);
  --bg-navbar: linear-gradient(90deg, #991b1b 0%, #b91c1c 30%, #dc2626 50%, #b91c1c 70%, #991b1b 100%);
  
  --text-main: #1e293b;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  --text-white: #ffffff;
  
  --border: #e2e8f0;
  --border-light: #f1f5f9;
  --border-emerald: #a7f3d0;
  
  --shadow-sm: 0 1px 3px 0 rgb(0 0 0 / 0.05);
  --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.07), 0 2px 4px -2px rgb(0 0 0 / 0.05);
  --shadow-md: 0 10px 15px -3px rgb(0 0 0 / 0.08), 0 4px 6px -4px rgb(0 0 0 / 0.05);
  --shadow-lg: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.05);
  
  --radius-sm: 6px;
  --radius: 12px;
  --radius-lg: 18px;
  --radius-full: 9999px;
  
  --font-main: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-bengali: 'Hind Siliguri', 'Inter', sans-serif;
}

[data-theme="dark"] {
  --bg-main: #070d18;
  --bg-card: #0f1c2e;
  --bg-dark: #050a12;
  --text-main: #f1f5f9;
  --text-muted: #94a3b8;
  --text-light: #64748b;
  --border: #1e2e42;
  --border-light: #162436;
  --primary-light: #450a0a;
  --secondary-light: #064e3b;
  --bg-topbar: linear-gradient(90deg, #042f24 0%, #064e3b 100%);
  --bg-navbar: linear-gradient(90deg, #7f1d1d 0%, #991b1b 50%, #7f1d1d 100%);
}

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 15px;
  scroll-behavior: smooth;
}

@media (max-width: 768px) {
  html {
    font-size: 14px;
  }
}

body {
  font-family: var(--font-bengali);
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s, background-color 0.2s, border-color 0.2s;
}

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

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
}

.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* Utility Layout */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.gap-1 { gap: 0.25rem; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-weight: 600;
  padding: 0.65rem 1.25rem;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-sm {
  padding: 0.4rem 0.85rem;
  font-size: 0.875rem;
  border-radius: var(--radius-sm);
}

.btn-lg {
  padding: 0.85rem 1.75rem;
  font-size: 1.1rem;
  border-radius: var(--radius);
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-hover) 100%);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
  font-weight: 700;
}
.btn-primary:hover {
  background: linear-gradient(135deg, var(--primary-hover) 0%, #991b1b 100%);
  box-shadow: 0 6px 16px rgba(220, 38, 38, 0.4);
  transform: translateY(-1px);
  color: #ffffff;
}

.btn-secondary {
  background: linear-gradient(135deg, var(--secondary) 0%, var(--secondary-hover) 100%);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(5, 150, 105, 0.25);
  font-weight: 700;
}
.btn-secondary:hover {
  background: linear-gradient(135deg, var(--secondary-hover) 0%, #047857 100%);
  box-shadow: 0 6px 16px rgba(5, 150, 105, 0.35);
  transform: translateY(-1px);
  color: #ffffff;
}

.btn-whatsapp {
  background-color: var(--whatsapp);
  color: #ffffff;
}
.btn-whatsapp:hover {
  background-color: var(--whatsapp-hover);
  color: #ffffff;
}

.btn-outline {
  background-color: transparent;
  border-color: var(--border);
  color: var(--text-main);
}
.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
  background-color: var(--primary-light);
}

/* ==========================================================================
   Modern SaaS & Mobile-First Form Controls UI
   ========================================================================== */
.form-group {
  margin-bottom: 1.25rem;
  display: flex;
  flex-direction: column;
}

.form-label,
label.form-label,
label:not(.badge):not(.btn):not(.checkbox-label):not(.radio-label):not(.switch):not(.as-select-label):not([for]) {
  display: block;
  font-family: var(--font-main, 'Hind Siliguri', 'Plus Jakarta Sans', sans-serif);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-main, #1e293b);
  margin-bottom: 0.45rem;
  line-height: 1.35;
  letter-spacing: 0.01em;
}

[data-theme="dark"] .form-label,
[data-theme="dark"] label.form-label {
  color: #e2e8f0;
}

.form-label .required,
label .required,
.text-danger {
  color: #dc2626;
  font-weight: 800;
  margin-left: 2px;
}

.form-hint,
.form-text {
  font-size: 0.8rem;
  color: var(--text-muted, #64748b);
  margin-top: 0.35rem;
  line-height: 1.4;
}

/* Base Input Controls */
.form-control,
.input-text,
input[type="text"],
input[type="tel"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="url"],
input[type="search"],
input[type="date"],
input[type="datetime-local"],
select.form-control,
textarea.form-control {
  width: 100%;
  display: block;
  font-family: var(--font-main, 'Hind Siliguri', 'Plus Jakarta Sans', sans-serif);
  font-size: 0.92rem;
  line-height: 1.5;
  color: var(--text-main, #0f172a);
  background-color: #ffffff;
  border: 1.5px solid #cbd5e1;
  border-radius: 10px;
  padding: 0.7rem 0.95rem;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  transition: border-color 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.2s ease;
  outline: none;
  box-sizing: border-box;
}

/* Focus and Active States */
.form-control:focus,
.input-text:focus,
input[type="text"]:focus,
input[type="tel"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="number"]:focus,
input[type="url"]:focus,
input[type="search"]:focus,
input[type="date"]:focus,
input[type="datetime-local"]:focus,
select.form-control:focus,
textarea.form-control:focus,
select:focus,
textarea:focus {
  border-color: #dc2626;
  background-color: #ffffff;
  box-shadow: 0 0 0 3.5px rgba(220, 38, 38, 0.14);
  outline: none;
}

/* Hover States */
.form-control:hover:not(:focus):not(:disabled),
.input-text:hover:not(:focus):not(:disabled),
input:hover:not(:focus):not(:disabled):not([type="checkbox"]):not([type="radio"]),
select.form-control:hover:not(:focus):not(:disabled),
textarea.form-control:hover:not(:focus):not(:disabled) {
  border-color: #94a3b8;
}

/* Dark Mode Form Controls */
[data-theme="dark"] .form-control,
[data-theme="dark"] .input-text,
[data-theme="dark"] input[type="text"],
[data-theme="dark"] input[type="tel"],
[data-theme="dark"] input[type="email"],
[data-theme="dark"] input[type="password"],
[data-theme="dark"] input[type="number"],
[data-theme="dark"] input[type="url"],
[data-theme="dark"] input[type="search"],
[data-theme="dark"] input[type="date"],
[data-theme="dark"] input[type="datetime-local"],
[data-theme="dark"] select.form-control,
[data-theme="dark"] textarea.form-control {
  background-color: #0f172a;
  border-color: #334155;
  color: #f8fafc;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
}

[data-theme="dark"] .form-control:focus,
[data-theme="dark"] select.form-control:focus,
[data-theme="dark"] textarea.form-control:focus {
  background-color: #1e293b;
  border-color: #ef4444;
  box-shadow: 0 0 0 3.5px rgba(239, 68, 68, 0.22);
}

/* Modern Select with Elegant SVG Chevron Arrow */
select.form-control,
select.input-text {
  cursor: pointer;
  background-color: #ffffff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23475569'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 16px 16px;
  padding-right: 42px !important;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

[data-theme="dark"] select.form-control,
[data-theme="dark"] select.input-text {
  background-color: #0f172a;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2394a3b8'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
}

/* Modern Textarea */
textarea.form-control,
textarea {
  min-height: 100px;
  resize: vertical;
  line-height: 1.6;
}

/* Placeholder Styling */
.form-control::placeholder,
input::placeholder,
textarea::placeholder {
  color: #94a3b8;
  opacity: 1;
  font-family: inherit;
  font-size: 0.88rem;
}

[data-theme="dark"] .form-control::placeholder,
[data-theme="dark"] input::placeholder,
[data-theme="dark"] textarea::placeholder {
  color: #64748b;
}

/* Modern File Upload Input */
input[type="file"].form-control,
input[type="file"] {
  padding: 0.5rem 0.75rem;
  background: #f8fafc;
  cursor: pointer;
  border: 1.5px dashed #cbd5e1;
  border-radius: 10px;
}
input[type="file"]::file-selector-button {
  border: none;
  background: var(--primary, #dc2626);
  color: #ffffff;
  padding: 0.4rem 0.85rem;
  border-radius: 6px;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  margin-right: 0.75rem;
  transition: all 0.2s ease;
}
input[type="file"]::file-selector-button:hover {
  background: #b91c1c;
}

/* Disabled and Readonly States */
.form-control:disabled,
.form-control[readonly],
input:disabled,
select:disabled,
textarea:disabled {
  background-color: #f1f5f9;
  border-color: #e2e8f0;
  color: #94a3b8;
  cursor: not-allowed;
  opacity: 0.8;
}

/* Form Responsive Grid Layouts */
.form-row-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-bottom: 1.25rem;
}
.form-row-3col {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1.25rem;
  margin-bottom: 1.25rem;
}
@media (max-width: 640px) {
  .form-row-2col,
  .form-row-3col {
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
  }
}

/* Checkbox & Radio Buttons */
input[type="checkbox"],
input[type="radio"] {
  width: 18px;
  height: 18px;
  accent-color: #dc2626;
  cursor: pointer;
  vertical-align: middle;
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.badge-featured {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #ffffff;
  box-shadow: 0 2px 4px rgba(245, 158, 11, 0.3);
}

.badge-sticky {
  background: linear-gradient(135deg, #ef4444, #b91c1c);
  color: #ffffff;
}

.badge-verified {
  background-color: #dcfce7;
  color: #15803d;
}

/* Top Bar */
.topbar {
  background: var(--bg-topbar);
  color: #ecfdf5;
  font-size: 0.78rem;
  border-bottom: 2px solid #059669;
}

.topbar-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.45rem 0;
  gap: 1rem;
}

.topbar-ticker {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ticker-badge {
  background-color: var(--accent);
  color: #0f172a;
  font-weight: 800;
  font-size: 0.72rem;
  padding: 0.15rem 0.55rem;
  border-radius: var(--radius-sm);
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  white-space: nowrap;
}

.topbar-link {
  color: #d1fae5;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-weight: 500;
  transition: color 0.2s ease;
}
.topbar-link:hover {
  color: #ffffff;
  text-shadow: 0 0 8px rgba(255, 255, 255, 0.4);
}

.theme-toggle-btn {
  background: transparent;
  border: none;
  color: #a7f3d0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.8rem;
}
.theme-toggle-btn:hover {
  color: #ffffff;
}

/* Modern Segmented Language Switcher */
.lang-switch-box {
  display: inline-flex;
  align-items: center;
  background: rgba(0, 0, 0, 0.32);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 9999px;
  padding: 2px 3px;
  gap: 2px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.25), 0 1px 2px rgba(255, 255, 255, 0.05);
  vertical-align: middle;
}

.lang-globe-icon {
  font-size: 0.78rem;
  color: #34d399;
  margin-left: 6px;
  margin-right: 3px;
  opacity: 0.95;
}

.lang-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  outline: none;
  color: rgba(236, 253, 245, 0.85);
  font-family: inherit;
  font-size: 0.74rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 9999px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  line-height: 1.25;
  user-select: none;
  white-space: nowrap;
}

.lang-btn:hover:not(.active) {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.14);
}

.lang-btn.active {
  background: #ffffff;
  color: #064e3b;
  font-weight: 800;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.28);
}

/* Drawer Language Switcher Override */
.drawer-lang-switch,
.drawer-tool-item .lang-switch-box {
  background: #e2e8f0;
  border: 1px solid #cbd5e1;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.06);
}

.drawer-lang-switch .lang-globe-icon,
.drawer-tool-item .lang-switch-box .lang-globe-icon {
  color: var(--primary);
}

.drawer-lang-switch .lang-btn,
.drawer-tool-item .lang-switch-box .lang-btn {
  color: #475569;
  font-weight: 600;
  padding: 4px 12px;
  font-size: 0.78rem;
}

.drawer-lang-switch .lang-btn:hover:not(.active),
.drawer-tool-item .lang-switch-box .lang-btn:hover:not(.active) {
  color: var(--text-main);
  background: rgba(0, 0, 0, 0.05);
}

.drawer-lang-switch .lang-btn.active,
.drawer-tool-item .lang-switch-box .lang-btn.active {
  background: #ffffff;
  color: var(--primary);
  font-weight: 800;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

/* Header */
.site-header {
  background-color: var(--bg-card);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}

.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 0;
  gap: 1.5rem;
}

.brand-identity-box {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  text-decoration: none;
  line-height: 1;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.brand-identity-box:hover {
  opacity: 0.95;
  transform: translateY(-1px);
}

.brand-identity-img {
  height: 64px;
  width: auto;
  max-width: 250px;
  object-fit: contain;
  display: block;
}

.brand-identity-sub {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.35px;
  margin-top: 4px;
  white-space: nowrap;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  display: block;
  line-height: 1.2;
}

@media (max-width: 768px) {
  .header-row {
    padding: 0.5rem 0;
  }
  .brand-identity-img {
    height: 50px;
    max-width: 180px;
  }
  .brand-identity-sub {
    font-size: 0.68rem;
    letter-spacing: 0.25px;
    margin-top: 3px;
  }
}

@media (max-width: 480px) {
  .brand-identity-img {
    height: 44px;
    max-width: 155px;
  }
  .brand-identity-sub {
    font-size: 0.60rem;
    letter-spacing: 0.15px;
    margin-top: 2px;
  }
  .topbar-helpline-link .topbar-helpline-text {
    display: none;
  }
  .topbar-content {
    font-size: 0.75rem;
  }
}

.brand-wrapper {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.brand-logo {
  height: 48px;
  width: auto;
  object-fit: contain;
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.brand-tagline {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 500;
}

.header-search {
  flex: 1;
  max-width: 540px;
  display: none;
}

@media (min-width: 900px) {
  .header-search {
    display: block;
  }
}

.header-search-form {
  display: flex;
  position: relative;
  border-radius: var(--radius-full);
  border: 2px solid #e2e8f0;
  background-color: #f8fafc;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
  transition: all 0.25s ease;
}
.header-search-form:focus-within {
  border-color: var(--secondary);
  background-color: #ffffff;
  box-shadow: 0 0 0 3px var(--secondary-glow), 0 4px 12px rgba(5, 150, 105, 0.1);
}

.header-search-input {
  flex: 1;
  border: none;
  padding: 0.65rem 1.25rem;
  background: transparent;
  outline: none;
  color: var(--text-main);
  font-weight: 500;
}

.header-search-btn {
  background: linear-gradient(135deg, var(--secondary) 0%, var(--secondary-hover) 100%);
  color: #ffffff;
  border: none;
  padding: 0 1.4rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: all 0.2s ease;
}
.header-search-btn:hover {
  background: linear-gradient(135deg, var(--secondary-hover) 0%, #064e3b 100%);
  transform: scale(1.05);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Main Navigation: Authentic Khonj Crimson Ribbon */
.navbar {
  background: var(--bg-navbar);
  border-bottom: 3px solid var(--accent);
  box-shadow: 0 4px 15px rgba(153, 27, 27, 0.25);
}

.nav-links {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 0.35rem;
  overflow-x: auto;
  padding: 0.4rem 0;
}

.nav-item {
  position: relative;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.95rem;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.925rem;
  color: #ffffff;
  white-space: nowrap;
  transition: all 0.2s ease;
}
.nav-link:hover {
  background-color: rgba(255, 255, 255, 0.2);
  color: #ffffff;
  transform: translateY(-1px);
}
.nav-link.active {
  background-color: rgba(0, 0, 0, 0.28);
  color: #fef08a; /* Warm gold text for active link */
  font-weight: 700;
  box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.3);
}

/* Hero Section */
.hero-section {
  background: radial-gradient(circle at 85% 15%, rgba(5, 150, 105, 0.25) 0%, transparent 45%),
              radial-gradient(circle at 15% 85%, rgba(220, 38, 38, 0.28) 0%, transparent 50%),
              linear-gradient(135deg, #07111e 0%, #0d2238 50%, #06111d 100%);
  color: #ffffff;
  padding: 3.5rem 0 3rem;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.hero-section::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 80% 20%, rgba(225, 29, 72, 0.15) 0%, transparent 60%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 860px;
  margin: 0 auto;
}

.hero-title {
  font-size: 1.85rem;
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 0.75rem;
}

@media (min-width: 768px) {
  .hero-title {
    font-size: 2.4rem;
  }
}

.hero-subtitle {
  font-size: 1rem;
  color: #cbd5e1;
  margin-bottom: 1.75rem;
  font-weight: 400;
}

.hero-search-box {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  padding: 0.75rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

@media (min-width: 768px) {
  .hero-search-box {
    flex-direction: row;
    align-items: center;
    border-radius: var(--radius-full);
    padding: 0.5rem 0.65rem 0.5rem 1.25rem;
  }
}

.search-field {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: #64748b;
  border-bottom: 1px solid #e2e8f0;
  padding: 0.5rem 0;
}

@media (min-width: 768px) {
  .search-field {
    border-bottom: none;
    border-right: 1px solid #e2e8f0;
    padding: 0 0.75rem;
  }
}

.search-field:last-of-type {
  border: none;
}

.search-field input, .search-field select {
  border: none;
  background: transparent;
  outline: none;
  width: 100%;
  color: #1e293b;
  font-weight: 500;
  font-size: 0.95rem;
}

.hero-popular-tags {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.5rem;
  font-size: 0.85rem;
}

.popular-tag {
  background: rgba(255, 255, 255, 0.12);
  color: #f1f5f9;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  transition: all 0.2s;
}
.popular-tag:hover {
  background: var(--primary);
  color: #ffffff;
}

/* Category Grid */
.section {
  padding: 3.5rem 0;
}

.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 2rem;
  gap: 1rem;
}

.section-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.25;
}

.section-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

@media (min-width: 640px) {
  .category-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 900px) {
  .category-grid { grid-template-columns: repeat(5, 1fr); }
}

.category-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.35rem 1rem;
  text-align: center;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}

.category-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: transparent;
  transition: background 0.3s ease;
}

.category-card:hover {
  transform: translateY(-5px);
  border-color: var(--secondary);
  box-shadow: 0 12px 25px -4px rgba(5, 150, 105, 0.15), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.category-card:hover::before {
  background: linear-gradient(90deg, var(--primary), var(--secondary));
}

.category-icon-box {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  color: #ffffff;
  transition: transform 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

.category-card:hover .category-icon-box {
  transform: scale(1.12);
}

.category-name {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-main);
  transition: color 0.2s ease;
}

.category-card:hover .category-name {
  color: var(--primary);
}

.category-count {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--secondary);
  background-color: var(--secondary-light);
  border: 1px solid var(--border-emerald);
  padding: 0.2rem 0.65rem;
  border-radius: var(--radius-full);
}

/* Listings Grid */
.listing-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 640px) {
  .listing-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .listing-grid { grid-template-columns: repeat(3, 1fr); }
}

.listing-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all 0.25s ease;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  position: relative;
}

.listing-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: #cbd5e1;
}

.listing-card.featured-card {
  border: 2px solid #f59e0b;
}

.listing-card.sticky-card {
  border: 2px solid #ef4444;
}

.listing-thumb-wrap {
  position: relative;
  height: 180px;
  background-color: #f1f5f9;
  overflow: hidden;
}

.listing-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.listing-card:hover .listing-thumb {
  transform: scale(1.04);
}

.listing-badges {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  z-index: 2;
}

.listing-price-tag {
  position: absolute;
  bottom: 0.75rem;
  right: 0.75rem;
  background-color: rgba(15, 23, 42, 0.85);
  color: #ffffff;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.9rem;
  backdrop-filter: blur(4px);
}

.listing-body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.listing-meta-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.5rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.listing-category-pill {
  color: var(--primary);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.listing-title {
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.35;
  margin-bottom: 0.5rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.listing-desc {
  font-size: 0.825rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 1rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

.listing-footer {
  border-top: 1px solid var(--border-light);
  padding-top: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.listing-location {
  font-size: 0.8rem;
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.listing-contact-actions {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.action-icon-btn {
  width: 34px;
  height: 34px;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  transition: all 0.2s;
}

.call-btn {
  background-color: var(--primary-light);
  color: var(--primary);
  border: 1px solid #fecaca;
}
.call-btn:hover {
  background-color: var(--primary);
  color: #ffffff;
  box-shadow: 0 4px 10px rgba(220, 38, 38, 0.3);
  transform: translateY(-1px);
}

.wa-btn {
  background-color: var(--secondary-light);
  color: var(--secondary);
  border: 1px solid var(--border-emerald);
}
.wa-btn:hover {
  background-color: var(--whatsapp);
  color: #ffffff;
  box-shadow: 0 4px 10px rgba(37, 211, 102, 0.3);
  transform: translateY(-1px);
}

/* Pricing Section */
.pricing-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  max-width: 880px;
  margin: 0 auto;
}

@media (min-width: 640px) {
  .pricing-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.pricing-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.25rem 1.75rem;
  display: flex;
  flex-direction: column;
  position: relative;
  box-shadow: var(--shadow-sm);
}

.pricing-card.featured {
  border: 2px solid var(--primary);
  box-shadow: var(--shadow-lg);
}

.pricing-badge-popular {
  position: absolute;
  top: -12px;
  right: 24px;
  background: var(--primary);
  color: #ffffff;
  padding: 0.25rem 0.85rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
}

.pricing-name {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 0.5rem;
}

.pricing-cost {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 1.5rem;
}

.pricing-cost small {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-muted);
}

.pricing-features {
  list-style: none;
  margin-bottom: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  flex: 1;
}

.pricing-features li {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.95rem;
  color: var(--text-main);
}

.pricing-features li i {
  color: var(--success);
}

/* Footer */
.site-footer {
  background-color: #060e19;
  color: #cbd5e1;
  padding: 4rem 0 1.5rem;
  margin-top: auto;
  border-top: 4px solid var(--primary);
  position: relative;
}

.site-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary) 0%, var(--secondary) 50%, var(--accent) 100%);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  margin-bottom: 3rem;
}

@media (min-width: 640px) {
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .footer-grid { grid-template-columns: 2fr 1.2fr 1.2fr 1.6fr; }
}

.footer-brand-title {
  font-size: 1.45rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 0.5rem;
}

.footer-about {
  font-size: 0.9rem;
  color: #94a3b8;
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

.footer-heading {
  font-size: 1.1rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 1.25rem;
  position: relative;
  padding-bottom: 0.5rem;
}

.footer-heading::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 32px;
  height: 2px;
  background-color: var(--primary);
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.footer-links a {
  color: #94a3b8;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.footer-links a:hover {
  color: #ffffff;
  transform: translateX(3px);
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
  font-size: 0.9rem;
  color: #94a3b8;
}

.footer-contact-item i {
  color: var(--primary);
  margin-top: 0.25rem;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.85rem;
  color: #64748b;
}

@media (min-width: 768px) {
  .footer-bottom {
    flex-direction: row;
  }
}

/* Floating Quick Actions */
.floating-actions {
  position: fixed;
  bottom: 24px;
  right: 24px;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  z-index: 99;
}

.float-btn {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 1.4rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  transition: all 0.25s;
}
.float-btn:hover {
  transform: scale(1.1);
}
.float-whatsapp { background-color: var(--whatsapp); }
.float-call { background-color: #2563eb; }

/* Filter Layout for listings.php */
.filter-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 900px) {
  .filter-layout {
    grid-template-columns: 280px 1fr;
  }
}

.filter-sidebar {
  background-color: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  height: fit-content;
}

.filter-group {
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-light);
}

.filter-group:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.filter-title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.85rem;
  color: var(--text-main);
}

.filter-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  max-height: 240px;
  overflow-y: auto;
}

.filter-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.9rem;
  color: var(--text-main);
  cursor: pointer;
  padding: 0.25rem 0;
}

.filter-item:hover {
  color: var(--primary);
}

/* Single Listing Details */
.single-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 900px) {
  .single-grid {
    grid-template-columns: 1fr 340px;
  }
}

.single-main-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
}

.single-sidebar-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  margin-bottom: 1.5rem;
}

.contact-card-box {
  background: linear-gradient(135deg, #f8fafc, #f1f5f9);
  border: 1px solid #e2e8f0;
  border-radius: var(--radius);
  padding: 1.25rem;
  text-align: center;
  margin-bottom: 1.25rem;
}

.seller-phone-display {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary);
  margin: 0.5rem 0;
  font-family: var(--font-main);
}

/* Intelligent Hero Slider */
.hero-slider-wrap {
  position: relative;
  margin-bottom: 2rem;
}

.hero-slide {
  display: none;
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
}

.hero-slide.active {
  display: block;
  opacity: 1;
  animation: fadeInSlide 0.5s ease forwards;
}

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

.hero-slide-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem 0.9rem;
  border-radius: var(--radius-full);
  font-size: 0.825rem;
  font-weight: 700;
  margin-bottom: 0.85rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.hero-highlights {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.85rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.hero-highlight-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  font-size: 0.825rem;
  color: #e2e8f0;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.hero-slider-arrow {
  position: absolute;
  top: 35%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: all 0.2s ease;
  backdrop-filter: blur(6px);
}

.hero-slider-arrow:hover {
  background: var(--primary);
  border-color: var(--primary);
  transform: translateY(-50%) scale(1.08);
}

.hero-slider-prev { left: -15px; }
.hero-slider-next { right: -15px; }

@media (max-width: 768px) {
  .hero-slider-prev { left: 5px; }
  .hero-slider-next { right: 5px; }
  .hero-slider-arrow { width: 34px; height: 34px; font-size: 0.85rem; }
}

.hero-slider-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

.hero-dot {
  width: 28px;
  height: 6px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.25);
  cursor: pointer;
  transition: all 0.3s ease;
}

.hero-dot.active {
  background: var(--primary);
  width: 44px;
}

/* ==========================================================================
   MOBILE APP-GRADE NAVIGATION & RESPONSIVE ENGINE
   Powered by Mass Media, Malda
   ========================================================================== */

/* Global Mobile Fixes */
html, body {
  max-width: 100vw;
  overflow-x: hidden;
  -webkit-tap-highlight-color: transparent;
}

body.drawer-locked {
  overflow: hidden !important;
  touch-action: none;
}

/* Desktop defaults: Hide mobile app elements on desktop */
.mobile-hamburger-btn,
.mobile-header-actions,
.mobile-search-bar,
.app-bottom-nav,
.mobile-drawer,
.drawer-backdrop,
.mobile-filter-bar,
.filter-mobile-header,
.filter-backdrop,
.mobile-single-action-bar {
  display: none;
}

/* ==========================================================================
   RESPONSIVE BREAKPOINT: TABLETS & MOBILE SCREENS (<= 900px)
   ========================================================================== */
@media (max-width: 900px) {
  /* Mobile Listings Filter Bar & Bottom Sheet */
  .mobile-filter-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
    padding: 0.65rem 1rem;
    position: sticky;
    top: 56px;
    z-index: 850;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    gap: 0.75rem;
  }

  .mobile-filter-trigger {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--bg-main);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 0.45rem 0.95rem;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-main);
    cursor: pointer;
    transition: all 0.2s ease;
  }
  .mobile-filter-trigger:active {
    background: var(--primary);
    color: #fff;
  }

  .filter-count-badge {
    background: var(--primary);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 800;
    padding: 2px 7px;
    border-radius: var(--radius-full);
  }

  .mobile-filter-sort-wrap {
    display: flex;
    align-items: center;
  }

  .mobile-sort-select {
    background: var(--bg-main);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 0.45rem 0.85rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-main);
    outline: none;
  }

  /* Filter Sidebar becomes Bottom-Sheet Modal */
  .filter-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(4px);
    z-index: 1150;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
  }
  .filter-backdrop.open {
    opacity: 1;
    pointer-events: auto;
  }

  .filter-sidebar {
    display: block;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    max-height: 85vh;
    background: var(--bg-card);
    border-top-left-radius: 24px;
    border-top-right-radius: 24px;
    border: none;
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.3);
    z-index: 1200;
    padding: 1.25rem 1.25rem 2.5rem;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    transform: translateY(100%);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  }
  .filter-sidebar.mobile-open {
    transform: translateY(0);
  }

  .filter-mobile-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 0.85rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid var(--border);
  }

  .filter-mobile-title {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 0.5rem;
  }

  .filter-close-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: var(--bg-main);
    color: var(--text-main);
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
  }
}

/* ==========================================================================
   RESPONSIVE BREAKPOINT: MOBILE PHONES & DEVICES (<= 768px)
   ========================================================================== */
@media (max-width: 768px) {
  /* Push content up to clear fixed bottom navigation */
  body {
    padding-bottom: calc(72px + env(safe-area-inset-bottom, 0px)) !important;
  }

  /* Compact Topbar */
  .topbar {
    padding: 0.35rem 0;
  }
  .topbar-ticker {
    display: none; /* Hide ticker on small mobile to avoid layout shifts */
  }
  .topbar-content {
    justify-content: space-between;
    font-size: 0.78rem;
  }
  .topbar-date-item,
  .topbar-auth-item {
    display: none; /* Available in Offcanvas drawer */
  }
  .topbar-right {
    width: 100%;
    justify-content: space-between;
  }

  /* Sticky Header */
  .site-header {
    position: sticky;
    top: 0;
    z-index: 950;
    background: var(--bg-card);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
    border-bottom: 1px solid var(--border);
  }

  .header-row {
    padding: 0.5rem 0.65rem;
    gap: 0.5rem;
    justify-content: space-between;
  }

  /* Mobile Hamburger */
  .mobile-hamburger-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: var(--bg-main);
    color: var(--text-main);
    font-size: 1.15rem;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
  }
  .mobile-hamburger-btn:active {
    transform: scale(0.95);
    background: var(--primary);
    color: #fff;
  }

  /* Brand Logo in Mobile App Bar */
  .brand-identity-box {
    margin: 0 auto;
    text-align: center;
  }
  .brand-identity-img {
    height: 44px;
    max-width: 150px;
  }
  .brand-identity-sub {
    font-size: 0.65rem;
    margin-top: 1px;
    letter-spacing: 0.2px;
  }

  /* Hide Desktop Elements in Header */
  .header-search,
  .header-actions,
  .navbar {
    display: none !important;
  }

  /* Mobile Header Action Icons */
  .mobile-header-actions {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    flex-shrink: 0;
  }

  .mobile-icon-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: var(--bg-main);
    color: var(--text-main);
    font-size: 0.95rem;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s ease;
  }
  .mobile-icon-btn:active {
    background: var(--primary);
    color: #fff;
  }

  .mobile-lang-chip {
    display: none !important;
  }
  .mobile-lang-chip .mobile-lang-toggle-btn,
  .mobile-lang-chip button {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 5px 10px;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 700;
    border: 1px solid var(--border);
    background: var(--bg-card);
    color: var(--text-main);
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    line-height: 1.2;
  }
  .mobile-lang-chip .mobile-lang-toggle-btn i,
  .mobile-lang-chip button i {
    font-size: 0.72rem;
    color: #10b981;
  }
  .mobile-lang-chip .mobile-lang-toggle-btn:active,
  .mobile-lang-chip button:active {
    border-color: var(--primary);
    color: var(--primary);
    transform: scale(0.95);
  }

  /* Expandable Mobile Search Bar */
  .mobile-search-bar {
    display: none;
    padding: 0.5rem 0.65rem 0.75rem;
    background: var(--bg-card);
    border-top: 1px solid var(--border-light);
    animation: mobileSearchSlide 0.25s ease forwards;
  }
  @keyframes mobileSearchSlide {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
  }

  .mobile-search-form {
    display: flex;
    align-items: center;
    background: var(--bg-main);
    border: 2px solid var(--primary);
    border-radius: var(--radius-full);
    overflow: hidden;
    box-shadow: 0 4px 14px rgba(220, 38, 38, 0.12);
  }

  .mobile-search-lens {
    color: var(--primary);
    margin-left: 12px;
    font-size: 1rem;
  }

  .mobile-search-input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 0.65rem 0.75rem;
    font-size: 1rem;
    color: var(--text-main);
    outline: none;
    font-family: inherit;
  }

  .mobile-search-submit {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-hover) 100%);
    color: #fff;
    border: none;
    padding: 0.65rem 1.15rem;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
  }

  /* ========================================================================
     OFFCANVAS MOBILE DRAWER
     ======================================================================== */
  .drawer-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 1100;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
  }
  .drawer-backdrop.open {
    opacity: 1;
    pointer-events: auto;
  }

  .mobile-drawer {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    width: 86vw;
    max-width: 340px;
    background: var(--bg-card);
    z-index: 1200;
    box-shadow: 6px 0 30px rgba(0, 0, 0, 0.28);
    transform: translateX(-100%);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  }
  .mobile-drawer.open {
    transform: translateX(0);
  }

  .drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.1rem 1rem;
    border-bottom: 1px solid var(--border);
    background: var(--bg-main);
  }
  .drawer-brand {
    display: flex;
    flex-direction: column;
    text-decoration: none;
  }
  .drawer-logo {
    height: 44px;
    object-fit: contain;
  }
  .drawer-tagline {
    font-size: 0.68rem;
    color: var(--text-muted);
    font-weight: 700;
    letter-spacing: 0.25px;
    margin-top: 2px;
  }

  .drawer-close-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: var(--bg-card);
    color: var(--text-main);
    font-size: 1.15rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
  }

  .drawer-user-card {
    padding: 1rem;
    border-bottom: 1px solid var(--border-light);
    background: linear-gradient(135deg, rgba(220, 38, 38, 0.05), rgba(5, 150, 105, 0.05));
  }
  .drawer-user-meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
  }
  .drawer-user-avatar {
    font-size: 2rem;
    color: var(--primary);
  }
  .drawer-username {
    font-weight: 800;
    font-size: 1rem;
    color: var(--text-main);
  }
  .drawer-user-role {
    font-size: 0.75rem;
    color: var(--text-muted);
  }

  .drawer-user-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
  }
  .drawer-action-pill {
    padding: 0.35rem 0.75rem;
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
  }
  .pill-primary { background: #e0f2fe; color: #0284c7; }
  .pill-admin { background: #fee2e2; color: #dc2626; }
  .pill-logout { background: #f1f5f9; color: #64748b; }

  .drawer-guest-greeting {
    margin-bottom: 0.75rem;
  }
  .drawer-guest-title {
    font-weight: 800;
    font-size: 0.95rem;
    color: var(--text-main);
  }
  .drawer-guest-sub {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin: 2px 0 0;
  }
  .drawer-auth-buttons {
    display: flex;
    gap: 0.5rem;
  }
  .drawer-auth-btn {
    flex: 1;
    text-align: center;
    justify-content: center;
  }

  /* Drawer Call-to-action Button */
  .drawer-cta-wrap {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--border-light);
  }
  .drawer-post-ad-btn {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-hover) 100%);
    color: #fff;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(220, 38, 38, 0.25);
  }
  .drawer-post-ad-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
  }

  /* Drawer Nav Items */
  .drawer-body {
    flex: 1;
    overflow-y: auto;
    padding: 1rem 0.85rem 2.5rem;
    -webkit-overflow-scrolling: touch;
  }
  .drawer-section-label {
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    margin: 1rem 0 0.4rem 0.5rem;
  }
  .drawer-section-label:first-child {
    margin-top: 0;
  }

  .drawer-nav {
    list-style: none;
    margin: 0;
    padding: 0;
  }
  .drawer-nav-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.7rem 0.85rem;
    border-radius: 8px;
    color: var(--text-main);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.2s ease;
  }
  .drawer-nav-link i {
    width: 20px;
    text-align: center;
    color: var(--primary);
    font-size: 1rem;
  }
  .drawer-nav-link.payment-highlight {
    color: #d97706;
  }
  .drawer-nav-link.payment-highlight i {
    color: #d97706;
  }
  .drawer-nav-link:active,
  .drawer-nav-link.active {
    background: rgba(220, 38, 38, 0.08);
    color: var(--primary);
    font-weight: 700;
  }

  .drawer-tool-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.6rem 0.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-main);
  }

  .drawer-contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.6rem;
    margin-top: 0.75rem;
  }
  .drawer-contact-card {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.65rem 0.75rem;
    border-radius: 8px;
    text-decoration: none;
    color: #fff;
    font-size: 0.825rem;
  }
  .drawer-contact-card.call {
    background: linear-gradient(135deg, #0284c7, #0369a1);
  }
  .drawer-contact-card.wa {
    background: linear-gradient(135deg, #16a34a, #15803d);
  }
  .drawer-contact-card .label {
    display: block;
    font-size: 0.7rem;
    opacity: 0.85;
  }
  .drawer-contact-card .val {
    font-size: 0.8rem;
    white-space: nowrap;
  }

  /* ========================================================================
     APP-LIKE MOBILE BOTTOM NAVIGATION BAR
     ======================================================================== */
  .app-bottom-nav {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-top: 1px solid var(--border);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08);
    z-index: 1000;
    justify-content: space-around;
    align-items: center;
    padding-bottom: env(safe-area-inset-bottom, 0px);
  }
  [data-theme="dark"] .app-bottom-nav {
    background: rgba(15, 23, 42, 0.96);
    border-top-color: #334155;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.4);
  }

  .bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
    text-decoration: none;
    color: var(--text-muted);
    font-size: 0.72rem;
    font-weight: 600;
    padding: 4px 0;
    border: none;
    background: transparent;
    cursor: pointer;
    transition: color 0.2s ease, transform 0.2s ease;
  }
  .bottom-nav-item i {
    font-size: 1.15rem;
    margin-bottom: 2px;
  }
  .bottom-nav-item.active {
    color: var(--primary);
    font-weight: 700;
  }
  .bottom-nav-item:active {
    transform: scale(0.92);
  }

  /* Center Prominent Floating "Post Ad" Action Button */
  .bottom-nav-post-ad {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    transform: translateY(-14px);
    position: relative;
    z-index: 1005;
    flex: 1;
  }
  .post-ad-circle {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: linear-gradient(135deg, #dc2626 0%, #991b1b 100%);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    box-shadow: 0 6px 18px rgba(220, 38, 38, 0.42), 0 0 0 4px var(--bg-card);
    transition: all 0.25s ease;
  }
  .bottom-nav-post-ad:active .post-ad-circle {
    transform: scale(0.92);
  }
  .post-ad-text {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--primary);
    margin-top: 3px;
  }

  /* Floating WhatsApp & Call Buttons Repositioned above Bottom Nav */
  .floating-actions {
    bottom: 78px !important;
    right: 14px !important;
  }
  .float-btn {
    width: 48px;
    height: 48px;
    font-size: 1.25rem;
  }

  /* ========================================================================
     MOBILE STICKY CONTACT ACTION BAR FOR SINGLE LISTING
     ======================================================================== */
  .mobile-single-action-bar {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 64px;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid var(--border);
    box-shadow: 0 -6px 25px rgba(0, 0, 0, 0.12);
    z-index: 1010;
    padding: 0.5rem 0.75rem;
    gap: 0.5rem;
    align-items: center;
    padding-bottom: calc(0.5rem + env(safe-area-inset-bottom, 0px));
  }
  [data-theme="dark"] .mobile-single-action-bar {
    background: rgba(15, 23, 42, 0.98);
    border-top-color: #334155;
  }

  .mobile-action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    height: 46px;
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 0.925rem;
    text-decoration: none;
    transition: all 0.2s ease;
  }
  .mobile-call-btn {
    flex: 1.2;
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    color: #fff;
    box-shadow: 0 4px 12px rgba(5, 150, 105, 0.25);
  }
  .mobile-wa-btn {
    flex: 1.2;
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    color: #fff;
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.25);
  }
  .mobile-share-btn {
    width: 46px;
    border: 1px solid var(--border);
    background: var(--bg-main);
    color: var(--text-main);
    font-size: 1.1rem;
    cursor: pointer;
  }

  /* Hero Section Mobile Adjustments */
  .hero-section {
    padding: 2.25rem 0 2rem;
  }
  .hero-title {
    font-size: 1.65rem !important;
    line-height: 1.3 !important;
  }
  .hero-subtitle {
    font-size: 0.95rem !important;
    margin-bottom: 0.75rem !important;
  }
  .hero-highlights {
    gap: 0.4rem;
  }
  .hero-highlight-pill {
    font-size: 0.75rem;
    padding: 0.25rem 0.65rem;
  }

  /* Hero Search Form on Mobile */
  .hero-search-box {
    border-radius: 14px !important;
    padding: 0.65rem !important;
    gap: 0.5rem;
    flex-direction: column !important;
  }
  .hero-search-box .search-field {
    border-bottom: 1px solid #f1f5f9;
    border-right: none !important;
    padding: 0.5rem 0.25rem !important;
    width: 100%;
  }
  .hero-search-box select,
  .hero-search-box input {
    font-size: 16px !important; /* Prevents auto-zoom on iOS */
    height: 44px;
  }
  .hero-search-box button[type="submit"] {
    width: 100%;
    justify-content: center;
    border-radius: 10px !important;
    height: 48px;
    font-size: 1rem !important;
  }

  /* Popular Tags Horizontal Scroller */
  .hero-popular-tags {
    display: flex;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    padding: 0.5rem 0;
    gap: 0.45rem;
    justify-content: flex-start !important;
  }
  .popular-tag {
    font-size: 0.78rem;
    padding: 0.3rem 0.7rem;
    flex-shrink: 0;
  }

  /* Category Grid on Mobile: 2 Columns */
  .category-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 0.65rem !important;
  }
  .category-card {
    padding: 1rem 0.5rem !important;
  }
  .category-icon-box {
    width: 44px !important;
    height: 44px !important;
    font-size: 1.15rem !important;
  }
  .category-name {
    font-size: 0.85rem !important;
  }

  /* Listing Cards Grid on Mobile: 1 Column */
  .listing-grid {
    grid-template-columns: 1fr !important;
    gap: 1rem !important;
  }
  .listing-card {
    border-radius: 12px;
  }
  .listing-thumb-wrap {
    height: 180px !important;
  }
  .listing-body {
    padding: 1rem !important;
  }

  /* Single Listing Page on Mobile */
  .single-main-card {
    padding: 1.25rem !important;
  }
  .seller-phone-display {
    font-size: 1.25rem !important;
  }

  /* Section Header on Mobile */
  .section-header {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 0.75rem !important;
  }
  .section-header > div {
    width: 100%;
  }

  /* Form controls touch targets */
  input, select, textarea, button, .btn {
    min-height: 44px;
    box-sizing: border-box;
  }

  /* Table responsive wrap */
  table {
    display: block;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  /* Footer on Mobile */
  .footer-grid {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
  }
  .footer-bottom {
    flex-direction: column !important;
    text-align: center;
    gap: 1rem;
  }
}

/* ==========================================================================
   Khonj Live Advertisement & Monetization Banner Styles
   ========================================================================== */
.khonj-ad-container {
  width: 100%;
  margin: 1.75rem 0;
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  box-sizing: border-box;
}

.khonj-ad-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
  padding: 0 4px;
}

.khonj-ad-badge {
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(148, 163, 184, 0.15);
  padding: 2px 8px;
  border-radius: 4px;
}

.khonj-ad-info-link {
  font-size: 11px;
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
  transition: opacity 0.2s;
}

.khonj-ad-info-link:hover {
  text-decoration: underline;
  opacity: 0.85;
}

.khonj-ad-banner {
  text-align: center;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}

.khonj-ad-link {
  display: block;
  text-decoration: none;
}

.khonj-ad-img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
  border-radius: 8px;
}

.khonj-ad-html {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1rem;
  text-align: center;
  overflow: hidden;
}

/* Elegant Fallback Promo Card when no custom ad is active */
.khonj-ad-placeholder-box {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.15);
}

.khonj-ad-promo-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.25rem 1.75rem;
  text-decoration: none;
  color: #ffffff;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.khonj-ad-promo-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);
}

.khonj-ad-promo-left {
  flex: 1;
}

.khonj-ad-promo-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: #ffffff;
  margin: 6px 0 3px 0;
  line-height: 1.3;
}

.khonj-ad-promo-desc {
  font-size: 12.5px;
  color: #94a3b8;
  margin: 0;
  line-height: 1.4;
}

.khonj-ad-promo-right {
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .khonj-ad-promo-card {
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem 1.25rem;
    gap: 1rem;
  }
  .khonj-ad-promo-right {
    width: 100%;
  }
  .khonj-ad-promo-right .btn {
    width: 100%;
    justify-content: center;
  }
}



