:root {
  --primary: #1a3c6e;
  --primary-lt: #2255a0;
  --accent: #e8a020;
  --accent-lt: #f5c842;
  --success: #198754;
  --danger: #dc3545;
  --warning: #ffc107;
  --dark: #0f1f3d;
  --light: #f8f9ff;
  --muted: #6c757d;
  --card-bg: #ffffff;
  --border: #dee2e6;
  --shadow: 0 4px 24px rgba(26, 60, 110, .10);
  --shadow-lg: 0 8px 40px rgba(26, 60, 110, .18);
  --radius: 12px;
  --radius-lg: 20px;
  --transition: .25s ease;
}

/* ── Reset & Base ─────────────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Inter', 'Segoe UI', sans-serif;
  font-size: 1rem;
  line-height: 1.7;
  color: #222;
  background: var(--light);
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ── Image Fallback (broken/missing images) ─────────────────── */
img.img-error,
img[src=""],
img:not([src]) {
  background: linear-gradient(135deg, #1a3c6e 0%, #0d2a52 100%);
  position: relative;
}

.img-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #1a3c6e 0%, #0d2a52 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: .5rem;
  color: rgba(255, 255, 255, .3);
  font-size: 2.5rem;
}

a {
  color: var(--primary);
  text-decoration: none;
}

a:hover {
  color: var(--primary-lt);
}

/* ── Typography ───────────────────────────────────────────── */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 700;
  line-height: 1.3;
  color: var(--dark);
}

h1 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
}

h2 {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
}

h3 {
  font-size: clamp(1.2rem, 2.5vw, 1.7rem);
}

h4 {
  font-size: clamp(1.1rem, 2vw, 1.4rem);
}

.text-primary {
  color: var(--primary) !important;
}

.text-accent {
  color: var(--accent) !important;
}

/* ── Navbar ───────────────────────────────────────────────── */
.navbar-glamco {
  background: var(--dark) !important;
  padding: .75rem 0;
  box-shadow: 0 2px 12px rgba(0, 0, 0, .4);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.navbar-glamco .navbar-brand {
  font-size: 1.6rem;
  font-weight: 800;
  color: #fff !important;
  letter-spacing: -0.5px;
}

.navbar-glamco .navbar-brand span {
  color: var(--accent);
}

.navbar-glamco .nav-link {
  font-size: 1.05rem;
  font-weight: 600;
  color: rgba(255, 255, 255, .85) !important;
  padding: .5rem 1rem !important;
  border-radius: 8px;
  transition: var(--transition);
}

.navbar-glamco .nav-link:hover,
.navbar-glamco .nav-link.active {
  color: var(--accent) !important;
  background: rgba(255, 255, 255, .08);
}

.navbar-glamco .btn-nav-login {
  background: var(--accent);
  color: var(--dark) !important;
  padding: .5rem 1.4rem !important;
  border-radius: 50px;
  font-weight: 700;
}

.navbar-glamco .btn-nav-login:hover {
  background: var(--accent-lt);
}

/* ── Buttons ──────────────────────────────────────────────── */
.btn {
  min-height: 48px;
  font-weight: 600;
  border-radius: 10px;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: .4rem;
}

.btn-primary-g {
  background: var(--primary);
  color: #fff;
  border: none;
  padding: .75rem 1.8rem;
}

.btn-primary-g:hover {
  background: var(--primary-lt);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(26, 60, 110, .35);
}

.btn-accent {
  background: var(--accent);
  color: var(--dark);
  border: none;
  padding: .75rem 1.8rem;
  font-weight: 700;
}

.btn-accent:hover {
  background: var(--accent-lt);
  transform: translateY(-2px);
}

.btn-outline-g {
  border: 2px solid var(--primary);
  color: var(--primary);
  background: transparent;
  padding: .65rem 1.6rem;
}

.btn-outline-g:hover {
  background: var(--primary);
  color: #fff;
}

/* ── Cards ────────────────────────────────────────────────── */
.card-g {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  border: none;
  overflow: hidden;
  transition: var(--transition);
}

.card-g:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

/* ── Hero Slider ──────────────────────────────────────────── */
.hero-slider {
  position: relative;
  overflow: hidden;
  min-height: 520px;
  background: var(--dark);
}

.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity .8s ease;
  display: flex;
  align-items: center;
}

.hero-slide.active {
  opacity: 1;
}

.hero-overlay {
  background: linear-gradient(120deg, rgba(10, 25, 60, .82) 50%, rgba(10, 25, 60, .4));
  inset: 0;
  position: absolute;
}

.hero-content {
  position: relative;
  z-index: 2;
  color: #fff;
  padding: 3rem 1.5rem;
}

