/* =============================================================================
   UNIVERSAL BOX-SIZING & OVERFLOW RESET (Instantly Cures Mobile Scrolling)
   ============================================================================= */
*,
*::before,
*::after {
  box-sizing: border-box; /* Includes padding and borders in the element's total width */
}

html,
body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden; /* Prevents any accidental horizontal browser bouncing */
}
/* =============================================================================
   CLEANED CSS FILE - Resolved duplicates and conflicts
   ============================================================================= */

/* --- General & Layout --- */
body {
  font-family: sans-serif;
  margin: 0;
  background-color: #f4f4f9;
  padding-top: 120px; /* Account for fixed navbar height */
}

.container {
  width: 95%; /* Make the container take up 95% of the screen width */
  max-width: 1100px; /* But don't let it get wider than 1100px on large screens */
  margin: 20px auto;
  padding: 20px;
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.05);
}

.hidden {
  display: none !important;
}

/* --- Navbar Animation Styles --- */

/* 1. Main Navbar Container */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  max-width: 100vw;
  z-index: 10000; /* Force top-most layer */

  background-image: url("images/navbar-background.png");
  background-size: cover;
  background-position: center;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 10px 15px;
  height: 110px; /* Fixed height to keep navbar size constant */
  box-sizing: border-box;
}

.navbar-profile {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  max-width: 100vw;
  z-index: 10000; /* Force top-most layer */

  background-image: url("images/navbar_admin.png");
  background-size: cover;
  background-position: center;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 10px 15px;
  height: 110px; /* Fixed height to keep navbar size constant */
  box-sizing: border-box;
}

/* 2. FOREGROUND layer (the mountain) */
.navbar-foreground {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("images/navbar-foreground.png");
  background-size: 100% 100%;
  background-position: center;
  z-index: 2;
}

/* 3. PLANE layer */
.flying-plane {
  position: absolute;
  top: 25%; /* Adjust this percentage to control flight height */
  left: 100%;
  width: 70px;
  height: 70px;
  background-image: url("images/plane.png");
  background-size: contain;
  background-repeat: no-repeat;

  /* The plane starts invisible by default */
  opacity: 0;

  z-index: 1;

  animation: fly-across 15s linear 2s 1 forwards;
}
/* --- BOAT layer --- */
.sailing-boat {
  position: absolute;
  bottom: -150px; /* Adjust this to sit on your water line */
  left: -200px; /* Start invisible off-screen on the LEFT */
  width: 200px; /* Adjust size as needed */
  height: 200px;
  background-image: url("images/boat.png");
  background-size: contain;
  background-repeat: no-repeat;
  z-index: 3; /* Higher than foreground (2) so it sits on top, or lower (1) to go behind */

  /* Animation: name | duration | timing | delay | loop */
  animation: sail-stop-go 25s ease-in-out forwards;
}

/* --- Boat Animation (Left to Right) --- */
@keyframes sail-stop-go {
  /* 0 seconds: Start off-screen */
  0% {
    left: -200px;
  }

  /* 7.5 seconds: Arrive at 1/4 (25%) of the screen */
  30% {
    left: 20%;
  }

  /* 12.5 seconds: STAY at 25% (This creates the pause) */
  50% {
    left: 20%;
  }

  /* 25 seconds: Move to 3/4 (75%) of the screen and stop there */
  100% {
    left: 46%;
  }
}
/* 4. The Animation Definition */
@keyframes fly-across {
  0% {
    transform: translateX(10px) rotate(-15deg);
    opacity: 0; /* Stays invisible */
  }
  34% {
    opacity: 0;
  }
  55% {
    transform: translateX(-60vw) rotate(0deg);
    opacity: 1;
  }
  100% {
    transform: translateX(-120vw) rotate(10deg);
    opacity: 1;
  }
}

/* Navbar brand and links */
.navbar-brand,
.navbar-links {
  position: relative;
  z-index: 10001; /* Higher than the navbar background */
}

.navbar-brand {
  font-size: 1.5em;
  font-weight: bold;
  color: white; /* This makes the text white */
  text-decoration: none; /* This removes the underline */
  display: flex;
  align-items: center;
  height: 100%;
}

/* Ensure logo image is vertically centered */
.navbar-brand img {
  align-self: center;
  vertical-align: middle;
}

/* Desktop navbar three-column layout */
.navbar-content-wrapper {
  display: flex !important;
  justify-content: space-between !important; /* Back to space-between for proper distribution */
  align-items: center !important;
  width: 100% !important;
  height: 100% !important;
  position: relative !important;
  z-index: 10001 !important; /* Higher than the navbar background */
}

/* Left section - Logo */
.navbar-left {
  display: flex !important;
  align-items: center !important;
  flex-shrink: 0 !important;
  width: 280px !important; /* Increased width for larger logo */
  padding-left: 15px !important;
}

/* Center section - Minimal space */
.navbar-center {
  flex: 0.5 !important; /* Reduced flex to give more space to right side */
  display: flex !important;
  justify-content: center !important;
}

/* Update around line 128 */
.navbar-right {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  padding-right: 40px !important; /* INCREASED from 15px to 40px */
  flex-shrink: 0 !important;
  flex: 1 !important;
  height: 100% !important;
}

/* Single row for all right-side elements */
.navbar-single-row {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
  flex-wrap: nowrap !important;
}

/* Desktop logo styling */
.site-logo {
  height: 80px !important;
  width: auto !important;
  max-width: 240px !important;
  transition: transform 0.3s ease !important;
  margin-top: -20px !important;
}

.site-logo:hover {
  transform: scale(1.05);
}

/* Top row - existing navbar links */
.navbar-links {
  width: 100%;
  position: relative; /* This is required for z-index to work */
  z-index: 13; /* This is higher than the filter bar's z-index of 12 */
}

/* Update around line 170 */
.navbar-links ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  align-items: center; /* This ensures vertical centering */
  justify-content: flex-end;
  gap: 15px; /* INCREASED from 8px to 15px for better breathing room */
  flex-wrap: nowrap;
}

/* Standardized button styles for all navigation buttons */
.navbar-links button,
#auth-links-li button,
.nav-filter,
.bottom-nav-link {
  height: 36px; /* Consistent height across all buttons */
  line-height: 1; /* Consistent vertical text alignment */
  padding: 0 20px; /* Consistent padding for premium look */
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9em;
}

.navbar-links button.active,
.navbar-links button:hover,
.nav-filter.active,
.nav-filter:hover,
.bottom-nav-link.active,
.bottom-nav-link:hover {
  background-color: #e2e6ea;
}

/* Update this class */
.search-form-li {
  margin: 0 15px 0 40px !important; /* 40px left margin pushes it away from 'Forum' */
  position: relative;
  display: flex;
  align-items: center;
}

/* Update around line 190 */
#searchForm input[type="search"] {
  height: 36px; /* FORCE a fixed height */
  padding: 0 12px; /* Remove top/bottom padding, rely on height to center text */
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 0.9em;
  width: 200px; /* Make it slightly wider by default */
  transition: all 0.3s ease;
  background-color: rgba(
    255,
    255,
    255,
    0.9
  ); /* Slightly transparent so background shows through */
}

#searchForm input[type="search"]:focus {
  width: 200px; /* Reduced expanded width */
  max-width: 40vw; /* Responsive: max 30% of viewport width when focused */
}

/* Style for the welcome message when logged in */
#auth-links-li span {
  font-weight: bold;
  margin-right: 8px;
  white-space: nowrap; /* Keep welcome and username on same line */
}
#auth-links-li {
  display: flex;
  align-items: center;
  flex-wrap: nowrap; /* Prevent wrapping */
  gap: 6px; /* Reduced gap */
}

/* Smaller logout button */
#auth-links-li #logoutButton {
  padding: 0 12px; /* Narrower than default */
  font-size: 0.85em;
}

/* --- Desktop Filter Navigation Bar --- */
.navbar-filters-bar {
  position: fixed;
  top: 110px;
  left: 0;
  right: 0;
  z-index: 999;
  pointer-events: auto;
  background-color: #70c3c5; /* Solid teal background */
  width: 100%;
  height: 40px; /* Fixed height for the filter bar */
  display: none; /* Hidden by default, shown on desktop */
  align-items: center;
  justify-content: flex-start;
  padding: 0 20px;
  box-sizing: border-box;
}

