/* ===== NAVBAR ===== */
.navbar {
  height: 70px;
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 1050;
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.06);
}

.navbar-brand img {
  width: 50px;
}

/* NAV LINKS */
.navbar-nav .nav-link {
  font-size: 14px;
  color: #555 !important;
  padding: 6px 12px !important;
  display: flex;
  align-items: center;
  gap: 5px;
  font-weight: 500;
}

.navbar-nav .nav-link:hover {
  color: #ff4d4d !important;
}

/* REMOVE BOOTSTRAP CARET */
.dropdown-toggle::after {
  display: none !important;
}

/* ARROW */
.dd-arrow {
  display: flex;
  transition: 0.3s;
}

.dd-arrow svg {
  width: 12px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2.5;
}

.dropdown:hover .dd-arrow,
.dropdown.show .dd-arrow {
  transform: rotate(180deg);
  color: #ff4d4d;
}

/* DROPDOWN MENU */
.dropdown-menu {
  border: none !important;
  border-radius: 12px;
  padding: 10px;
  min-width: 200px;
  margin-top: 0 !important;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
  display: none;
  background: transparent;
  background-color: #fff;
}

.dropdown-item {
  border-radius: 8px;
  padding: 6px 12px;
  background: transparent !important;
  color: #555;
  font-size: 14px;
   font-weight: 500;
  /* smaller font */
}

.dropdown-item:hover {
  color: #ff4d4d;
  background: #ffff;
}

/* DROPDOWN SHOW ON HOVER DESKTOP */
.dropdown:hover .dropdown-menu {
  display: block;
}

/* BUTTONS SMALL */
.btn-login {
  font-size: 13px;
  padding: 5px 14px;
  border: 1px solid #ddd;
  border-radius: 30px;
  color: #555;
  text-decoration: none;
}

.btn-contact {
  font-size: 13px;
  padding: 5px 16px;
  border-radius: 30px;
  background: #ff4d4d;
  color: #fff;
  text-decoration: none;
}

/* HAMBURGER */
.navbar-toggler {
  border: none;
  font-size: 22px;
  background: none;
}

.close-icon {
  display: none;
}

.navbar-toggler.active .open-icon {
  display: none;
}

.navbar-toggler.active .close-icon {
  display: inline;
}

/* MOBILE MENU */
@media (max-width: 991px) {

  .navbar-collapse {
    position: fixed;
    top: 0;
    left: -280px;
    /* slide from left */
    width: 280px;
    height: 100%;
    background: #fff;
    padding: 20px;
    transition: 0.3s;
    z-index: 1050;
    overflow-y: auto;
  }

  .navbar-collapse.show {
    left: 0;
  }

  .navbar-nav {
    flex-direction: column;
    gap: 0;
  }

  /* Mobile dropdown toggle */
  .dropdown-menu {
    display: none;
    padding-left: 0;
    box-shadow: none;
  }

  .dropdown.show>.dropdown-menu {
    display: block;
  }

  /* Overlay */
  .menu-overlay {
    position: fixed;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    top: 0;
    left: 0;
    opacity: 0;
    visibility: hidden;
    transition: 0.3s;
  }

  .menu-overlay.active {
    opacity: 1;
    visibility: visible;
  }
}

/* ══════════════════════════════
   USER ICON DROPDOWN — Navbar
   Isolated — no conflicts
══════════════════════════════ */
.user-dropdown-wrap {
  position: relative;
  margin-right: 8px;
}

.user-icon-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(192, 57, 43, 0.07);
  border: 1.5px solid rgba(192, 57, 43, 0.18);
  border-radius: 30px;
  padding: 5px 12px 5px 5px;
  cursor: pointer;
  font-family: 'Poppins', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: #1a1a1a;
  transition: background 0.2s, border-color 0.2s;
  white-space: nowrap;
}
.user-icon-btn:hover {
  background: rgba(192, 57, 43, 0.13);
  border-color: rgba(192, 57, 43, 0.35);
}

.user-icon-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #c0392b;
  flex-shrink: 0;
}

.user-icon-arrow {
  font-size: 10px;
  color: #c0392b;
  transition: transform 0.25s;
}
.user-icon-arrow.open {
  transform: rotate(180deg);
}

/* ── Drop Menu ── */
.user-drop-menu {
  display: none;
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 240px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.14);
  border: 1px solid #ece8e4;
  z-index: 9999;
  overflow: hidden;
  animation: udmFadeIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.user-drop-menu.open {
  display: block;
}
@keyframes udmFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Header */
.udm-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  background: linear-gradient(135deg, #7b1c2e, #c0392b);
}
.udm-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255,255,255,0.4);
  flex-shrink: 0;
}
.udm-name {
  font-size: 13.5px;
  font-weight: 700;
  color: #fff;
  line-height: 1.3;
}
.udm-id {
  font-size: 11px;
  color: rgba(255,255,255,0.75);
  margin-top: 2px;
  display: flex;
  align-items: center;
  gap: 4px;
}
.udm-badge {
  background: #ffd700;
  color: #7a4f00;
  font-size: 10px;
  font-weight: 700;
  padding: 1px 7px;
  border-radius: 20px;
}

/* List */
.udm-list {
  list-style: none;
  padding: 8px 0;
  margin: 0;
}
.udm-list li a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 16px;
  font-size: 13px;
  font-weight: 500;
  color: #333;
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}
.udm-list li a:hover {
  background: #fdf2f1;
  color: #c0392b;
}
.udm-list li a i {
  font-size: 13px;
  color: #c0392b;
  width: 16px;
  text-align: center;
  flex-shrink: 0;
}

.udm-divider {
  height: 1px;
  background: #f0ebe8;
  margin: 4px 0;
}

/* Upgrade link */
.udm-upgrade {
  color: #c0392b !important;
  font-weight: 700 !important;
  background: #fdf6e3;
}
.udm-upgrade:hover {
  background: #fef3c7 !important;
}
.udm-upgrade i {
  color: #d4a017 !important;
}

/* Logout link */
.udm-logout {
  color: #888 !important;
}
.udm-logout:hover {
  background: #fff5f5 !important;
  color: #c0392b !important;
}

/* Mobile */
@media (max-width: 991px) {
  .user-drop-menu {
    right: auto;
    left: 0;
    width: 220px;
  }
}

@media (max-width: 991px) {

  .navbar-collapse .d-flex {
    flex-direction: column;   /* vertical */
    align-items: flex-start;  /* left align */
    gap: 10px;                /* spacing */
    margin-top: 15px;
  }

  .navbar-collapse .d-flex a,
  .navbar-collapse .user-dropdown {
    width: 100%;              /* full width buttons */
  }

  .btn-login,
  .btn-contact {
    width: 100%;
    text-align: center;
  }

  .user-trigger {
    width: 100%;
    justify-content: space-between;
  }
}