.hero-content h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  color: #fff;
  margin-bottom: 1rem;
}

.hero-content p {
  font-size: 1.15rem;
  opacity: .9;
  margin-bottom: 1.5rem;
}

.hero-dots {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  gap: 8px;
}

.hero-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .5);
  cursor: pointer;
  transition: var(--transition);
}

.hero-dot.active {
  background: var(--accent);
  width: 24px;
  border-radius: 5px;
}

.hero-arrows {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 100%;
  display: flex;
  justify-content: space-between;
  pointer-events: none;
  padding: 0 1rem;
}

.hero-arrow {
  pointer-events: all;
  background: rgba(255, 255, 255, .2);
  border: 2px solid rgba(255, 255, 255, .4);
  color: #fff;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  backdrop-filter: blur(8px);
}

.hero-arrow:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--dark);
}

/* ── Search Bar ───────────────────────────────────────────── */
.search-bar-wrapper {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-lg);
  margin-top: -50px;
  position: relative;
  z-index: 10;
}

.search-bar-wrapper .form-control,
.search-bar-wrapper .form-select {
  border-radius: 10px;
  border: 2px solid var(--border);
  font-size: 1rem;
  min-height: 52px;
}

.search-bar-wrapper .form-control:focus,
.search-bar-wrapper .form-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 .2rem rgba(26, 60, 110, .15);
}

/* ── Section Titles ───────────────────────────────────────── */
.section-title {
  margin-bottom: 2.5rem;
}

.section-title h2 {
  display: flex;
  align-items: center;
  gap: .5rem;
}

.section-title h2::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background: var(--accent);
  border-radius: 2px;
  margin-top: .5rem;
}

.section-badge {
  display: inline-block;
  background: rgba(26, 60, 110, .1);
  color: var(--primary);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: .25rem .75rem;
  border-radius: 50px;
  margin-bottom: .75rem;
}

/* ── Flat Card ────────────────────────────────────────────── */
.flat-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #fff;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.flat-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-6px);
}

.flat-card .flat-img-wrap {
  position: relative;
  overflow: hidden;
  height: 220px;
  background: linear-gradient(135deg, #1a3c6e 0%, #0d2a52 100%);
}

.flat-card .flat-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
  display: block;
}

.flat-card:hover .flat-img-wrap img {
  transform: scale(1.07);
}

.flat-card .flat-img-wrap .img-fallback-icon {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: rgba(255, 255, 255, .2);
  pointer-events: none;
}

.flat-card .flat-status {
  position: absolute;
  top: 12px;
  left: 12px;
}

.flat-card .flat-wish {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 38px;
  height: 38px;
  background: rgba(255, 255, 255, .9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  color: #aaa;
}

.flat-card .flat-wish:hover,
.flat-card .flat-wish.active {
  color: #e74c3c;
  background: #fff;
}

.flat-card .flat-body {
  padding: 1.25rem;
}

.flat-card .flat-price {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--primary);
}

.flat-card .flat-meta {
  display: flex;
  gap: .75rem;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: .88rem;
  margin: .5rem 0;
}

.flat-card .flat-meta span {
  display: flex;
  align-items: center;
  gap: .25rem;
}

/* ── Status Badges ────────────────────────────────────────── */
.badge {
  font-size: .78rem;
  padding: .4em .75em;
  border-radius: 50px;
  font-weight: 700;
}

.badge-purple {
  background: #6f42c1;
  color: #fff;
}

/* ── Stats Strip ──────────────────────────────────────────── */
.stats-strip {
  background: var(--primary);
  color: #fff;
  padding: 2.5rem 0;
}

.stat-item {
  text-align: center;
}

.stat-item .stat-num {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--accent);
}

.stat-item .stat-label {
  font-size: 1rem;
  opacity: .85;
  margin-top: .25rem;
}

/* ── Filter Drawer (mobile) ───────────────────────────────── */
.filter-drawer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #fff;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  padding: 1.5rem;
  transform: translateY(100%);
  transition: transform .35s ease;
  z-index: 2000;
  box-shadow: 0 -8px 40px rgba(0, 0, 0, .2);
  max-height: 80vh;
  overflow-y: auto;
}

.filter-drawer.open {
  transform: translateY(0);
}

.filter-drawer-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .5);
  z-index: 1999;
}

.filter-drawer-backdrop.show {
  display: block;
}

.filter-drawer-handle {
  width: 40px;
  height: 5px;
  background: #ddd;
  border-radius: 3px;
  margin: 0 auto 1.2rem;
}

