* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  overflow-x: hidden;
  width: 100%;

}

body {
  font-family: "Arial", sans-serif;
  background-color: white;
  color: #333;
  line-height: 1.6;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}


/* Messages */
.messages {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10002;
  max-width: 440px;
  width: calc(100% - 40px);
}

.message {
  padding: 12px 16px;
  border-radius: 8px;
  margin-bottom: 8px;
  font-size: 14px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.message.success {
  background: #dcfce7;
  color: #166534;
  border: 1px solid #22c55e;
}

.message.error {
  background: #fef2f2;
  color: #dc2626;
  border: 1px solid #ef4444;
}

.message.info {
  background: #eff6ff;
  color: #1a365d;
  border: 1px solid #3b82f6;
}

.message.warning {
  background: #fff7ed;
  color: #78350f;
  border: 1px solid #f97316;
}

/* Header */
.header {
  position: relative;
  z-index: 997;
}

.header-top {
  background: #1f3751;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  overflow: hidden;
  max-height: 200px;
  opacity: 1;
  transition: max-height 0.3s ease, opacity 0.3s ease;
}

.header.hide-top .header-top {
  max-height: 0;
  opacity: 0;
}

.header-main {
  background: #fff;
  transition: all 0.3s ease;
  position: relative;
}

.header.sticky .header-main {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1001;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header-top-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 8px 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 30px;
  position: relative;
}

.buy-refill-gas-ad {
  font-size: 15px;
  font-weight: bold;
}

.buy-refill-gas-ad a {
  color: #f97316;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

.buy-refill-gas-ad a:hover {
  color: #fbbf24;
}

.subscribe-ad {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  color: white;
  font-size: 15px;
  animation: pulse 2s infinite;
}

.subscribe-ad a {
  color: #fbbf24;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

.subscribe-ad a:hover {
  color: #22c55e;
}

.become-seller-ad {
  color: white;
  font-size: 15px;
  margin-left: auto;
}

.become-seller-ad a {
  color: #f97316;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

.become-seller-ad a:hover {
  color: #fbbf24;
}

@keyframes pulse {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.7;
  }
}

.main-header-content {
  margin: 0 auto;
  padding: 15px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  max-width: 1200px;
}

.logo {
  color: #0056b3;
  font-size: 30px;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  line-height: 1;
  vertical-align: middle;
  font-family: "Caveat", cursive;
  font-optical-sizing: auto;
  font-weight: 700;
  font-style: normal;
}

.logo-img {
  width: 35px;
  height: auto;
  margin-left: 4px;
}

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

.profile-section {
  position: relative;
}

.profile-btn {
  background: #1e3a8a;
  border: 2px solid #1e3a8a;
  color: white;
  padding: 14px 25px;
  border-radius: 25px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 500;
}

.profile-btn:hover {
  background: #fbbf24;
  border-color: #fbbf24;
  color: #1e3a8a;
}

.profile-btn i {
  font-size: 20px;
}

.profile-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  background: white;
  min-width: 280px;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  display: none;
  z-index: 1001;
  overflow: hidden;
  border: 1px solid #e5e7eb;
  margin-top: 10px;
}

.profile-dropdown.show {
  display: block;
  animation: slideDown 0.3s ease;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.profile-header {
  background: linear-gradient(135deg, #1e3a8a, #3b82f6);
  color: white;
  padding: 20px;
  text-align: center;
}

.profile-header h3 {
  margin-bottom: 5px;
  font-size: 18px;
}

.profile-header p {
  opacity: 0.9;
  font-size: 14px;
}

.profile-menu {
  padding: 0;
}

.profile-menu-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 15px 20px;
  color: #374151;
  text-decoration: none;
  border-bottom: 1px solid #f3f4f6;
  transition: all 0.3s ease;
}

.profile-menu-item:hover {
  background-color: #f8fafc;
  color: #1e3a8a;
}

.profile-menu-item i {
  font-size: 18px;
  width: 20px;
}

.header-center {
  flex: 1;
  max-width: 650px;
}

.search-container {
  position: relative;
  display: flex;
  gap: 10px;
  width: 100%;
}

.search-box {
  flex: 1;
  position: relative;
}

.search-input {
  width: 100%;
  padding: 15px 50px 15px 20px;
  border: none;
  border-radius: 25px;
  font-size: 16px;
  background: white;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.search-input:focus {
  outline: none;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.search-btn {
  position: absolute;
  right: 5px;
  top: 50%;
  transform: translateY(-50%);
  background: #1e3a8a;
  border: none;
  color: white;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.search-btn:hover {
  background: #1e40af;
}

.search-btn i {
  font-size: 20px;
  line-height: 1;
}

.categories-section {
  position: relative;
}

.side-side-buttons {
  display: flex;
  align-items: center;
  border: 2px solid #fbbf24;
  border-radius: 25px;
  overflow: hidden;
}

.side-btn {
  background: #fbbf24;
  color: #1e3a8a;
  padding: 8px 15px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  position: relative;
}

.side-btn:hover {
  background: #f59e0b;
}

.side-btn.call-btn {
  border-radius: 0;
  border-right: 2px solid #1e3a8a;
}

.side-btn.help-btn {
  border-radius: 0;
}

.side-btn i {
  font-size: 18px;
}

.categories-btn {
  background: #fbbf24;
  color: #1e3a8a;
  border: none;
  padding: 15px 20px;
  border-radius: 25px;
  cursor: pointer;
  font-weight: bold;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.categories-btn:hover {
  background: #f59e0b;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Icon Buttons */
.icon-btn {
  background: #1e3a8a;
  border: 2px solid #1e3a8a;
  color: white;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  position: relative;
}

.icon-btn:hover {
  background: #fbbf24;
  border-color: #fbbf24;
  color: #1e3a8a;
}

.icon-btn i {
  font-size: 20px;
  line-height: 1;
}

.icon-btn .badge {
  position: absolute;
  top: -6px;
  right: -6px;
  background: #fbbf24;
  color: #1f2937;
  font-size: 11px;
  font-weight: bold;
  min-width: 20px;
  height: 20px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 5px;
}

/* Text Buttons */
.text-btn {
  background: #1e3a8a;
  border: 2px solid #1e3a8a;
  color: white;
  padding: 10px 16px;
  border-radius: 25px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  text-decoration: none;
  font-size: 14px;
  white-space: nowrap;
}

.text-btn:hover {
  background: #fbbf24;
  border-color: #fbbf24;
  color: #1e3a8a;
}

.text-btn i {
  font-size: 18px;
  line-height: 1;
}

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

.sign-in-btn,
.sign-up-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 25px;
  font-weight: bold;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 16px;
}

.sign-in-btn {
  background: #1e3a8a;
  color: white;
  border: 2px solid #1e3a8a;
}

.sign-in-btn:hover {
  background: white;
  color: #1e3a8a;
}

.sign-up-btn {
  background: #22c55e;
  color: white;
  border: none;
}

.sign-up-btn:hover {
  background: #16a34a;
}

.sign-in-btn i,
.sign-up-btn i {
  font-size: 20px;
  line-height: 1;
}

/* Header Bottom Navigation */
.header-bottom {
  background: #1e3a8a;
  width: 100%;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
  position: relative;
}

.header.sticky .header-bottom {
  position: fixed;
  top: 80px;
  left: 0;
  right: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header-bottom-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 0 20px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.header-bottom-content::-webkit-scrollbar {
  display: none;
}

.header-bottom-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  color: white;
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  white-space: nowrap;
  border-bottom: 3px solid transparent;
  transition: all 0.3s ease;
  position: relative;
  flex: 1;
  min-width: 0;
}


.header-bottom-nav-item:hover {
  background: rgba(255, 255, 255, 0.1);
  border-bottom-color: #fbbf24;
}

.header-bottom-nav-item.active {
  background: rgba(255, 255, 255, 0.15);
  border-bottom-color: #fbbf24;
  color: #fbbf24;
}

.content-wrapper {
  flex: 1;
  width: 100%;
  margin: 0 auto;
  transition: padding-top 0.3s ease;
}


body.header-sticky .content-wrapper {
  padding-top: 140px;
}

.ss-header {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 10px;
  gap: 30px;
  text-align: center;
}

.ss-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.ss-seller,
.ss-gas,
.ss-subscribe {
  flex: 1;
  min-width: 0;
}

.ss-seller a,
.ss-gas a,
.ss-subscribe a {
  color: #ffa500;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
  font-size: 13px;
  font-weight: 1000;
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ss-seller a:hover,
.ss-gas a:hover,
.ss-subscribe a:hover {
  color: #ffa500;
}

.floating-buttons {
  position: fixed;
  bottom: 30px;
  right: 15px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 995;
  transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
}

.floating-buttons.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateX(100px);
}

.floating-button {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #007bff;
  color: white;
  text-decoration: none;
  border-radius: 40px;
  padding: 8px 12px;
  font-size: 13px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  transition: all 0.2s ease;
  white-space: nowrap;
}

.floating-button:hover {
  background-color: #0056b3;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.25);
}

.floating-button i {
  font-size: 18px;
  margin-right: 6px;
  flex-shrink: 0;
}

.floating-button span {
  display: inline;
}

.floating-button.gas {
  background-color: #28a745;
}

.floating-button.gas:hover {
  background-color: #1e7e34;
}

.notification-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.notification-modal-overlay.show {
  opacity: 1;
  visibility: visible;
}

/* Modal Container */
.notification-modal {
  background: white;
  border-radius: 20px;
  max-width: 500px;
  width: 100%;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  transform: scale(0.9) translateY(20px);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
  position: relative;
}

.notification-modal-overlay.show .notification-modal {
  transform: scale(1) translateY(0);
}

/* Modal Header */
.notification-modal-header {
  background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
  padding: 30px;
  text-align: center;
  position: relative;
}

.notification-modal-icon {
  width: 80px;
  height: 80px;
  background: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.notification-modal-icon i {
  font-size: 40px;
  color: #1e3a8a;
  animation: bellRing 2s ease-in-out infinite;
}

@keyframes bellRing {

  0%,
  100% {
    transform: rotate(0deg);
  }

  10%,
  30% {
    transform: rotate(-15deg);
  }

  20%,
  40% {
    transform: rotate(15deg);
  }

  50% {
    transform: rotate(0deg);
  }
}

.notification-modal-header h2 {
  color: white;
  font-size: 24px;
  font-weight: 700;
  margin: 0 0 10px 0;
}

.notification-modal-header p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 15px;
  margin: 0;
  line-height: 1.5;
}

/* Modal Body */
.notification-modal-body {
  padding: 30px;
}

.notification-features {
  list-style: none;
  padding: 0;
  margin: 0 0 30px 0;
}

.notification-features li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 0;
  color: #374151;
  font-size: 15px;
  line-height: 1.6;
}

.notification-features li i {
  font-size: 20px;
  color: #22c55e;
  flex-shrink: 0;
  margin-top: 2px;
}

/* Modal Actions */
.notification-modal-actions {
  display: flex;
  gap: 12px;
}

.modal-enable-btn {
  flex: 1;
  background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
  color: white;
  border: none;
  padding: 16px 24px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(34, 197, 94, 0.3);
}

.modal-enable-btn:hover {
  box-shadow: 0 6px 20px rgba(34, 197, 94, 0.4);
}

.modal-enable-btn:active {
  transform: translateY(0);
}

.modal-later-btn {
  flex: 1;
  background: #f3f4f6;
  color: #6b7280;
  border: none;
  padding: 16px 24px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.modal-later-btn:hover {
  background: #e5e7eb;
  color: #374151;
}

/* Close Button */
.modal-close-btn {
  position: absolute;
  top: 15px;
  right: 15px;
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: white;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-close-btn:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: rotate(90deg);
}

.modal-close-btn i {
  font-size: 24px;
  line-height: 1;
}

body.modal-open {
  overflow: hidden;
}


/* Responsive Styles */
@media (min-width: 810px) {
  .ss-header {
    display: none;
  }
}

@media(max-width: 810px) {
  .header-top-content {
    display: none;
  }
}

@media (max-width: 768px) {
  .header-main {
    border-bottom: 1px solid #e5e7eb;
  }
}

@media (max-width: 768px) {
  .header-top {
    height: fit-content;
    padding: 10px 0;
  }

  .messages {
    top: 10px;
    max-width: calc(100% - 20px);
  }

  .main-header-content {
    padding: 10px 0px 10px 8px;
    gap: 15px;
  }

  .logo {
    font-size: 24px;
  }

  .logo-img {
    width: 30px;
  }

  .header-center {
    max-width: none;
  }

  .categories-section,
  .auth-buttons,
  .icon-btn,
  .text-btn,
  .profile-section {
    display: none;
  }

  .header-right {
    gap: 10px;
  }

  .header-bottom {
    display: none;
  }

  body.header-sticky .content-wrapper {
    padding-top: 60px;
  }

}

/* Hide logo on search */
@media (max-width: 600px) {
  .main-header-content {
    position: relative;
    transition: all 0.3s ease;
  }

  .header-left {
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
  }

  .header-center {
    transition: all 0.3s ease;
  }

  .header-right {
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
  }

  .main-header-content.search-active .header-left {
    opacity: 0;
    visibility: hidden;
    transform: translateX(-20px);
    pointer-events: none;
    position: absolute;
    left: 0;
  }

  .main-header-content.search-active .header-right {
    opacity: 0;
    visibility: hidden;
    transform: translateX(20px);
    pointer-events: none;
    position: absolute;
    right: 0;
  }

  .main-header-content.search-active .header-center {
    flex: 1;
    max-width: 100%;
    width: 100%;
  }

  .main-header-content.search-active .search-container {
    align-items: center;
  }

  .main-header-content.search-active .search-input {
    font-size: 16px;
  }


  .main-header-content.search-active .categories-section {
    display: none;
  }

  .floating-buttons {
    bottom: 80px;
    right: 15px;
    gap: 8px;
  }

  .floating-button {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    padding: 0;
    justify-content: center;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.25);
  }

  .floating-button i {
    margin-right: 0;
    font-size: 22px;
  }

  .floating-button span {
    display: none;
  }

  .floating-button:active {
    transform: scale(0.95);
  }
}

@media (max-width: 480px) {
  .main-header-content {
    padding: 10px 0px 10px 8px;
  }

  .ss-row {
    gap: 4px;
  }

  .ss-seller a,
  .ss-gas a,
  .ss-subscribe a {
    font-size: 11px;
    font-weight: 1500;
  }

  .notification-modal {
    margin: 0 10px;
  }

  .notification-modal-header {
    padding: 25px 20px;
  }

  .notification-modal-icon {
    width: 70px;
    height: 70px;
  }

  .notification-modal-icon i {
    font-size: 35px;
  }

  .notification-modal-header h2 {
    font-size: 20px;
  }

  .notification-modal-header p {
    font-size: 14px;
  }

  .notification-modal-body {
    padding: 20px;
  }

  .notification-features li {
    font-size: 14px;
  }

  .notification-modal-actions {
    flex-direction: column;
  }

  .modal-enable-btn,
  .modal-later-btn {
    padding: 14px 20px;
    font-size: 15px;
  }

  .floating-buttons {
    bottom: 70px;
    right: 10px;
    gap: 8px;
  }

  .floating-button {
    width: 48px;
    height: 48px;
  }

  .floating-button i {
    font-size: 20px;
  }
}

.search-suggestions {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: white;
  border-radius: 16px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
  display: none;
  z-index: 1000;
  overflow: hidden;
  border: 1px solid #e5e7eb;
  max-height: 400px;
  overflow-y: auto;
  padding-right: 2px;
}

.search-suggestions::-webkit-scrollbar {
  width: 6px;
}

.search-suggestions::-webkit-scrollbar-track {
  background: transparent;
  margin: 8px 0;
}

.search-suggestions::-webkit-scrollbar-thumb {
  background: #d1d5db;
  border-radius: 10px;
}

.suggestion-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  cursor: pointer;
  transition: all 0.2s ease;
  border-bottom: 1px solid #f3f4f6;
}

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

.suggestion-item:hover {
  background: linear-gradient(90deg, #f8fafc 0%, #f1f5f9 100%);
}

.suggestion-item i {
  font-size: 18px;
  color: #6b7280;
  flex-shrink: 0;
}

.suggestion-item span {
  font-size: 15px;
  color: #374151;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
  min-width: 0;
}

.suggestion-item:hover span {
  color: #1e3a8a;
}