/* 1. Space them out: Filters on Left, Links/Countries on Right */
.navbar-filters-container {
  width: 100%;
  display: flex;
  justify-content: space-between !important; /* Forces left/right separation */
  align-items: center;
}
/* 2. Style the container for the Right Side items */
.filters-right-side {
  display: flex;
  align-items: center;
  gap: 20px; /* Space between Deals, Forum, and Country */
}
/* 3. Style the "Deals" and "Forum" links for the Teal Bar */
.bottom-nav-link {
  color: white;
  background: transparent;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}
/* Filter navigation list */
.navbar-filters {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  gap: 20px; /* Increased gap for better spacing in dedicated bar */
  flex-wrap: nowrap;
  align-items: center;
}

/* Filter link styling */
.nav-filter {
  background: transparent;
  color: white;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

/* --- Country Filter Dropdown --- */
.country-filter-container {
  margin-left: 0 !important; /* We handle spacing via the parent .gap now */
}

.country-filter {
  background: rgba(255, 255, 255, 0.1);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 6px;
  padding: 8px 16px;
  font-size: 0.95em;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
  white-space: nowrap;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: auto;
  line-height: 1.2;
  margin: 0;
  box-sizing: border-box;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

.country-filter:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-1px);
}

.country-filter option {
  background: #333;
  color: white;
  padding: 8px;
}

.country-filter:focus {
  outline: none;
}

/* --- Mobile Country Filter Dropdown --- */
.navbar-mobile-country-filter {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid #c3e6cb; /* Changed from white to matching green border */
}

.navbar-mobile-country-filter h4 {
  color: #155724; /* FIXED: Changed from white to Dark Green for readability */
  margin-bottom: 10px;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
}

.mobile-country-filter {
  width: 100%; /* Use full width for better mobile touch */
  max-width: 300px;
  background: #ffffff; /* FIXED: White background instead of transparent */
  color: #333333; /* FIXED: Dark text instead of white */
  border: 1px solid #ced4da;
  border-radius: 6px;
  padding: 10px 12px;
  font-size: 16px; /* 16px prevents iOS from zooming in */
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;

  /* FIXED: Changed SVG arrow stroke from 'white' to 'black' (%23000000) so it is visible */
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px;
  padding-right: 40px;
}

.mobile-country-filter:hover {
  background: #f8f9fa;
  border-color: #adb5bd;
}

.mobile-country-filter:focus {
  outline: none;
  border-color: #28a745;
  box-shadow: 0 0 0 2px rgba(40, 167, 69, 0.25);
}

.mobile-country-filter option {
  background: #ffffff;
  color: #333333;
  padding: 8px;
}

/* --- Notification Styles --- */
#notification-li {
  position: relative; /* This is crucial for z-index to work */
  z-index: 15; /* This number is higher than the filters' z-index of 12 */
}

.notification-badge {
  position: absolute;
  top: -5px;
  right: -10px;
  background-color: #dc3545; /* Red */
  color: white;
  border-radius: 50%;
  padding: 2px 6px;
  font-size: 0.7em;
  font-weight: bold;
  border: 1px solid white;
}

.notification-panel {
  /* display: none; */ /* Will be toggled by JS */
  position: absolute;
  top: 45px; /* Adjust as needed */
  right: 0;
  width: 350px;
  max-height: 400px;
  overflow-y: auto;
  background-color: white;
  border: 1px solid #ddd;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  border-radius: 4px;
  z-index: 1001; /* Must be on top */
  color: #333; /* Reset text color for inside panel */
}

.notification-panel ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.notification-panel li {
  padding: 12px 15px;
  border-bottom: 1px solid #f0f0f0;
}

.notification-panel li:last-child {
  border-bottom: none;
}

.notification-panel li a {
  text-decoration: none;
  color: #007bff;
}

.notification-panel li small {
  display: block;
  color: #888;
  margin-top: 4px;
}

.notification-item.unread {
  background-color: #f4f8ff; /* A light blue for unread notifications */
}

.no-notifications {
  padding: 20px;
  text-align: center;
  color: #888;
}

/* --- Forms --- */
.form-container {
  background: #fff;
  padding: 20px;
  margin-bottom: 20px;
  border-radius: 5px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="url"],
textarea,
select {
  width: 100%;
  padding: 8px;
  margin-bottom: 10px;
  border-radius: 4px;
  border: 1px solid #ddd;
  box-sizing: border-box;
}

/* Enhanced styling for country dropdown */
select[name="country"] {
  background-color: #fff;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px;
  padding-right: 40px;
  cursor: pointer;
  transition:
    border-color 0.3s ease,
    box-shadow 0.3s ease;
}

select[name="country"]:focus {
  border-color: #20c997;
  box-shadow: 0 0 0 2px rgba(32, 201, 151, 0.25);
  outline: none;
}

select[name="country"] optgroup {
  font-style: normal;
  font-weight: bold;
  color: #333;
}

select[name="country"] option {
  padding: 8px;
  font-size: 14px;
}

/* Modal form specific enhancements */
.modal select[name="country"] {
  font-size: 14px;
  color: #333;
}

/* Consolidated Button Styles */
button,
.btn-primary {
  width: 100%;
  padding: 10px;
  border: none;
  background: #20c997;
  color: white;
  border-radius: 4px;
  cursor: pointer;
  font-size: 16px;
  transition: background-color 0.3s ease;
}

button:hover,
.btn-primary:hover {
  background: #0056b3;
}

.comment-form button {
  width: auto;
  padding: 5px 15px;
  font-size: 0.9em;
}

.btn-link {
  background: none !important;
  border: none !important;
  color: #007bff !important;
  cursor: pointer;
  padding: 5px 0 !important;
  font-size: 0.9em !important;
  font-weight: bold !important;
  text-align: left !important;
  width: auto !important;
  display: inline-block !important;
}

.btn-link:hover {
  background: none !important;
  color: #0056b3 !important;
  text-decoration: underline;
}

.message {
  margin-top: 15px;
  padding: 10px;
  border-radius: 4px;
  font-weight: bold;
}

/* --- Deals List --- */
.deals-container {
  margin-top: 30px;
}

/* CONSOLIDATED .deal-item styles */
/* --- Modernized Deal Card Container --- */
.deal-item {
  background: #ffffff;
  border: 1px solid #e2e8f0; /* Soft modern border */
  padding: 20px;
  margin-bottom: 20px;
  border-radius: 10px; /* Softer, rounder corners */
  display: flex;
  gap: 20px;
  scroll-margin-top: 140px;
  box-shadow:
    0 4px 6px -1px rgba(0, 0, 0, 0.03),
    0 2px 4px -1px rgba(0, 0, 0, 0.02); /* Soft shadow */
  transition:
    transform 0.2s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Elevate the card when the user hovers over it */
.deal-item:hover {
  transform: translateY(-2px);
  box-shadow:
    0 10px 15px -3px rgba(0, 0, 0, 0.05),
    0 4px 6px -2px rgba(0, 0, 0, 0.02);
  border-color: #cbd5e1;
}

/* --- Modernized Image Box --- */
.deal-image-container {
  flex-shrink: 0;
  width: 150px;
  height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #f8fafc;
  border: 1px solid #f1f5f9;
  border-radius: 8px; /* Rounds the image container */
  overflow: hidden;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.02);
  transition: transform 0.3s ease;
}

.deal-image-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Zoom the thumbnail slightly when the card is hovered */
.deal-item:hover .deal-image-thumb {
  transform: scale(1.04);
}
.deal-item h3 {
  margin-top: 0;
}

.deal-item a {
  color: #007bff;
  text-decoration: none;
}

.deal-item small {
  color: #666;
}

/* --- Deal Card Typography & Spacing --- */
.deal-content h3.deal-title {
  font-size: 1.3em;
  font-weight: 700;
  color: #1e293b; /* Rich slate instead of harsh black */
  margin: 0 0 8px 0;
  line-height: 1.4;
}

.deal-meta {
  font-size: 0.9em;
  color: #64748b; /* Clean steel-blue gray */
  margin-bottom: 12px;
}