/* ── Sticky Bottom Bar (mobile) ───────────────────────────── */
.sticky-bottom-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--dark);
  z-index: 1500;
  padding: .5rem;
}

.sticky-bottom-bar a {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: .75rem;
  font-weight: 600;
  gap: 2px;
  padding: .5rem .25rem;
  border-radius: 10px;
  transition: var(--transition);
  min-height: 56px;
}

.sticky-bottom-bar a:first-child {
  background: var(--success);
}

.sticky-bottom-bar a:nth-child(2) {
  background: #25d366;
}

.sticky-bottom-bar a:last-child {
  background: var(--primary);
}

.sticky-bottom-bar a:hover {
  opacity: .85;
}

/* ── Floating Action Buttons ──────────────────────────────── */
.fab-container {
  position: fixed;
  right: 20px;
  bottom: 90px;
  z-index: 1400;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.fab-btn {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(0, 0, 0, .3);
  transition: var(--transition);
  text-decoration: none;
}

.fab-btn:hover {
  transform: scale(1.1);
}

.fab-call {
  background: var(--success);
  color: #fff;
}

.fab-wa {
  background: #25d366;
  color: #fff;
}

/* ── Dashboard Sidebar ────────────────────────────────────── */
.dash-sidebar {
  background: var(--dark);
  height: 100vh;
  width: 260px;
  position: fixed;
  left: 0;
  top: 0;
  z-index: 900;
  overflow-y: auto;
  transition: transform .3s ease;
  padding-bottom: 2rem;
}

.dash-sidebar .sidebar-brand {
  padding: 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, .1);
}

.dash-sidebar .sidebar-brand span {
  color: var(--accent);
}

.dash-sidebar .nav-link {
  color: rgba(255, 255, 255, .75);
  font-size: 1rem;
  font-weight: 600;
  padding: .75rem 1.5rem;
  border-radius: 10px;
  margin: 2px .75rem;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: .7rem;
}

.dash-sidebar .nav-link:hover,
.dash-sidebar .nav-link.active {
  background: rgba(255, 255, 255, .1);
  color: var(--accent);
}

.dash-sidebar .nav-heading {
  font-size: .72rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .35);
  padding: 1.25rem 1.5rem .5rem;
  font-weight: 700;
}

.dash-main {
  margin-left: 260px;
  min-height: 100vh;
  background: #f0f4ff;
  transition: margin .3s ease;
}

.dash-topbar {
  background: #fff;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 800;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .06);
}

.dash-content {
  padding: 1.5rem;
}

/* ── Dashboard Widgets ────────────────────────────────────── */
.widget-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  border-left: 5px solid var(--primary);
  transition: var(--transition);
}

.widget-card:hover {
  box-shadow: var(--shadow-lg);
}

.widget-card.accent {
  border-color: var(--accent);
}

.widget-card.success {
  border-color: var(--success);
}

.widget-card.danger {
  border-color: var(--danger);
}

.widget-card .widget-num {
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary);
}

.widget-card.accent .widget-num {
  color: var(--accent);
}

.widget-card.success .widget-num {
  color: var(--success);
}

.widget-card.danger .widget-num {
  color: var(--danger);
}

.widget-card .widget-label {
  color: var(--muted);
  font-size: .9rem;
  margin-top: .25rem;
}

.widget-card .widget-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
}

/* ── Tables ───────────────────────────────────────────────── */
.table-glamco {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  border: none;
}

.table-glamco thead {
  background: var(--primary);
  color: #fff;
}

.table-glamco thead th {
  font-weight: 700;
  font-size: .9rem;
  padding: 1rem 1.2rem;
  border: none;
}

.table-glamco tbody td {
  padding: .9rem 1.2rem;
  vertical-align: middle;
  border-color: #f0f4ff;
  font-size: .95rem;
}

.table-glamco tbody tr:hover {
  background: #f0f4ff;
}

/* ── Forms ────────────────────────────────────────────────── */
.form-g .form-label {
  font-weight: 600;
  font-size: .95rem;
  margin-bottom: .4rem;
  color: var(--dark);
}

.form-g .form-control,
.form-g .form-select {
  border-radius: 10px;
  border: 2px solid var(--border);
  font-size: 1rem;
  min-height: 52px;
  padding: .65rem 1rem;
  transition: var(--transition);
}

.form-g .form-control:focus,
.form-g .form-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 .2rem rgba(26, 60, 110, .12);
}

.form-g .input-group-text {
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 10px 0 0 10px;
}

/* ── Auth Pages ───────────────────────────────────────────── */
.auth-wrapper {
  min-height: 100vh;
  background: linear-gradient(135deg, var(--dark) 0%, #1a3c6e 50%, #0d3b8c 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
}

.auth-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  width: 100%;
  max-width: 480px;
  box-shadow: var(--shadow-lg);
}

.auth-logo {
  text-align: center;
  margin-bottom: 1.5rem;
}

.auth-logo .brand {
  font-size: 2rem;
  font-weight: 800;
  color: var(--dark);
}

.auth-logo .brand span {
  color: var(--accent);
}

/* ── Toast Alerts ─────────────────────────────────────────── */
.toast-container {
  position: fixed;
  top: 80px;
  right: 20px;
  z-index: 9999;
}

.toast-g {
  background: #fff;
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  padding: 1rem 1.25rem;
  margin-bottom: .75rem;
  border-left: 4px solid var(--primary);
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  min-width: 280px;
  animation: slideIn .3s ease;
}

.toast-g.success {
  border-color: var(--success);
}

.toast-g.error {
  border-color: var(--danger);
}

.toast-g.warning {
  border-color: var(--warning);
}

@keyframes slideIn {
  from {
    transform: translateX(100px);
    opacity: 0;
  }

  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* ── Breadcrumb ───────────────────────────────────────────── */
.breadcrumb-g {
  background: linear-gradient(135deg, var(--primary), var(--dark));
  padding: 2rem 0;
  color: #fff;
}

.breadcrumb-g h2 {
  color: #fff;
  margin-bottom: .5rem;
}

.breadcrumb-g .breadcrumb-item {
  color: rgba(255, 255, 255, .7);
}

.breadcrumb-g .breadcrumb-item.active {
  color: var(--accent);
}

.breadcrumb-g .breadcrumb-item+.breadcrumb-item::before {
  color: rgba(255, 255, 255, .5);
}

/* ── Tender Cards ─────────────────────────────────────────── */
.tender-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  border-top: 4px solid var(--primary);
  transition: var(--transition);
}

.tender-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}

.tender-card .tender-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--dark);
}

.tender-card .tender-meta {
  font-size: .85rem;
  color: var(--muted);
}

.tender-timer {
  font-size: .9rem;
  font-weight: 700;
  color: var(--danger);
  background: rgba(220, 53, 69, .1);
  padding: .3rem .75rem;
  border-radius: 50px;
  display: inline-flex;
  align-items: center;
  gap: .3rem;
}

/* ── Chat ─────────────────────────────────────────────────── */
.chat-wrapper {
  display: flex;
  height: calc(100vh - 120px);
  background: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.chat-sidebar-list {
  width: 300px;
  border-right: 2px solid var(--border);
  overflow-y: auto;
}

.chat-thread-item {
  padding: 1rem;
  cursor: pointer;
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}

.chat-thread-item:hover,
.chat-thread-item.active {
  background: #f0f4ff;
}

.chat-messages-panel {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.chat-messages-body {
  flex: 1;
  overflow-y: auto;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: .75rem;
  background: #f9faff;
}

.chat-bubble {
  max-width: 70%;
  padding: .75rem 1rem;
  border-radius: 18px;
  font-size: .95rem;
  line-height: 1.5;
}

.chat-bubble.sent {
  background: var(--primary);
  color: #fff;
  border-radius: 18px 18px 4px 18px;
  align-self: flex-end;
}

.chat-bubble.received {
  background: #efefef;
  color: #222;
  border-radius: 18px 18px 18px 4px;
  align-self: flex-start;
}

.chat-input-bar {
  padding: 1rem;
  border-top: 2px solid var(--border);
  display: flex;
  gap: .75rem;
}

.chat-input-bar input {
  flex: 1;
  border-radius: 50px;
  border: 2px solid var(--border);
  padding: .6rem 1.2rem;
  font-size: .95rem;
}

/* ── Footer ───────────────────────────────────────────────── */
.footer-g {
  background: var(--dark);
  color: rgba(255, 255, 255, .8);
  padding: 0;
}

.footer-heading {
  color: #fff;
  font-weight: 700;
  font-size: .72rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
  position: relative;
  padding-bottom: .6rem;
}

.footer-heading::after {
  content: '';
  display: block;
  position: absolute;
  bottom: 0;
  left: 0;
  width: 28px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}

.footer-g h5 {
  color: #fff;
  font-weight: 700;
  margin-bottom: 1rem;
}

.footer-nav {
  display: flex;
  flex-direction: column;
}

.footer-nav a,
.footer-g nav a {
  color: rgba(255, 255, 255, .55);
  font-size: .91rem;
  display: flex;
  align-items: center;
  margin-bottom: .45rem;
  padding: .25rem 0;
  transition: color .2s ease, transform .2s ease;
  text-decoration: none;
}

.footer-nav a:hover,
.footer-g nav a:hover {
  color: var(--accent);
  transform: translateX(5px);
}

.footer-g a {
  color: rgba(255, 255, 255, .55);
  font-size: .91rem;
  display: block;
  margin-bottom: .4rem;
  transition: var(--transition);
  text-decoration: none;
}

.footer-g a:hover {
  color: var(--accent);
}

.footer-contact-link {
  text-decoration: none !important;
  transition: opacity .2s ease;
}

.footer-contact-link:hover {
  opacity: .85;
}

.footer-contact-icon {
  width: 38px;
  height: 38px;
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  flex-shrink: 0;
  transition: var(--transition);
}

.footer-contact-link:hover .footer-contact-icon {
  background: rgba(232, 160, 32, .15);
  border-color: var(--accent);
}

.footer-socials {
  display: flex;
  gap: .6rem;
  margin-top: .75rem;
}

.footer-socials a {
  width: 38px;
  height: 38px;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, .7) !important;
  font-size: 1rem;
  margin: 0;
  transition: var(--transition);
}

.footer-socials a:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--dark) !important;
  transform: translateY(-3px);
}