.deal-description {
  font-size: 0.95em;
  color: #334155; /* Soft dark text for comfortable reading */
  line-height: 1.5;
  margin-bottom: 14px;
}

/* --- Leaderboard Advertisement Banner --- */
.ad-banner-container {
  width: 100%;
  max-width: 728px; /* Standard desktop leaderboard width */
  margin: 0 auto 25px auto; /* Centers the ad and adds space below */
  text-align: center;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.ad-banner-container:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 15px -3px rgba(0, 0, 0, 0.1);
}

.ad-banner-img {
  width: 100%;
  height: auto;
  max-height: 90px;
  object-fit: cover;
  display: block;
  border-radius: 8px;
}

/* Mobile responsive fallback */
@media (max-width: 768px) {
  .ad-banner-container {
    max-width: 100%;
    margin-bottom: 15px;
  }
}
/* --- Modal --- */
.modal {
  display: none;
  position: fixed;
  z-index: 20000 !important; /* Push modals higher than navbar */
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
  background-color: #fefefe;
  margin: 10% auto;
  padding: 20px;
  border: 1px solid #888;
  width: 80%;
  max-width: 500px;
  border-radius: 8px;
  position: relative;
  z-index: 20001 !important; /* Higher than modal */
  pointer-events: auto !important; /* Allow clicks inside */
}

.close-button {
  color: #aaa;
  position: absolute;
  top: 10px;
  right: 20px;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
}

.close-button:hover,
.close-button:focus {
  color: black;
}

/* --- Styles for the New Deal Sidebar (Avatar + Votes) --- */

/* The new main container for the left-side elements */
.deal-sidebar {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px; /* Space between avatar and vote container */
  flex-shrink: 0;
  width: 60px; /* Give it a consistent width */
}

/* Style for the avatar in the deal list */
.deal-user-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%; /* Make it circular */
  border: 2px solid #eee;
}

/* --- Redesigned Vote Widget --- */
.vote-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  background-color: #f1f5f9; /* Sleek, soft-gray background block */
  padding: 6px 4px;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  width: 100%;
  box-sizing: border-box;
}

/* Borderless circular vote buttons */
.vote-btn {
  background: none;
  border: none;
  color: #64748b; /* Muted gray arrow */
  cursor: pointer;
  font-size: 1.1em;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%; /* Perfect circle */
  line-height: 1;
  transition: all 0.2s ease;
}

/* Soft green hover for Upvoting */
.vote-btn[data-vote-type="up"]:hover {
  background-color: #d1fae5;
  color: #10b981;
}

/* Soft red hover for Downvoting */
.vote-btn[data-vote-type="down"]:hover {
  background-color: #fee2e2;
  color: #ef4444;
}

/* Bolder, modern score styling */
.score {
  font-family: sans-serif;
  font-size: 1.1em;
  font-weight: 700;
  color: #1e293b; /* Deep slate gray */
  padding: 4px 0;
}

.deal-content {
  flex-grow: 1;
}

/* --- Comments Section Styles --- */
.deal-footer {
  margin-top: 15px;
  border-top: 1px solid #eee;
  padding-top: 10px;
}

/* Group all three buttons together to give them the same base link style */
.deal-action-btn {
  background: none !important;
  border: none !important;
  color: #20c997 !important; /* Blue text */
  cursor: pointer;
  padding: 0 !important;
  font-size: 0.9em !important;
  font-weight: normal !important; /* Ensures text is NOT bold */
  width: auto !important; /* Overrides the default 100% width */
  display: inline-block !important; /* Allows buttons to sit side-by-side */
  text-align: left;
  margin: 0;
  margin-right: 15px; /* This adds the correct spacing between links */
}

/* Add a simple underline on hover to make them feel like links */
.deal-action-btn:hover {
  text-decoration: underline;
}

/* Specific hover effects for each one */
.toggle-comments-btn:hover,
.report-deal-btn:hover,
.feature-deal-btn:hover {
  text-decoration: underline;
}

.feature-deal-btn:hover {
  color: #28a745 !important; /* Green for suggest */
}

.report-deal-btn:hover {
  color: #dc3545 !important; /* Red for report */
}

.comments-section {
  margin-top: 15px;
  padding-left: 15px;
  border-left: 3px solid #f0f0f0;
}

.comment-item {
  margin-bottom: 10px;
  font-size: 0.9em;
  display: flex; /* This is key: it makes the avatar and text sit side-by-side */
  align-items: flex-start; /* Aligns items to the top */
  gap: 10px; /* Adds space between the avatar and the text */
}

.comment-avatar img {
  width: 36px; /* Set a fixed small width */
  height: 36px; /* Set a fixed small height */
  border-radius: 50%; /* Make it circular */
  flex-shrink: 0; /* Prevents the avatar from shrinking if text is long */
}

.comment-item p {
  margin: 0;
}

.comment-item small {
  color: #777;
}

.comment-form textarea {
  width: 100%;
  margin-bottom: 5px;
}

/* --- Pagination Styles --- */
#paginationContainer {
  margin-top: 30px;
  text-align: center;
}

#paginationContainer button {
  background-color: white;
  color: #20c997;
  border: 1px solid #dee2e6;
  padding: 8px 16px;
  margin: 0 4px;
  cursor: pointer;
  border-radius: 4px;
  width: auto; /* Override the default 100% width for buttons */
}

#paginationContainer button:hover {
  background-color: #e9ecef;
}

#paginationContainer button.active {
  background-color: #20c997;
  color: white;
  border-color: #007bff;
}

/* --- Deal Status Tag --- */
.deal-status-tag {
  display: inline-block;
  background-color: #d9534f; /* A strong red */
  color: white;
  font-weight: bold;
  padding: 4px 8px;
  font-size: 0.9em;
  border-radius: 4px;
  margin-right: 10px;
  text-transform: uppercase;
}

/* --- Profile Page Styles --- */
.profile-header {
  background: #fff;
  padding: 20px;
  margin-bottom: 20px;
  border-radius: 5px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  text-align: center;
}

.profile-header h1 {
  margin: 0;
}

.profile-section {
  background: #fff;
  padding: 20px;
  margin-bottom: 20px;
  border-radius: 5px;
}

.profile-section ul {
  list-style: none;
  padding: 0;
}

.profile-section li {
  padding: 8px 0;
  border-bottom: 1px solid #eee;
}

.profile-deal-score {
  display: inline-block;
  width: 40px;
  font-weight: bold;
}

.positive {
  color: #28a745;
}

.negative {
  color: #dc3545;
}

.deal-status-tag-profile {
  font-size: 0.8em;
  font-weight: bold;
  padding: 2px 6px;
  border-radius: 4px;
  color: white;
  background-color: #6c757d;
  margin-left: 5px;
}

.profile-comments-list {
  max-height: 400px; /* Prevent huge comment lists */
  overflow-y: auto;
}

.profile-comment-item {
  border-left: 3px solid #f0f0f0;
  padding-left: 15px;
  margin-bottom: 15px;
}

.profile-comment-item .comment-content {
  font-style: italic;
}

.current-avatar {
  margin: 20px 0;
  text-align: center;
}

.current-avatar img {
  border-radius: 50%; /* Make it circular */
  border: 3px solid #eee;
}

.success-message {
  color: #155724;
  background-color: #d4edda;
  border: 1px solid #c3e6cb;
  padding: 10px;
  border-radius: 5px;
  margin: 10px 0;
}

.error-message {
  color: #721c24;
  background-color: #f8d7da;
  border: 1px solid #f5c6cb;
  padding: 10px;
  border-radius: 5px;
  margin: 10px 0;
}

.profile-avatar img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 4px solid #fff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  margin-bottom: 10px;
}

.deal-sticky-tag {
  display: inline-block;
  background-color: #28a745; /* A friendly green */
  color: white;
  font-weight: bold;
  padding: 4px 8px;
  font-size: 0.9em;
  border-radius: 4px;
  margin-right: 10px;
}

/* --- Deal Country Info --- */
.deal-country {
  display: inline-block;
  background-color: #6f42c1; /* Purple */
  color: white;
  font-weight: 500;
  padding: 2px 8px;
  border-radius: 12px;
  margin-left: 10px;
  font-size: 0.8em;
  text-transform: capitalize;
}