/* ── Calculators ──────────────────────────────────────────── */
.calc-card {
  background: linear-gradient(135deg, #1a3c6e, #0d2a52);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 2rem;
}

.calc-card .form-label {
  color: rgba(255, 255, 255, .8);
}

.calc-card .form-control,
.calc-card .form-range {
  border-color: rgba(255, 255, 255, .2);
  background: rgba(255, 255, 255, .1);
  color: #fff;
}

.calc-result {
  background: rgba(255, 255, 255, .1);
  border-radius: var(--radius);
  padding: 1rem 1.5rem;
  margin-top: 1rem;
}

.calc-result .result-val {
  font-size: 2rem;
  font-weight: 800;
  color: var(--accent-lt);
}

/* ── Utilities ────────────────────────────────────────────── */
.rounded-g {
  border-radius: var(--radius) !important;
}

.rounded-lg {
  border-radius: var(--radius-lg) !important;
}

.shadow-g {
  box-shadow: var(--shadow) !important;
}

.bg-primary-g {
  background: var(--primary) !important;
}

.bg-dark-g {
  background: var(--dark) !important;
}

.bg-accent {
  background: var(--accent) !important;
}

.section-pad {
  padding: 4rem 0;
}

.section-pad-sm {
  padding: 2.5rem 0;
}

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 991.98px) {
  .navbar-glamco .navbar-brand {
    font-size: 1.4em;
  }

  .navbar-glamco .nav-link {
    font-size: 1.1rem;
  }

  .dash-sidebar {
    transform: translateX(-100%);
  }

  .dash-sidebar.show {
    transform: translateX(0);
  }

  .dash-main {
    margin-left: 0;
  }

  .chat-sidebar-list {
    width: 240px;
  }
}

@media (max-width: 767.98px) {
  html {
    font-size: 15px;
  }

  .hero-slider {
    min-height: 380px;
  }

  .hero-content h1 {
    font-size: 2rem;
  }

  .hero-arrow {
    width: 38px;
    height: 38px;
    font-size: .9rem;
  }

  .search-bar-wrapper {
    margin-top: 0;
  }

  .stats-strip {
    padding: 1.5rem 0;
  }

  .stat-item .stat-num {
    font-size: 1.8rem;
  }

  .sticky-bottom-bar {
    display: flex;
  }

  .fab-container {
    bottom: 80px;
  }

  body {
    padding-bottom: 80px;
  }

  .flat-card .flat-img-wrap {
    height: 180px;
  }

  .auth-card {
    padding: 1.75rem;
  }

  .chat-sidebar-list {
    display: none;
  }

  .chat-sidebar-list.show {
    display: block;
    position: absolute;
    z-index: 50;
    width: 80%;
    box-shadow: var(--shadow-lg);
  }

  .table-responsive {
    font-size: .85rem;
  }

  .dash-content {
    padding: 1rem;
  }

  .widget-card {
    padding: 1rem;
  }

  .widget-card .widget-num {
    font-size: 1.5rem;
  }

  .section-pad {
    padding: 2.5rem 0;
  }

  h2 {
    font-size: 1.5rem;
  }

  .tender-card {
    padding: 1rem;
  }
}

@media (max-width: 575.98px) {
  .btn {
    width: 100%;
    justify-content: center;
  }

  .btn.btn-inline {
    width: auto;
  }

  .fab-container {
    right: 12px;
  }

  .flat-card .flat-meta {
    gap: .5rem;
  }

  .auth-card {
    border-radius: 0;
    box-shadow: none;
  }

  .auth-wrapper {
    padding: 0;
    align-items: stretch;
  }

  .filter-drawer {
    padding: 1rem;
  }
}

/* ── Sidebar Toggle Button ────────────────────────────────── */
.sidebar-toggle-btn {
  display: none;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: .4rem .7rem;
  font-size: 1.2rem;
  cursor: pointer;
}

@media (max-width: 991.98px) {
  .sidebar-toggle-btn {
    display: inline-flex;
    align-items: center;
  }
}

/* ── Loader ───────────────────────────────────────────────── */
.page-loader {
  position: fixed;
  inset: 0;
  background: var(--dark);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  transition: opacity .4s ease;
}

.page-loader.fade-out {
  opacity: 0;
  pointer-events: none;
}

.loader-ring {
  width: 56px;
  height: 56px;
  border: 5px solid rgba(255, 255, 255, .15);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin .8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ── Progress Bar ─────────────────────────────────────────── */
.progress-g {
  height: 10px;
  border-radius: 50px;
  background: #e0e0e0;
  overflow: hidden;
}

.progress-g .fill {
  height: 100%;
  border-radius: 50px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  transition: width 1s ease;
}

/* ── Timeline ─────────────────────────────────────────────── */
.timeline {
  position: relative;
  padding-left: 2rem;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 8px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--border);
}

.timeline-item {
  position: relative;
  padding-bottom: 1.5rem;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -26px;
  top: 14px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--timeline-color, var(--primary));
  border: 3px solid #fff;
  box-shadow: 0 0 0 2px var(--timeline-color, var(--primary));
}

.timeline-item.done::before {
  background: var(--timeline-color, var(--success));
  box-shadow: 0 0 0 2px var(--timeline-color, var(--success));
}

.timeline-item .time {
  font-size: .8rem;
  color: var(--muted);
}

.timeline-item .title {
  font-weight: 700;
  font-size: .95rem;
}

/* ═══════════════════════════════════════════════════════════════
   DARK MODE  –  [data-theme="dark"] on <html>
   ═══════════════════════════════════════════════════════════════ */

/* ── Dark theme toggle button ────────────────────────────────── */
.theme-toggle-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, .25);
  background: rgba(255, 255, 255, .1);
  color: #fff;
  font-size: 1.15rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background .25s, border-color .25s, transform .25s;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
}

.theme-toggle-btn:hover {
  background: rgba(255, 255, 255, .2);
  border-color: var(--accent);
  transform: rotate(20deg);
}

.theme-toggle-btn .icon-sun,
.theme-toggle-btn .icon-moon {
  position: absolute;
  transition: opacity .3s, transform .3s;
}

/* Day mode: show sun, hide moon */
.theme-toggle-btn .icon-sun {
  opacity: 1;
  transform: scale(1);
}

.theme-toggle-btn .icon-moon {
  opacity: 0;
  transform: scale(0) rotate(90deg);
}

/* Night mode: show moon, hide sun */
[data-theme="dark"] .theme-toggle-btn .icon-sun {
  opacity: 0;
  transform: scale(0) rotate(-90deg);
}

[data-theme="dark"] .theme-toggle-btn .icon-moon {
  opacity: 1;
  transform: scale(1) rotate(0);
}

/* ── Dark CSS variables ──────────────────────────────────────── */
[data-theme="dark"] {
  --primary: #3b7dd8;
  --primary-lt: #5592e6;
  --accent: #f5c842;
  --accent-lt: #ffe070;
  --dark: #0d1117;
  --light: #161b22;
  --card-bg: #1c2230;
  --border: #30363d;
  --muted: #8b949e;
  --shadow: 0 4px 24px rgba(0, 0, 0, .5);
  --shadow-lg: 0 8px 40px rgba(0, 0, 0, .7);
}

/* ── Body & base ─────────────────────────────────────────────── */
[data-theme="dark"] body {
  background: #0d1117;
  color: #c9d1d9;
}

[data-theme="dark"] h1,
[data-theme="dark"] h2,
[data-theme="dark"] h3,
[data-theme="dark"] h4,
[data-theme="dark"] h5,
[data-theme="dark"] h6 {
  color: #e6edf3;
}

[data-theme="dark"] a {
  color: var(--primary);
}

/* ── Cards ───────────────────────────────────────────────────── */
[data-theme="dark"] .card-g {
  background: #1c2230;
  border: 1px solid #30363d;
  box-shadow: 0 4px 24px rgba(0, 0, 0, .5);
}