.edit-controls {
  margin-top: 10px;
  display: flex;
  gap: 10px;
}

.edit-controls button {
  width: auto;
  padding: 5px 10px;
  font-size: 0.9em;
}

/* --- Footer Styles --- */
.site-footer {
  background-color: #343a40; /* A professional dark grey */
  color: #ffffff; /* Force white text */
  padding: 40px 0;
  margin-top: 50px; /* Add space between page content and footer */
  text-align: center;
  font-size: 0.9em;
  line-height: 1.6;
}

.footer-links ul {
  list-style: none;
  padding: 0;
  margin: 0 0 25px 0; /* Space below the links */
  display: flex;
  justify-content: center;
  gap: 25px; /* Space between each link */
}

.footer-links a {
  color: #ffffff;
  text-decoration: none;
  font-weight: bold;
}

.footer-links a:hover {
  text-decoration: underline; /* Underline on hover for feedback */
}

.footer-disclaimer {
  max-width: 800px; /* Keep disclaimer text from getting too wide */
  margin: 0 auto 25px auto; /* Center the disclaimer block */
  color: #adb5bd; /* A slightly dimmer grey for fine print */
  font-size: 0.8em;
}

.footer-disclaimer p {
  margin: 10px 0;
}

.footer-copyright {
  border-top: 1px solid #495057; /* A subtle separator line */
  padding-top: 25px;
  color: #adb5bd;
}

/* --- Popular Deals Sidebar Styles --- */

/* Main layout container for deals + sidebar */
.main-layout {
  display: flex;
  gap: 20px;
  width: 95%; /* Takes up most of the screen */
  max-width: 1800px; /* Allows it to get beautifully wide on big monitors */
  margin: 20px auto;
  padding: 0 20px;
}

/* Left side - main deals content (4/5 width) */
.deals-main {
  flex: 4;
  min-width: 0; /* Prevents flex item from overflowing */
}

/* Right side - popular deals sidebar (1/5 width) */
.popular-deals-sidebar {
  flex: 1;
  max-width: 240px; /* Ensures sidebar doesn't get too wide */
  min-width: 200px; /* Minimum readable width */
}

/* Sidebar container */
.popular-deals-container {
  background: #fff;
  border: 1px solid #8c963c; /* Olive green border from mockup */
  border-radius: 4px;
  padding: 15px;
  position: sticky;
  top: 200px; /* Moved down further to align with first deal card title text */
  max-height: 500px; /* Added for scrolling with 20 deals */
  overflow-y: auto; /* Enable vertical scrolling */
}

/* Sidebar title */
.popular-deals-title {
  font-family: "Courier New", monospace; /* Monospace font from mockup */
  color: #000000; /* Black text */
  background-color: #70c3c5; /* Teal background */
  font-size: 1.1em;
  font-weight: bold;
  margin: 0 0 15px 0;
  padding: 8px 12px; /* Add padding for the background */
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-radius: 4px; /* Rounded corners */
  text-align: center; /* Center the heading */
}

/* Individual popular deal items */
.popular-deal-item {
  border-bottom: 1px solid #f0f0f0;
  padding: 10px 0;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.popular-deal-item:last-child {
  border-bottom: none;
}

.popular-deal-item:hover {
  background-color: #f8f9fa;
  border-radius: 3px;
  margin: 0 -5px;
  padding: 10px 5px;
}

/* Deal title in sidebar */
.popular-deal-title {
  font-family: "Courier New", monospace;
  color: #8c963c;
  font-size: 0.9em;
  font-weight: 600;
  margin: 0 0 5px 0;
  line-height: 1.3;
  /* Truncate long titles with ellipsis */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Vote count */
.popular-deal-votes {
  font-family: "Courier New", monospace;
  color: #6c757d; /* Muted gray for secondary info */
  font-size: 0.8em;
  margin: 0 0 3px 0;
  font-weight: 500;
}

/* Vote score with color coding */
.popular-deal-score {
  font-family: "Courier New", monospace;
  font-weight: bold;
}

.popular-deal-score.positive {
  color: #28a745; /* Green for positive scores */
}

.popular-deal-score.negative {
  color: #dc3545; /* Red for negative scores */
}

.popular-deal-score.neutral {
  color: #6c757d; /* Gray for zero/neutral */
}

/* Date posted */
.popular-deal-date {
  font-family: "Courier New", monospace;
  color: #adb5bd; /* Light gray for date */
  font-size: 0.75em;
  margin: 0;
}

/* Loading state for sidebar */
.popular-deals-loading {
  font-family: "Courier New", monospace;
  color: #8c963c;
  text-align: center;
  padding: 20px;
  font-style: italic;
}

/* Empty state */
.popular-deals-empty {
  font-family: "Courier New", monospace;
  color: #6c757d;
  text-align: center;
  padding: 20px;
  font-style: italic;
  font-size: 0.9em;
}

/* --- Mobile Menu Elements - Hidden by default */
.navbar-links .mobile-only,
.navbar-links .mobile-only-divider {
  display: none; /* Hidden by default on desktop */
}

/* --- Toast Notification Styles --- */

/* The container that holds all the toasts */
#toast-container {
  position: fixed; /* Stays in the same place even when scrolling */
  top: 20px;
  right: 20px;
  z-index: 20002; /* FIXED: Increased Z-Index to show above mobile navbar */
  display: flex;
  flex-direction: column;
  align-items: flex-end; /* Toasts align to the right */
}

/* Individual toast message styling */
.toast {
  background-color: #333;
  color: white;
  padding: 15px 20px;
  border-radius: 5px;
  margin-bottom: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  opacity: 0; /* Start invisible */
  transform: translateX(100%); /* Start off-screen to the right */
  transition: all 0.5s cubic-bezier(0.68, -0.55, 0.27, 1.55); /* Smooth, bouncy animation */
  max-width: 300px;
  font-size: 0.9em;
}

/* The class we add with JavaScript to make the toast appear */
.toast.show {
  opacity: 1;
  transform: translateX(0); /* Move to its final position on-screen */
}

/* Style for success toasts (green) */
.toast.success {
  background-color: #28a745; /* A friendly green */
}

/* Style for error toasts (red) */
.toast.error {
  background-color: #dc3545; /* A strong red */
}

/* =============================================================================
   RESPONSIVE STYLES
   ============================================================================= */

/* --- Mobile Responsive (768px and below) --- */
@media (max-width: 768px) {
  /* Fix toast container position for mobile */
  #toast-container {
    top: 80px; /* Push down slightly so it's not behind the very top edge */
    right: 10px; /* Add some margin from the right edge */
  }

  /* FORCE LOGO CENTERING AND SIZE */
  .navbar-brand img,
  .mobile-logo,
  .site-logo {
    height: 60px !important;
    width: auto !important;
    max-width: 250px !important;
    margin: 0 auto !important;
    display: block !important;
    object-fit: contain !important;
  }

  /* ENSURE PROPER MOBILE LAYOUT STRUCTURE */
  .navbar-mobile-logo-row {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    width: 100% !important;
    margin-bottom: 10px !important;
  }
  /* Mobile content search bar - positioned below navbar */
  .mobile-content-search {
    padding: 12px 20px !important;
    background-color: transparent !important;
    border: none !important;
    margin-bottom: 15px !important;
    display: block !important;
  }

  .mobile-content-search-form {
    position: relative;
    max-width: 500px;
    margin: 0 auto;
  }

  .mobile-content-search-input,
  #mobile-content-search-form input[type="search"] {
    width: 100% !important;
    padding: 12px 15px 12px 45px !important;
    border: none !important;
    border-radius: 8px !important;
    font-size: 16px !important;
    background: white !important;
    color: #333 !important;
    box-sizing: border-box !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1) !important;
    transition: none !important;
  }

  .mobile-content-search-input:focus,
  #mobile-content-search-form input[type="search"]:focus {
    outline: none !important;
    box-shadow:
      0 2px 4px rgba(0, 0, 0, 0.1),
      0 0 0 2px rgba(0, 123, 255, 0.25) !important;
    border: none !important;
    background: white !important;
  }

  .mobile-content-search-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #6c757d;
    font-size: 16px;
  }

  /* Container adjustments */
  .container {
    padding: 15px;
  }

  /* Hide sidebar on mobile */
  .popular-deals-sidebar {
    display: none;
  }

  /* Main layout becomes vertical */
  .main-layout {
    flex-direction: column;
  }

  .deals-main {
    flex: 1 1 100%;
  }

  /* =================================================================
       MOBILE NAVBAR STYLES - FIXED VERSION
       Two-row layout: Logo on top, Menu/Auth on bottom
       ================================================================= */

  /* Hide desktop elements */
  .desktop-only,
  .navbar-foreground,
  .flying-plane,
  .navbar-content-wrapper,
  .navbar-links-container,
  .navbar-filters-bar {
    display: none !important;
  }

  /* Mobile Navbar Container - UPDATED */
  .navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: #70c3c5;
    border-bottom: 1px solid #c3e6cb;
    z-index: 10000;
    padding: 8px 0 !important;
    height: auto !important;
    min-height: 120px !important;
    display: block !important;
  }

  /* Two-row container */
  .navbar-mobile-top {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    height: 100%;
    position: relative !important;
    z-index: 10001 !important;
  }

  /* TOP ROW: Logo - ENHANCED */
  .navbar-mobile-logo-row {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin-bottom: 6px;
    padding: 0 10px;
  }

  .navbar-mobile-logo-row .navbar-brand {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
  }

  .mobile-logo,
  .site-logo {
    height: 60px !important;
    width: auto !important;
    max-width: 250px !important;
    display: block !important;
    margin: 0 auto !important;
    object-fit: contain;
  }

  /* BOTTOM ROW: Menu and Auth - ENHANCED */
  .navbar-mobile-controls-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 6px 12px;
    background: #70c3c5;
  }

  /* Left: Menu button */
  .navbar-mobile-left {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding-left: 8px;
  }

  .navbar-mobile-menu-btn {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    width: 28px;
    height: 22px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
  }

  .hamburger-line {
    width: 28px;
    height: 3px;
    background: #333;
    border-radius: 2px;
  }

  .navbar-mobile-menu-btn.menu-open .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .navbar-mobile-menu-btn.menu-open .hamburger-line:nth-child(2) {
    opacity: 0;
  }

  .navbar-mobile-menu-btn.menu-open .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
  }

  .navbar-mobile-menu-text {
    font-size: 11px;
    color: white;
    font-weight: 600;
    text-transform: uppercase;
    margin-top: 4px;
  }

  /* Right: Auth buttons */
  .navbar-mobile-right {
    display: flex;
    align-items: center;
    gap: 5px;
    padding-right: 8px;
  }

  .mobile-auth-buttons {
    display: flex;
    gap: 5px;
  }

  .navbar-mobile-auth-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px 15px;
  }

  .navbar-mobile-auth-icon {
    font-size: 16px;
    margin-bottom: 2px;
  }

  .navbar-mobile-subscribe-icon {
    background: #ff6b35;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
  }

  .navbar-mobile-auth-text {
    font-size: 10px;
    color: #8b4513;
    font-weight: bold;
    text-transform: uppercase;
  }

  /* Logged in state */
  .mobile-welcome-area {
    display: flex;
    align-items: center;
    gap: 8px;
  }

  .mobile-welcome-area.hidden {
    display: none !important;
  }

  .navbar-mobile-notification-bell {
    cursor: pointer;
    font-size: 18px;
    padding: 5px;
  }

  .navbar-mobile-welcome {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
  }

  .welcome-text {
    color: #333;
  }

  .mobile-username-text {
    color: #8b2cff;
    text-decoration: underline;
    cursor: pointer;
    font-weight: 500;
  }

  /* Dropdown Menu */
  .navbar-mobile-dropdown {
    display: none;
    position: fixed;
    top: 180px;
    left: 0;
    right: 0;
    background: #d4edda;
    border-bottom: 2px solid #c3e6cb;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    z-index: 999;
  }

  .navbar-mobile-dropdown.show {
    display: block;
  }

  .navbar-mobile-dropdown-content {
    padding: 20px;
  }

  .navbar-mobile-filters h4 {
    color: #8b4513;
    font-size: 14px;
    font-weight: bold;
    text-transform: uppercase;
    margin: 0 0 15px 0;
  }

  .navbar-mobile-filters ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 10px;
  }

  .mobile-nav-filter {
    width: 100%;
    padding: 10px 15px;
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid rgba(255, 255, 255, 0.8);
    border-radius: 6px;
    color: #333;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
  }

  .mobile-nav-filter.active {
    background: #28a745;
    color: white;
    border-color: #28a745;
  }

  /* Body padding for fixed navbar - UPDATED */
  body {
    padding-top: 130px !important;
  }

  /* Ensure dropdown positioning */
  .navbar-mobile-dropdown {
    top: 120px !important;
  }
}