/* ── Navbar ──────────────────────────────────────────────────── */
[data-theme="dark"] .navbar-glamco {
  background: #0d1117 !important;
  box-shadow: 0 2px 12px rgba(0, 0, 0, .7);
}

/* ── Search bar ──────────────────────────────────────────────── */
[data-theme="dark"] .search-bar-wrapper {
  background: #1c2230;
  box-shadow: 0 8px 40px rgba(0, 0, 0, .6);
}

[data-theme="dark"] .search-bar-wrapper .form-control,
[data-theme="dark"] .search-bar-wrapper .form-select {
  background: #0d1117;
  border-color: #30363d;
  color: #c9d1d9;
}

/* ── Flat / tender / widget cards ────────────────────────────── */
[data-theme="dark"] .flat-card,
[data-theme="dark"] .tender-card {
  background: #1c2230;
  border-color: #30363d;
}

[data-theme="dark"] .flat-card .flat-price,
[data-theme="dark"] .flat-card:hover .flat-img-wrap img {
  filter: brightness(1);
}

[data-theme="dark"] .widget-card {
  background: #1c2230;
  border-color: #30363d;
}

[data-theme="dark"] .widget-card .widget-label {
  color: #8b949e;
}

/* ── Section & page bg ───────────────────────────────────────── */
[data-theme="dark"] .section-pad.bg-light,
[data-theme="dark"] section.bg-light {
  background: #161b22 !important;
}

[data-theme="dark"] section[style*="background:#f0f4ff"],
[data-theme="dark"] section[style*="background: #f0f4ff"] {
  background: #161b22 !important;
}

[data-theme="dark"] .stats-strip {
  background: #161b22;
}

/* ── Section badge ───────────────────────────────────────────── */
[data-theme="dark"] .section-badge {
  background: rgba(59, 125, 216, .15);
  color: var(--primary);
}

/* ── Tables ──────────────────────────────────────────────────── */
[data-theme="dark"] .table-glamco {
  background: #1c2230;
  color: #c9d1d9;
}

[data-theme="dark"] .table-glamco tbody td {
  border-color: #30363d;
  color: #c9d1d9;
}

[data-theme="dark"] .table-glamco tbody tr:hover {
  background: #21293a;
}

[data-theme="dark"] .table-glamco thead {
  background: #0d2a52;
}

/* ── Forms ───────────────────────────────────────────────────── */
[data-theme="dark"] .form-control,
[data-theme="dark"] .form-select,
[data-theme="dark"] input[type="text"],
[data-theme="dark"] input[type="email"],
[data-theme="dark"] input[type="number"],
[data-theme="dark"] input[type="tel"],
[data-theme="dark"] textarea,
[data-theme="dark"] select {
  background: #0d1117;
  border-color: #30363d;
  color: #c9d1d9;
}

[data-theme="dark"] .form-control::placeholder,
[data-theme="dark"] input::placeholder,
[data-theme="dark"] textarea::placeholder {
  color: #556;
}

[data-theme="dark"] .form-control:focus,
[data-theme="dark"] .form-select:focus {
  background: #0d1117;
  border-color: var(--primary);
  color: #e6edf3;
  box-shadow: 0 0 0 .2rem rgba(59, 125, 216, .2);
}

[data-theme="dark"] .input-group-text {
  background: #1c2230;
  border-color: #30363d;
  color: #c9d1d9;
}

/* ── Buttons ─────────────────────────────────────────────────── */
[data-theme="dark"] .btn-outline-g {
  border-color: var(--primary);
  color: var(--primary);
}

[data-theme="dark"] .btn-outline-g:hover {
  background: var(--primary);
  color: #fff;
}

/* ── Toasts ──────────────────────────────────────────────────── */
[data-theme="dark"] .toast-g {
  background: #1c2230;
  color: #c9d1d9;
  border-color: var(--primary);
}

[data-theme="dark"] .toast-g.success {
  border-color: #198754;
}

[data-theme="dark"] .toast-g.error {
  border-color: #dc3545;
}

[data-theme="dark"] .toast-g.warning {
  border-color: #ffc107;
}

/* ── Filter drawer ───────────────────────────────────────────── */
[data-theme="dark"] .filter-drawer {
  background: #1c2230;
  color: #c9d1d9;
}

/* ── Auth ────────────────────────────────────────────────────── */
[data-theme="dark"] .auth-card {
  background: #1c2230;
  color: #c9d1d9;
}

[data-theme="dark"] .auth-logo .brand {
  color: #e6edf3;
}

/* ── Dashboard ───────────────────────────────────────────────── */
[data-theme="dark"] .dash-main {
  background: #0d1117;
}