/* --- Desktop Styles (769px and above) --- */
@media (min-width: 769px) {
  /* Hide mobile navbar elements */
  .navbar-mobile-top,
  .navbar-mobile-search,
  .navbar-mobile-dropdown,
  .navbar-mobile-menu-btn,
  .navbar-mobile-center,
  .navbar-mobile-right,
  .mobile-content-search {
    display: none !important;
  }

  /* Desktop navbar structure - Two section layout */
  .navbar {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    height: 110px !important; /* Top section height */
    background-image: url("images/navbar-background.png") !important;
    background-size: cover !important;
    padding: 10px 15px 0 15px !important; /* No bottom padding */
    display: flex !important;
    flex-direction: column !important;
  }

  .navbar-foreground,
  .flying-plane {
    display: block !important;
  }

  /* Ensure logo stays within navbar bounds on desktop */
  .site-logo {
    height: 80px !important;
    max-width: 240px !important;
  }

  .hamburger-icon {
    display: none !important;
  }

  /* Desktop navbar three-column layout - proper space distribution */
  .navbar-content-wrapper {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    width: 100% !important;
    height: 100% !important;
    flex: 1 !important;
  }

  /* Body padding adjustment for desktop navbar + filter bar height */
  body {
    padding-top: 160px !important; /* 110px navbar + 50px filter bar */
  }

  /* Desktop filter bar visibility and positioning */
  .navbar-filters-bar {
    display: flex !important;
    position: fixed !important;
    top: 110px !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 999 !important;
  }

  /* Desktop filter button styling - inherit from unified style */
  .nav-filter {
    color: white !important;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5) !important;
    margin: 0 2px !important;
  }

  .nav-filter.active,
  .nav-filter:hover {
    background: rgba(255, 255, 255, 0.15) !important;
    transform: translateY(-1px);
  }
}

/* --- Small Mobile Screens (480px and below) --- */
@media (max-width: 480px) {
  .search-form-li {
    display: none;
  }

  /* Smaller logo for small screens */
  .mobile-logo,
  .site-logo {
    height: 55px !important;
    max-width: 220px !important;
  }

  .navbar-mobile-auth-btn {
    padding: 3px 8px;
  }

  .navbar-mobile-dropdown {
    top: 115px !important;
  }

  /* Smaller navbar on very small screens */
  .navbar {
    min-height: 115px !important;
    padding: 6px 0 !important;
  }

  body {
    padding-top: 125px !important;
  }

  /* === DEAL CARDS: Stack vertically on small screens === */
  .deal-item {
    flex-direction: column !important;
    align-items: stretch !important; /* Ensure children take full width */
    width: 100% !important;
  }

  /* Image container - full width on top */
  .deal-image-container {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    max-height: 200px !important;
    margin-bottom: 10px !important;
  }

  .deal-image-thumb {
    width: 100% !important;
    height: auto !important;
    max-height: 200px !important;
    object-fit: contain !important;
  }

  /* Deal sidebar (avatar + votes) - horizontal on small screens */
  .deal-sidebar {
    flex-direction: row !important;
    width: 100% !important;
    justify-content: space-between !important; /* Spread avatar and votes */
    align-items: center !important; /* Center vertically */
    gap: 15px !important;
    margin-bottom: 10px !important;
    border-bottom: 1px solid #eee; /* Visual separator */
    padding-bottom: 10px;
  }

  /* Fix vote container width on mobile */
  .vote-container {
    width: auto !important; /* Let it shrink to fit buttons */
    flex-direction: row !important; /* Put votes side-by-side */
    gap: 10px;
  }

  /* Deal content takes full width */
  .deal-content {
    width: 100% !important;
  }

  /* Ensure text doesn't overflow */
  .deal-content h3,
  .deal-content p,
  .deal-content a {
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
    max-width: 100% !important;
  }
}

/* --- Animation Keyframes --- */
@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ========================================
   MOBILE SEARCH BULLETPROOF OVERRIDE
   This will override ALL other styles
   ======================================== */
.mobile-content-search-input,
#mobile-content-search-form input[type="search"],
div.mobile-content-search form input[type="search"] {
  width: 100% !important;
  padding: 12px 15px 12px 45px !important;
  border: none !important;
  border-radius: 8px !important;
  background: white !important;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1) !important;
  font-size: 16px !important;
  color: #333 !important;
  outline: none !important;
  margin: 0 !important;
  box-sizing: border-box !important;
}

.mobile-content-search-icon,
div.mobile-content-search .mobile-content-search-icon {
  position: absolute !important;
  left: 15px !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  color: #666 !important;
  font-size: 14px !important;
  z-index: 10 !important;
  pointer-events: none !important;
}

.mobile-content-search-form,
div.mobile-content-search form {
  position: relative !important;
  width: 100% !important;
}

/* ========================================
   ADD DEAL BUTTON & MODAL STYLES
   ======================================== */

/* Add Deal Button */
.add-deal-section {
  display: flex;
  justify-content: center;
  margin-bottom: 25px;
}

.add-deal-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 24px;
  background: linear-gradient(135deg, #74bec2 0%, #5d9a9c 100%);
  color: white;
  border: none;
  border-radius: 50px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(102, 216, 234, 0.3);
  transition: all 0.3s ease;
  transform: translateY(0);
}

.add-deal-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
  background: linear-gradient(135deg, #7b8dd8 0%, #8659ab 100%);
}

.add-deal-btn:active {
  transform: translateY(0);
}

.add-deal-icon {
  font-size: 18px;
  animation: fly 3s ease-in-out infinite;
}

@keyframes fly {
  0%,
  100% {
    transform: translateX(0) rotate(-5deg);
  }
  50% {
    transform: translateX(5px) rotate(5deg);
  }
}

.add-deal-text {
  font-weight: 600;
}

/* Add Deal Modal */
.add-deal-modal {
  width: 90%;
  max-width: 600px;
  padding: 0;
  border-radius: 12px;
  overflow: hidden;
}

.add-deal-title {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  margin: 0;
  padding: 25px 30px 15px;
  text-align: center;
  font-size: 24px;
  font-weight: 600;
}

.add-deal-subtitle {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: rgba(255, 255, 255, 0.9);
  margin: 0 0 20px 0;
  padding: 0 30px 25px;
  text-align: center;
  font-size: 14px;
  font-weight: 400;
}

.add-deal-form {
  padding: 30px;
}

/* Form Groups */
.form-group {
  margin-bottom: 20px;
}

.form-row {
  display: flex;
  gap: 15px;
}

.form-group.half {
  flex: 1;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: #333;
  font-size: 14px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 15px;
  border: 2px solid #e1e5e9;
  border-radius: 8px;
  font-size: 14px;
  transition: all 0.3s ease;
  box-sizing: border-box;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 80px;
}

/* Submit Button */
.submit-deal-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 10px;
}

.submit-deal-btn:hover {
  background: linear-gradient(135deg, #7b8dd8 0%, #8659ab 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.submit-deal-btn:active {
  transform: translateY(0);
}

.btn-icon {
  font-size: 16px;
}

/* Message styling */
.add-deal-form .message {
  text-align: center;
  margin-top: 15px;
  font-size: 14px;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
  .add-deal-modal {
    width: 95%;
    margin: 10px auto;
  }

  .add-deal-form {
    padding: 20px;
  }

  .form-row {
    flex-direction: column;
    gap: 0;
  }

  .add-deal-btn {
    padding: 10px 20px;
    font-size: 14px;
  }

  .add-deal-title {
    padding: 20px 20px 10px;
    font-size: 20px;
  }

  .add-deal-subtitle {
    padding: 0 20px 20px;
    font-size: 13px;
  }
}

/* --- Elegant Mint Coupon Ticket --- */
.promo-code-container {
  margin: 12px 0;
  display: inline-flex;
  align-items: center;
  background-color: #f0fdf4; /* Fresh, minty background */
  border: 2px dashed #10b981; /* Dashed green border */
  color: #065f46; /* Deep green text */
  padding: 6px 14px;
  border-radius: 6px;
  font-family: monospace;
  font-weight: 700;
  font-size: 1em;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
  transition: all 0.2s ease;
}

.promo-label {
  font-size: 0.8em;
  text-transform: uppercase;
  color: #666;
  margin-right: 8px;
}

.promo-code-container:hover {
  background-color: #d1fae5;
  border-color: #059669;
  transform: scale(1.02);
}

/* --- Fix Footer Container Contrast --- */
.site-footer .container {
  background-color: transparent; /* Remove the white background */
  box-shadow: none; /* Remove the shadow */
  border: none; /* Remove border if any */
}

.share-btn-container {
  margin-top: 10px;
  display: flex;
  gap: 10px;
}

.share-icon {
  cursor: pointer;
  font-size: 1.2em;
  text-decoration: none;
}

.share-icon:hover {
  opacity: 0.8;
}

/* --- Social Share Buttons --- */
.share-btn-container {
  margin-top: 12px;
  margin-bottom: 8px;
  display: flex;
  gap: 15px;
  align-items: center;
  border-top: 1px dashed #eee; /* Subtle separator line */
  padding-top: 8px;
}

.share-label {
  font-size: 0.8em;
  color: #999;
  font-weight: bold;
  text-transform: uppercase;
}

.share-icon {
  text-decoration: none;
  font-size: 1.2em;
  cursor: pointer;
  transition: transform 0.2s;
}

/* --- User Reputation Badge --- */
.user-badge {
  font-size: 0.75em;
  background-color: #e9ecef; /* Light grey background */
  color: #495057;
  padding: 2px 6px;
  border-radius: 10px; /* Rounded pill shape */
  margin-left: 5px;
  border: 1px solid #ced4da;
  vertical-align: middle;
  font-weight: bold;
  cursor: help; /* Shows a question mark cursor on hover */
}

/* Optional colors for high ranks */
.badge-gold {
  background-color: #fff3cd;
  color: #856404;
  border-color: #ffeeba;
} /* Deal King */

.badge-red {
  background-color: #f8d7da;
  color: #721c24;
  border-color: #f5c6cb;
} /* Expert */

/* --- High-Contrast Forum Layout --- */
.forum-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
  padding-bottom: 15px;
  border-bottom: 2px solid #f1f5f9;
}

.forum-header h2 {
  font-size: 1.6em;
  color: #1e293b;
  margin: 0;
}

/* Rounded, clean Forum Topic Table */
.topic-list {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin-top: 20px;
}

.topic-list th {
  background: #f8fafc; /* Sleek background */
  color: #475569;
  font-weight: bold;
  padding: 14px 16px;
  text-align: left;
  border-bottom: 2px solid #e2e8f0;
  font-size: 0.9em;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.topic-list td {
  padding: 16px;
  border-bottom: 1px solid #f1f5f9;
  vertical-align: middle;
}

/* Light gray zebra striping on alternating rows */
.topic-list tbody tr:nth-child(even) {
  background-color: #f8fafc;
}

.topic-list tbody tr:hover {
  background-color: #f1f5f9;
}

.topic-title-link {
  font-weight: 700;
  font-size: 1.1em;
  color: #1e293b;
  text-decoration: none;
  transition: color 0.15s ease;
  display: block;
  margin-bottom: 4px;
}

.topic-title-link:hover {
  color: #20c997; /* Teal brand color */
}

.topic-meta {
  font-size: 0.85em;
  color: #94a3b8;
}

/* Dynamic Forum Badges */
.reply-badge {
  background: #e2e8f0;
  color: #475569;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 0.8em;
  font-weight: bold;
  display: inline-block;
}

/* Sidebar Popular Topics */
.popular-topic-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px dashed #e2e8f0;
  gap: 10px;
}