[data-theme="dark"] .dash-topbar {
  background: #161b22;
  border-color: #30363d;
  color: #c9d1d9;
}

[data-theme="dark"] .dash-topbar h5 {
  color: #e6edf3;
}

[data-theme="dark"] .dash-topbar .text-muted {
  color: #8b949e !important;
}

[data-theme="dark"] .dash-sidebar {
  background: #0d1117;
  border-right: 1px solid #30363d;
}

[data-theme="dark"] .dash-sidebar .sidebar-brand {
  border-color: #30363d;
}

[data-theme="dark"] .dash-sidebar .nav-link {
  color: rgba(201, 209, 217, .7);
}

[data-theme="dark"] .dash-sidebar .nav-link:hover,
[data-theme="dark"] .dash-sidebar .nav-link.active {
  background: rgba(59, 125, 216, .12);
  color: var(--accent);
}

[data-theme="dark"] .dash-sidebar .nav-heading {
  color: rgba(201, 209, 217, .35);
}

/* ── Dropdowns ───────────────────────────────────────────────── */
[data-theme="dark"] .dropdown-menu {
  background: #1c2230;
  border-color: #30363d;
}

[data-theme="dark"] .dropdown-item {
  color: #c9d1d9;
}

[data-theme="dark"] .dropdown-item:hover {
  background: #21293a;
  color: #e6edf3;
}

/* ── Modals ──────────────────────────────────────────────────── */
[data-theme="dark"] .modal-content {
  background: #1c2230;
  color: #c9d1d9;
  border-color: #30363d;
}

[data-theme="dark"] .modal-header,
[data-theme="dark"] .modal-footer {
  border-color: #30363d;
}

[data-theme="dark"] .btn-close {
  filter: invert(1);
}

/* ── Alerts ──────────────────────────────────────────────────── */
[data-theme="dark"] .alert {
  border-color: #30363d;
}

[data-theme="dark"] .alert-info {
  background: rgba(13, 202, 240, .1);
  color: #7ecef0;
}

[data-theme="dark"] .alert-warning {
  background: rgba(255, 193, 7, .1);
  color: #ffd966;
}

[data-theme="dark"] .alert-danger {
  background: rgba(220, 53, 69, .1);
  color: #f87171;
}

[data-theme="dark"] .alert-success {
  background: rgba(25, 135, 84, .1);
  color: #6ee7b7;
}

/* ── Chat ────────────────────────────────────────────────────── */
[data-theme="dark"] .chat-wrapper {
  background: #1c2230;
}

[data-theme="dark"] .chat-messages-body {
  background: #161b22;
}

[data-theme="dark"] .chat-bubble.received {
  background: #21293a;
  color: #c9d1d9;
}

[data-theme="dark"] .chat-thread-item:hover,
[data-theme="dark"] .chat-thread-item.active {
  background: #21293a;
}

[data-theme="dark"] .chat-sidebar-list {
  border-color: #30363d;
}

/* ── Tables hover ─────────────────────────────────────────────  */
[data-theme="dark"] table.table-bordered,
[data-theme="dark"] .table {
  color: #c9d1d9;
  border-color: #30363d;
}

[data-theme="dark"] .table-light,
[data-theme="dark"] .bg-light {
  background-color: #161b22 !important;
  color: #c9d1d9 !important;
}

/* ── Progress bar bg ─────────────────────────────────────────── */
[data-theme="dark"] .progress {
  background: #30363d;
}

/* ── Misc text colors ────────────────────────────────────────── */
[data-theme="dark"] .text-muted {
  color: #8b949e !important;
}

[data-theme="dark"] .text-dark {
  color: #e6edf3 !important;
}

[data-theme="dark"] .border,
[data-theme="dark"] .border-bottom,
[data-theme="dark"] .border-top {
  border-color: #30363d !important;
}

/* ── Dashboard topbar user avatar ────────────────────────────── */
[data-theme="dark"] .dash-topbar a.text-dark {
  color: #c9d1d9 !important;
}

/* smooth theme transition */
body,
.card-g,
.flat-card,
.tender-card,
.widget-card,
.navbar-glamco,
.dash-sidebar,
.dash-topbar,
.dash-main,
.form-control,
.form-select,
.modal-content,
.dropdown-menu {
  transition: background-color .3s ease, color .2s ease, border-color .2s ease;
}

/* ── Fix: dropdowns inside table-responsive overflow clip ─────────────────── */
/* When using data-bs-strategy="fixed", Popper renders with position:fixed.   */
/* We just ensure z-index is high enough to appear above the sidebar overlay. */
.dropdown-menu[data-popper-placement] {
  z-index: 9999 !important;
}