.popular-topic-item:last-child {
  border-bottom: none;
}

.popular-topic-item .popular-deal-title {
  color: #475569 !important;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9em;
  line-height: 1.4;
}

.popular-topic-item .popular-deal-title:hover {
  color: #20c997 !important;
  text-decoration: underline;
}

/* Sidebar Popular Topics */
.popular-topic-item {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px dashed #ddd;
  font-size: 0.9em;
}

.reply-badge {
  background: #e2e6ea;
  color: #495057;
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 0.8em;
  font-weight: bold;
}
/* === Professional Button Styles for Profile Page === */
.profile-actions .btn {
  /* Shape and Spacing */
  display: inline-block;
  padding: 12px 24px;
  border-radius: 8px;
  border: none;

  /* Text Styling */
  color: #ffffff;
  text-decoration: none;
  font-size: 16px;
  font-weight: bold;
  text-align: center;

  /* Effects */
  cursor: pointer;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.profile-actions .btn:hover {
  transform: translateY(-2px); /* Lifts the button slightly */
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15); /* Enhances shadow on hover */
}

/* Default/Primary Button Color (for "Manage My Alerts") */
.profile-actions .btn {
  background-color: #007bff; /* Primary blue */
}

/* Secondary Button Color (for "Edit My Profile") */
.profile-actions .btn-secondary {
  background-color: #6c757d; /* Gray */
}

/* Danger/Admin Button Color */
.profile-actions .btn-danger {
  background-color: #dc3545; /* Red */
}
/* Tag Input Container */
.tag-input-container {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 12px;
  border: 2px solid #e1e5e9;
  border-radius: 8px;
  background: white;
  transition: border-color 0.2s ease;
  min-height: 50px;
}

.tag-input-container:focus-within {
  border-color: #007bff;
  box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

/* Tag Chips */
.tag-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  flex: 1;
  min-width: 0;
}

.tag-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.tag-remove {
  background: none;
  border: none;
  color: white;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  padding: 0;
  width: 18px;
  height: 18px;
  border-radius: 50%;
}

.tag-remove:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

/* Tag Input Field */
.tag-input {
  border: none;
  outline: none;
  flex: 1;
  min-width: 150px;
  font-size: 14px;
  padding: 4px;
  background: transparent;
}

/* Deal Tags Display */
.deal-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid #f0f0f0;
}

.deal-tag {
  display: inline-block;
  padding: 4px 8px;
  background: #f8f9fa;
  color: #495057;
  border: 1px solid #dee2e6;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.deal-tag:hover {
  background: #007bff;
  color: white;
  border-color: #007bff;
}
/* =========================================================
   ENHANCED NAV BAR HEADINGS (Teal Filter Bar)
   ========================================================= */

/* 1. Make all text bolder, slightly larger, and pill-shaped */
.navbar-filters-bar .nav-filter,
.navbar-filters-bar .bottom-nav-link {
  font-weight: 700 !important; /* Bold text */
  font-size: 1.05em !important; /* Slightly larger */
  letter-spacing: 0.5px !important; /* Tiny bit of spacing for readability */
  border-radius: 20px !important; /* Modern rounded pill shape */
  transition: all 0.2s ease !important;
}

/* 2. Make the ACTIVE tab completely pop out */
.navbar-filters-bar .nav-filter.active {
  background-color: #ffffff !important; /* Solid white background */
  color: #177a7c !important; /* Deep teal text for high contrast */
  text-shadow: none !important; /* Remove the dirty drop shadow */
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15) !important; /* Button shadow */
  transform: translateY(-1px); /* Lifts it up slightly */
}

/* 3. Enhance the hover state so it feels interactive */
.navbar-filters-bar .nav-filter:hover:not(.active),
.navbar-filters-bar .bottom-nav-link:hover {
  background-color: rgba(255, 255, 255, 0.3) !important;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.6) !important; /* Darker shadow on hover to maintain contrast */
}
/* =========================================================
   DRAG & DROP IMAGE UPLOADER STYLES
   ========================================================= */
.image-drag-drop-zone {
  border: 2px dashed #cbd5e1;
  border-radius: 8px;
  background-color: #f8fafc;
  padding: 25px 20px;
  text-align: center;
  cursor: pointer;
  position: relative;
  transition: all 0.2s ease;
}

/* Green feedback state when user drags a file over the box */
.image-drag-drop-zone.dragover {
  border-color: #10b981;
  background-color: #f0fdf4;
}

.drop-zone-prompt .drop-zone-icon {
  font-size: 32px;
  display: block;
  margin-bottom: 8px;
}

.drop-zone-prompt p {
  margin: 0 0 4px 0;
  font-size: 14px;
  color: #475569;
}

.drop-zone-prompt small {
  color: #94a3b8;
}

.drop-zone-preview {
  position: relative;
  width: 100%;
  height: 150px;
}

.drop-zone-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 6px;
}

/* Tiny X button to remove selected photo */
.remove-img-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(15, 23, 42, 0.75);
  color: white;
  border: none;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 14px;
  font-weight: bold;
  transition: background-color 0.15s;
}

.remove-img-btn:hover {
  background: rgba(15, 23, 42, 0.9);
}

/* =========================================================
   LIVE CARD PREVIEW STYLES
   ========================================================= */
.live-preview-section {
  margin-top: 25px;
  padding-top: 20px;
  border-top: 2px dashed #e2e8f0;
}

.preview-header {
  margin: 0 0 15px 0;
  color: #64748b;
  font-size: 11px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Mock card setup */
.mock-deal-card {
  pointer-events: none; /* Disables clicking/interaction inside the preview box */
  opacity: 0.9;
  border: 1px solid #cbd5e1 !important;
}
/* =========================================================
   MODERN "GO TO DEAL" CALL-TO-ACTION (CTA) BUTTON
   ========================================================= */
.deal-link {
  margin-top: 15px;
  margin-bottom: 15px;
}

/* Transform the plain link into a high-energy premium button */
.deal-link a {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 8px;

  /* Vibrant, trustworthy green-teal gradient to drive clicks */
  background: linear-gradient(135deg, #20c997 0%, #17a2b8 100%) !important;
  color: #ffffff !important; /* Force white text */

  font-weight: 700 !important;
  font-size: 0.9em !important;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  padding: 10px 24px !important;
  border-radius: 6px;

  /* Adds a modern, soft drop-shadow */
  box-shadow: 0 4px 6px rgba(32, 201, 151, 0.2);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none !important;
}

/* Add a clean, modern "outbound" arrow icon (↗) to signify leaving the site */
.deal-link a::after {
  content: " ↗";
  font-size: 1.15em;
  line-height: 1;
  font-weight: bold;
}

/* Smooth lift and glow effect on hover */
.deal-link a:hover {
  background: linear-gradient(135deg, #1aa383 0%, #118194 100%) !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(32, 201, 151, 0.35);
}

/* Subtle press down effect when clicked */
.deal-link a:active {
  transform: translateY(0);
  box-shadow: 0 4px 6px rgba(32, 201, 151, 0.2);
}
/* --- Widescreen Filter Spacing Optimizer --- */
@media (min-width: 769px) {
  .navbar-filters {
    gap: 12px !important; /* Reduces gap from 20px to 12px to fit all buttons */
  }
  .filters-right-side {
    gap: 12px !important; /* Reduces gap from 20px to 12px */
  }
}
/* =========================================================
   MARKDOWN TABLE & ITINERARY STYLES
   ========================================================= */
.deal-description-markdown table,
.comment-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 15px 0;
  font-size: 0.95em;
  box-sizing: border-box;
}

.deal-description-markdown th,
.comment-content th {
  background-color: #f1f5f9;
  color: #334155;
  font-weight: 600;
  border: 1px solid #cbd5e1;
  padding: 10px 12px;
  text-align: left;
}

.deal-description-markdown td,
.comment-content td {
  border: 1px solid #e2e8f0;
  padding: 8px 12px;
  color: #475569;
}

.deal-description-markdown tr:nth-child(even),
.comment-content tr:nth-child(even) {
  background-color: #f8fafc;
}

/* Ensure list items inside Markdown have adequate line height */
.deal-description-markdown ul,
.deal-description-markdown ol {
  padding-left: 20px;
  margin: 10px 0;
}

.deal-description-markdown li {
  margin-bottom: 4px;
  line-height: 1.5;
}
/* Forces raw Markdown table pipes to align vertically inside the editor */
#description {
  font-family: "Consolas", "Courier New", Courier, monospace !important;
  font-size: 13.5px !important;
  line-height: 1.6 !important;
  background-color: #fafbfc !important; /* Slight off-white background to signal it's a code editor */
  color: #0f172a !important;
}
/* =========================================================
   COMMUNITY-DRIVEN AUTO EXPIRED DEAL STYLES
   ========================================================= */
.deal-expired {
  opacity: 0.6 !important; /* Visually fade the card to signal inactivity */
  filter: grayscale(20%);
  background-color: #f8fafc !important; /* Slightly grayed background */
  border-color: #cbd5e1 !important;
  transition: opacity 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Allow hovering to restore some visibility so the content remains readable */
.deal-expired:hover {
  opacity: 0.85 !important;
  filter: grayscale(0%);
}

/* Strike-through on the title for instant recognition */
.deal-expired .deal-title {
  text-decoration: line-through !important;
  color: #64748b !important;
}

/* Change standard bright red badge into a muted neutral gray */
.deal-expired .deal-status-tag {
  background-color: #64748b !important;
  text-decoration: none !important; /* Avoid line-through on the status tag itself */
}

/* Mute link buttons inside expired cards */
.deal-expired .deal-link a {
  background: linear-gradient(135deg, #64748b 0%, #475569 100%) !important;
  box-shadow: none !important;
}
/* =========================================================
   COLLABORATIVE WIKI & FAQ GUIDE STYLES
   ========================================================= */
.wiki-section {
  margin-top: 15px;
  padding: 15px 20px;
  background-color: #f8fafc; /* Sleek slate background block */
  border: 1px solid #e2e8f0;
  border-left: 4px solid #3b82f6 !important; /* Left blue guide border representing collaborative wiki */
  border-radius: 6px;
  transition: all 0.3s ease;
}

/* Hover style to denote interactive elements inside */
.toggle-wiki-btn:hover {
  color: #3b82f6 !important;
}

.cancel-wiki-edit-btn:hover {
  background-color: #475569 !important;
}
/* =========================================================
   DEDICATED COUNTDOWN EXPIRY BADGE
   ========================================================= */
.expiry-badge {
  font-size: 0.85em !important; /* Slightly larger for immediate visibility */
  padding: 3px 10px !important; /* Premium, balanced padding */
  border-radius: 20px !important; /* Symmetrical pill shape */
  font-weight: bold !important;
  margin-left: 8px;
  vertical-align: middle;
  display: inline-block;
  border: 1px solid;
  cursor: default;
  text-shadow: none !important; /* Ensure clear text contrast */
}
/* =========================================================
   MOBILE RESPONSIVE SWIPEABLE TABLES (Cures Table Overflow)
   ========================================================= */
@media (max-width: 768px) {
  .deal-description-markdown table,
  .comment-content table {
    display: block !important; /* Allows the table to act as a scrollable block container */
    width: 100% !important; /* Forces it to stay inside the deal card */
    overflow-x: auto !important; /* Enables horizontal swiping */
    -webkit-overflow-scrolling: touch; /* Enables momentum scrolling on iOS Safari */
    white-space: nowrap; /* Keeps columns on a single line for clean horizontal swiping */
  }
}
/* =========================================================
   RESPONSIVE FORUM INDEX (Cures Mobile Table Spill)
   ========================================================= */
@media (max-width: 768px) {
  /* 1. Hide 'Started By' (2nd column) and 'Last Comment' (3rd column) on mobile */
  .topic-list th:nth-child(2),
  .topic-list td:nth-child(2),
  .topic-list th:nth-child(3),
  .topic-list td:nth-child(3) {
    display: none !important;
  }

  /* 2. Expand 'Topic Title' (1st column) to take up most of the screen */
  .topic-list th:nth-child(1),
  .topic-list td:nth-child(1) {
    width: 80% !important;
    padding: 12px 10px !important;
  }

  /* 3. Center and position the 'Replies' (4th column) badge nicely */
  .topic-list th:nth-child(4),
  .topic-list td:nth-child(4) {
    width: 20% !important;
    text-align: center !important;
    padding: 12px 10px !important;
  }

  /* 4. Mute row padding slightly on mobile for compactness */
  .topic-list td {
    padding: 12px 10px !important;
  }
}
/* =========================================================
   RESPONSIVE PROFILE LAYOUT (Prevents Sidebar Hiding on Mobile)
   ========================================================= */
.profile-sidebar {
  flex: 1;
  max-width: 320px;
  min-width: 260px;
  box-sizing: border-box;
}

@media (max-width: 768px) {
  .profile-sidebar {
    max-width: 100% !important;
    width: 100% !important;
    margin-bottom: 20px;
  }
}
/* =========================================================
   RESPONSIVE FEED PREFERENCES (Cures Profile Column Blowout)
   ========================================================= */
.pref-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: 100%;
  box-sizing: border-box;
}

.pref-label {
  font-weight: 600;
  width: 120px;
  color: #334155;
  font-size: 0.95em;
  text-align: left;
}

.pref-value {
  font-weight: bold;
  width: 45px;
  text-align: right;
  color: #1e293b;
  font-family: monospace;
}

@media (max-width: 480px) {
  .pref-row {
    flex-wrap: wrap; /* Allows wrapping on narrow mobile screens */
    gap: 6px !important;
  }

  .pref-label {
    width: auto !important; /* Lets label shrink dynamically */
  }

  .pref-value {
    width: auto !important;
  }

  /* Forces the slider bar to wrap to its own line underneath the text */
  .pref-row input[type="range"] {
    width: 100% !important;
    order: 3;
    margin-top: 5px;
  }
}
/* =========================================================
   DESKTOP & MOBILE HEADER POSITIONING RESET
   ========================================================= */
/* =========================================================
   VERTICAL LOGO & TAGLINE ALIGNMENT (Positions Tagline Under Logo)
   ========================================================= */
/* Force the desktop brand container into a vertical column */
.navbar-left .navbar-brand {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  justify-content: center !important;
  height: 100% !important;
}

/* Reset image margins so text sits cleanly below it */
.navbar-left .site-logo {
  margin-top: 0px !important;
  margin-bottom: 2px !important;
}

/* Tagline positioned directly under the logo text */
.logo-tagline {
  color: #0f2b5c !important; /* Deep navy blue matching your logo */
  font-size: 13px !important;
  font-weight: 700 !important;
  font-style: italic !important;
  letter-spacing: 0.5px !important;
  white-space: nowrap !important;
  margin-top: 0 !important;
  margin-left: 12px !important; /* Slight indent to align under the text portion */
  text-shadow: 0 1px 1px rgba(255, 255, 255, 0.8) !important;
}

/* Reset filter bar to sit flush against the 110px header */
.navbar-filters-bar {
  top: 110px !important;
}

/* Reset desktop body padding (110px header + 40px filter bar + 10px buffer) */
@media (min-width: 769px) {
  body {
    padding-top: 160px !important;
  }
}

/* Reset mobile body padding */
@media (max-width: 768px) {
  body {
    padding-top: 130px !important;
  }
}
/* Mobile Logo Tagline Spacing Fix */
.logo-sub-tagline-mobile {
  display: block !important; /* Converts span to block element so vertical margins apply */
  color: #ffffff !important;
  font-size: 11px !important;
  font-style: italic !important;
  font-weight: bold !important;
  margin-top: 8px !important; /* Creates clear vertical spacing under logo */
  margin-bottom: 4px !important;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.4) !important;
  text-align: center !important;
  letter-spacing: 0.5px;
}

/* Ensure mobile logo image adds bottom margin */
.mobile-logo {
  margin-bottom: 4px !important;
}
