/* ═══════════════════════════════════════════
   TRADINGO - Shared Components CSS
   Premium Glassmorphism Navbar + Footer
   ═══════════════════════════════════════════ */

:root {
  --primary: #10B981;
  --secondary: #059669;
  --accent: #EDC33B;
  --dark-maroon: #600000;
  --nav-bg: #1e293b;
  --trd-font: 'Poppins', 'Inter', sans-serif;
  --trd-nav-height: 72px;
  --trd-topbar-height: 38px;
}

/* ═══════════════════════════════════════════
   PREMIUM TOPBAR
   ═══════════════════════════════════════════ */
.trd-topbar {
  background: linear-gradient(90deg, #880c08 0%, #6e0a06 50%, #880c08 100%);
  color: rgba(255,255,255,0.85);
  font-family: var(--trd-font);
  font-size: 0.8rem;
  font-weight: 550;
  height: var(--trd-topbar-height);
  display: flex;
  align-items: center;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  position: relative;
  z-index: 1061;
}
.trd-topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}
.trd-topbar-left,
.trd-topbar-right {
  display: flex;
  align-items: center;
  gap: 12px;
}
.trd-topbar-center {
  margin: 0 auto;
  padding: 0 10px;
}
.trd-topbar-item {
  color: rgba(255,255,255,0.65);
  text-decoration: none;
  transition: color 0.25s;
  display: flex;
  align-items: center;
  gap: 6px;
}
.trd-topbar-item:hover { color: var(--accent); }
.trd-topbar-item i { font-size: 0.7rem; }
.trd-topbar-divider {
  width: 1px;
  height: 14px;
  background: rgba(255,255,255,0.15);
}
.trd-topbar-link {
  color: rgba(255,255,255,0.8) !important;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.25s ease;
  padding: 2px 8px;
  border-radius: 4px;
}
.trd-topbar-link:hover {
  color: #fff !important;
  background: rgba(255,255,255,0.08);
}

/* ── Live Ticker ── */
.trd-ticker {
  display: flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(90deg, rgba(201,168,76,0.15), rgba(201,168,76,0.08));
  padding: 3px 16px;
  border-radius: 50px;
  border: 1px solid rgba(201,168,76,0.2);
}
.trd-ticker-dot {
  width: 7px;
  height: 7px;
  background: #ff3b30;
  border-radius: 50%;
  animation: trdTickerPulse 2s ease-in-out infinite;
  box-shadow: 0 0 6px rgba(255, 59, 48, 0.6);
}
@keyframes trdTickerPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}
.trd-ticker-text {
  color: #ffffff;
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.3px;
}

/* ═══════════════════════════════════════════
   PREMIUM GLASSMORPHISM NAVBAR
   ═══════════════════════════════════════════ */
.trd-navbar {
  font-family: var(--trd-font);
  height: var(--trd-nav-height);
  background: rgba(15, 23, 42, 0.85) !important; /* Slate-900 with transparency */
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  z-index: 1050;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  position: sticky;
  top: 0;
}

.trd-navbar.navbar-scrolled {
  height: 64px;
  background: rgba(15, 23, 42, 0.95) !important;
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.5);
}

.trd-navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 12px;
}

/* ── Brand / Logo ── */
.trd-brand {
  display: flex;
  align-items: center;
  gap: 20px; /* Increased space between icons */
  text-decoration: none;
  flex-shrink: 0;
}

.trd-brand-logo {
  height: 48px;
  width: auto;
  object-fit: contain;
  transition: all 0.3s ease;
  filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.1));
}

.navbar-scrolled .trd-brand-logo {
  height: 40px;
}

.trd-brand-sub {
  height: 38px; /* Increased size of go.png logo */
  width: auto;
  object-fit: contain;
  opacity: 1;
  transition: all 0.3s ease;
  border-bottom: 2px solid transparent;
}

.trd-brand.active .trd-brand-sub {
  border-bottom-color: var(--accent);
  padding-bottom: 2px;
}

/* ── Nav Menu (Desktop) ── */
.trd-nav-menu {
  display: flex;
  align-items: center;
  flex: 1;
  justify-content: center; /* Centered menu items for premium look */
  gap: 10px;
}

.trd-nav-list {
  display: flex;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 2px;
}

.trd-nav-item {
  position: relative;
}

/* ── Nav Links ── */
.trd-nav-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 10px 11px;
  color: rgba(255, 255, 255, 0.8) !important;
  text-decoration: none;
  font-family: var(--trd-font);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  transition: all 0.3s ease;
  white-space: nowrap;
  position: relative;
}

.trd-nav-link:hover {
  color: #fff !important;
}

/* Underline Animation */
.trd-nav-link::after {
  content: '';
  position: absolute;
  bottom: 8px;
  left: 14px;
  right: 14px;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s cubic-bezier(0.19, 1, 0.22, 1);
  border-radius: 2px;
}

.trd-nav-link:hover::after,
.trd-nav-link.active::after {
  transform: scaleX(1);
  transform-origin: left;
}

.trd-nav-link.active {
  color: #fff !important;
  font-weight: 600;
}

/* ── TradGo Special Highlight 👑 ── */
.trd-nav-item--tradgo {
  margin-left: 5px;
}

.trd-nav-link--tradgo {
  background: linear-gradient(135deg, #FFD700 0%, #C9A84C 50%, #B8860B 100%) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  font-weight: 700 !important;
  text-shadow: 0 0 15px rgba(201, 168, 76, 0.2);
  border: 1px solid rgba(201, 168, 76, 0.3) !important;
  border-radius: 50px !important;
  padding: 8px 18px !important;
  margin: 4px 0;
  background-clip: text;
}

.trd-nav-link--tradgo::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50px;
  padding: 1px;
  background: linear-gradient(135deg, rgba(255,215,0,0.5), rgba(201,168,76,0.2));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: destination-out;
  mask-composite: exclude;
  pointer-events: none;
}

.trd-nav-link--tradgo:hover {
  transform: translateY(-1px);
  text-shadow: 0 0 20px rgba(201, 168, 76, 0.4);
  background: linear-gradient(135deg, #FFF, #FFD700) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
}

.trd-nav-link--tradgo::after {
  display: none; /* No underline for TradGo button */
}

.trd-crown {
  font-size: 0.85rem;
  margin-left: 2px;
  filter: drop-shadow(0 0 5px rgba(201, 168, 76, 0.6));
}

/* ── CTA Buttons ── */
.trd-nav-cta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.trd-btn {
  padding: 10px 22px;
  font-size: 0.88rem;
  font-weight: 600;
  border-radius: 10px;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
}

.trd-btn--outline {
  background: rgba(255, 255, 255, 0.05);
  color: #fff !important;
  border: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
}

.trd-btn--outline:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}

.trd-btn--solid {
  background: var(--accent);
  color: #000 !important;
  box-shadow: 0 4px 15px rgba(237, 195, 59, 0.2);
}

.trd-btn--solid:hover {
  background: #f1cf5b;
  box-shadow: 0 6px 20px rgba(237, 195, 59, 0.3);
  transform: translateY(-2px);
}

/* ── Custom Hamburger ── */
.trd-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  cursor: pointer;
  padding: 0;
  z-index: 1100;
  transition: all 0.3s ease;
}

.trd-hamburger:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
}

.trd-hamburger-line {
  display: block;
  width: 22px;
  height: 2px;
  background: #fff;
  border-radius: 10px;
  transition: all 0.4s cubic-bezier(0.19, 1, 0.22, 1);
}

.trd-hamburger.is-active .trd-hamburger-line:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.trd-hamburger.is-active .trd-hamburger-line:nth-child(2) {
  opacity: 0;
  transform: translateX(-10px);
}

.trd-hamburger.is-active .trd-hamburger-line:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* Body scroll lock when nav is open */
body.nav-open {
  overflow: hidden;
}

/* ── Go Login Dropdown 👑 ── */
.trd-login-wrapper {
  position: relative;
  display: inline-block;
}

.trd-btn-go-login {
  display: flex !important;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, #FFD700 0%, #EDC33B 50%, #C9A84C 100%) !important;
  color: #000 !important;
  padding: 10px 22px !important;
  border-radius: 12px !important;
  box-shadow: 0 8px 20px rgba(237, 195, 59, 0.25) !important;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  font-weight: 800 !important;
  border: 1px solid rgba(255,255,255,0.2) !important;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 0.82rem !important;
}

/* Shimmer Effect */
.trd-btn-go-login::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
  transition: all 0.6s;
  animation: trdShimmer 3s infinite;
}

@keyframes trdShimmer {
  0% { left: -100%; }
  20%, 100% { left: 150%; }
}

.trd-btn-go-login:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 12px 30px rgba(237, 195, 59, 0.4) !important;
}

.trd-login-dropdown {
  position: absolute;
  top: 85%; /* Overlaps button to ensure the mouse never leaves the hit-area */
  right: 0;
  width: 210px;
  background: rgba(15, 23, 42, 0.99);
  backdrop-filter: blur(50px) saturate(210%);
  -webkit-backdrop-filter: blur(50px) saturate(210%);
  border: 1px solid rgba(237, 195, 59, 0.4);
  border-radius: 16px;
  padding: 8px;
  padding-top: 12px; /* Extra padding to compensate for overlap */
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.9);
  opacity: 0;
  visibility: hidden;
  transform: translateY(15px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 9999;
  pointer-events: auto !important;
}

/* Arrow indicator 📐 */
.trd-login-dropdown::before {
  content: '';
  position: absolute;
  top: -8px;
  right: 25px;
  width: 0;
  height: 0;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-bottom: 8px solid rgba(237, 195, 59, 0.4);
  z-index: 10;
}

/* Invisible Bridge 🌉 - Fail-safe */
.trd-login-dropdown::after {
  content: '';
  position: absolute;
  top: -30px;
  left: 0;
  right: 0;
  height: 30px;
  background: transparent;
}

.trd-login-wrapper:hover .trd-login-dropdown,
.trd-login-dropdown.is-open {
  opacity: 1 !important;
  visibility: visible !important;
  transform: translateY(0) !important;
}

.trd-login-dropdown a {
  display: flex !important;
  align-items: center;
  gap: 12px;
  padding: 10px 14px !important;
  color: #fff !important;
  text-decoration: none !important;
  font-size: 0.88rem !important;
  font-weight: 600 !important;
  border-radius: 10px;
  transition: all 0.2s ease;
}

.trd-login-dropdown a:hover {
  background: rgba(237, 195, 59, 0.1) !important;
  color: var(--accent) !important;
  transform: translateX(5px);
}

.trd-login-dropdown a i {
  font-size: 1.25rem;
  width: 28px;
  text-align: center;
  background: linear-gradient(135deg, #FFD700, #EDC33B);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}

.trd-login-dropdown a .sub-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 400;
  color: rgba(255,255,255,0.5);
  margin-top: 2px;
}

/* ═══ MOBILE RESPONSIVE ═══ */
@media (max-width: 1199px) {
  .trd-nav-link {
    padding: 10px 10px;
    font-size: 0.85rem;
  }
}

@media (max-width: 991px) {
  .trd-hamburger {
    display: flex;
  }

  .trd-nav-menu {
    position: fixed;
    top: 0;
    transform: translateX(100%); right: 0;
    width: 300px;
    height: 100vh;
    background: rgba(15, 23, 42, 0.98);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    flex-direction: column;
    justify-content: flex-start;
    padding: 100px 30px 40px;
    transition: all 0.5s cubic-bezier(0.19, 1, 0.22, 1);
    box-shadow: -20px 0 60px rgba(0, 0, 0, 0.5);
    z-index: 1090;
    align-items: flex-start;
  }

  .trd-nav-menu.is-open { transform: translateX(0); }

  .trd-nav-list {
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    gap: 15px;
  }

  .trd-nav-item {
    width: 100%;
  }

  .trd-nav-link {
    font-size: 1.1rem;
    padding: 12px 0;
    width: 100%;
  }

  .trd-nav-link::after {
    left: 0;
    right: auto;
    width: 30px;
    bottom: 5px;
  }

  .trd-nav-item--tradgo {
    margin: 15px 0;
  }

  .trd-nav-cta {
    margin-top: 30px;
    flex-direction: column;
    width: 100%;
    gap: 15px;
  }

  .trd-btn {
    width: 100%;
  }
}


/* ═══ OLD COMPAT: keep .btn-tradingo / .btn-outline-tradingo for pages that use them ═══ */
.btn-tradingo {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff !important; border: none; font-weight: 600;
  border-radius: 8px; transition: all 0.3s;
}
.btn-tradingo:hover {
  background: linear-gradient(135deg, var(--dark-green), var(--primary));
  transform: translateY(-1px); box-shadow: 0 4px 12px rgba(27,94,32,0.3);
}
.btn-outline-tradingo {
  color: var(--primary) !important; border: 1.5px solid var(--primary);
  font-weight: 600; border-radius: 8px; transition: all 0.3s;
  background: transparent;
}
.btn-outline-tradingo:hover {
  background: var(--primary); color: #fff !important;
  transform: translateY(-1px);
}

/* ═══ MEGA MENU ═══ */
.nav-item.mega-dropdown { position: static; }
#tradingo-nav-wrapper {
  position: relative;
  z-index: 1050;
}
.mega-menu-container {
  position: absolute;
  top: 100%;
  left: 0; right: 0;
  background: rgba(15, 23, 42, 0.95) !important;
  backdrop-filter: blur(25px) saturate(200%) !important;
  -webkit-backdrop-filter: blur(25px) saturate(200%) !important;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
  border-top: 3px solid var(--accent);
  border-bottom: 1px solid rgba(255,255,255,0.1);
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all 0.25s ease;
  max-height: 520px;
}
.mega-dropdown:hover .mega-menu-container,
.mega-menu-container.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.mega-menu-inner {
  display: flex;
  max-width: 1200px;
  margin: 0 auto;
  min-height: 420px;
}

/* Left sidebar */
.mega-cat-sidebar {
  width: 260px;
  min-width: 260px;
  border-right: 1px solid rgba(255,255,255,0.1);
  display: flex;
  flex-direction: column;
}
.mega-cat-header {
  background: linear-gradient(135deg, rgba(201,168,76,0.15), rgba(201,168,76,0.05));
  color: var(--accent);
  padding: 12px 18px;
  font-weight: 700;
  font-size: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(201,168,76,0.2);
}
.mega-cat-header i { font-size: 0.85rem; }
.mega-cat-list {
  list-style: none;
  padding: 0; margin: 0;
  overflow-y: auto;
  flex: 1;
  max-height: 420px;
  scrollbar-width: thin;
  scrollbar-color: #ddd #f5f5f5;
}
.mega-cat-list::-webkit-scrollbar { width: 5px; }
.mega-cat-list::-webkit-scrollbar-track { background: #f5f5f5; }
.mega-cat-list::-webkit-scrollbar-thumb { background: #ccc; border-radius: 3px; }
.mega-cat-item {
  padding: 11px 18px;
  font-size: 0.88rem;
  color: #cbd5e1;
  cursor: pointer;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.15s ease;
  text-decoration: none;
}
.mega-cat-item:hover,
.mega-cat-item.active {
  color: var(--accent);
  background: rgba(255,255,255,0.05);
  padding-left: 22px;
}
.mega-cat-item i.fa-chevron-right { font-size: 0.65rem; color: #64748b; transition: color 0.15s; }
.mega-cat-item:hover i.fa-chevron-right,
.mega-cat-item.active i.fa-chevron-right { color: var(--accent); }
.mega-cat-viewall {
  display: block;
  background: linear-gradient(135deg, rgba(201,168,76,0.15), rgba(201,168,76,0.05));
  color: var(--accent) !important;
  text-align: center;
  padding: 12px;
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  transition: background 0.2s;
  border-top: 1px solid rgba(201,168,76,0.2);
}
.mega-cat-viewall:hover { background: rgba(201,168,76,0.25); color: #fff !important; }

/* Middle content area */
.mega-content-area {
  flex: 1;
  padding: 20px 28px;
  display: flex;
  gap: 28px;
  overflow-y: auto;
  max-height: 470px;
  background: transparent;
}
.mega-content-area::-webkit-scrollbar { width: 4px; }
.mega-content-area::-webkit-scrollbar-thumb { background: #ddd; border-radius: 3px; }
.mega-subcol {
  flex: 1;
  min-width: 0;
}
.mega-subcat-title {
  font-weight: 700;
  font-size: 0.92rem;
  color: #ffffff;
  margin-bottom: 10px;
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.mega-product-list {
  list-style: none;
  padding: 0; margin: 0 0 18px 0;
}
.mega-product-list li {
  padding: 4px 0;
}
.mega-product-list li a {
  color: #94a3b8;
  text-decoration: none;
  font-size: 0.84rem;
  transition: color 0.15s;
}
.mega-product-list li a:hover { color: var(--primary); }
.mega-readmore {
  color: var(--primary) !important;
  font-size: 0.82rem;
  text-decoration: none;
  font-weight: 500;
}
.mega-readmore:hover { text-decoration: underline; }

/* Right banner */
.mega-banner-area {
  width: 240px;
  min-width: 240px;
  padding: 20px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  background: rgba(0,0,0,0.2);
  border-left: 1px solid rgba(255,255,255,0.08);
}
.mega-banner-title {
  font-weight: 700;
  font-size: 0.95rem;
  color: #ffffff;
  text-align: center;
}
.mega-banner-img {
  width: 100%;
  height: 200px;
  border-radius: 12px;
  object-fit: cover;
  background: linear-gradient(135deg, rgba(16,185,129,0.2), rgba(5,150,105,0.1));
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(16,185,129,0.3);
}
.mega-banner-img i {
  font-size: 4rem;
  opacity: 0.3;
  color: var(--primary);
}
.mega-banner-cta {
  background: var(--accent);
  color: #000 !important;
  padding: 8px 20px;
  border-radius: 6px;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 700;
  transition: all 0.2s;
  box-shadow: 0 4px 15px rgba(201,168,76,0.2);
}
.mega-banner-cta:hover { background: #f1cf5b; color: #000 !important; transform: translateY(-2px); }

/* Best sale header */
.mega-best-sale {
  background: linear-gradient(135deg, rgba(201,168,76,0.2), rgba(201,168,76,0.05));
  color: var(--accent);
  padding: 8px 16px;
  font-weight: 700;
  font-size: 0.88rem;
  border-radius: 0;
  margin-bottom: 16px;
  width: 100%;
  grid-column: 1 / -1;
  border: 1px solid rgba(201,168,76,0.2);
}

/* Mobile mega menu */
@media (max-width: 991px) {
  .mega-menu-container {
    position: relative;
    top: auto;
    box-shadow: none;
    border-top: 2px solid var(--accent);
    max-height: none;
    transform: none;
    opacity: 1;
    visibility: visible;
    display: none;
  }
  .mega-menu-container.show { display: block; }
  .mega-menu-inner {
    flex-direction: column;
    min-height: auto;
  }
  .mega-cat-sidebar {
    width: 100%;
    min-width: 100%;
    border-right: none;
  }
  .mega-cat-list { max-height: 350px; }
  .mega-content-area {
    flex-direction: column;
    gap: 16px;
    padding: 16px;
    max-height: none;
  }
  .mega-banner-area { display: none; }
  /* Mobile accordion */
  .mega-mobile-subcats {
    display: none;
    padding: 8px 16px 12px 32px;
    background: rgba(15,23,42,0.9);
    border-bottom: 1px solid rgba(255,255,255,0.08);
  }
  .mega-mobile-subcats.open { display: block; }
  .mega-mobile-subcats a {
    display: block;
    padding: 5px 0;
    color: #94a3b8;
    text-decoration: none;
    font-size: 0.85rem;
  }
  .mega-mobile-subcats a:hover { color: var(--primary); }
}

/* ═══════════════════════════════════════════
   PREMIUM GLASSMORPHISM FOOTER
   ═══════════════════════════════════════════ */
.trd-footer-section {
  background: linear-gradient(180deg, #121c13 0%, #081109 100%);
  position: relative;
  overflow: hidden;
  border-top: 1px solid rgba(201,168,76,0.15);
  font-family: var(--trd-font);
}
.trd-footer-section::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -20%;
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(27,94,32,0.05) 0%, transparent 60%);
  pointer-events: none;
}
.trd-footer-section::after {
  content: '';
  position: absolute;
  bottom: -40%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(201,168,76,0.04) 0%, transparent 60%);
  pointer-events: none;
}

.trd-footer-card {
  padding: 30px 24px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.02);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  z-index: 2;
}

.trd-footer-card:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(201, 168, 76, 0.3);
  box-shadow: 
    0 15px 35px rgba(0, 0, 0, 0.3),
    inset 0 0 25px rgba(201, 168, 76, 0.15); /* Inner glow */
}

.trd-footer-brand img {
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.5));
}
.trd-footer-desc {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.65);
  line-height: 1.6;
}

.trd-footer-socials {
  display: flex;
  gap: 12px;
}
.trd-social-btn {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.8);
  font-size: 1rem;
  text-decoration: none;
  transition: all 0.3s ease;
}
.trd-social-btn:hover {
  color: #fff;
  transform: translateY(-5px) scale(1.1);
}
.trd-social-btn.facebook:hover { background: #3b5998; border-color: #3b5998; box-shadow: 0 8px 20px rgba(59, 89, 152, 0.4); }
.trd-social-btn.x:hover { background: #000; border-color: #444; box-shadow: 0 8px 20px rgba(255, 255, 255, 0.15); }
.trd-social-btn.instagram:hover { background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%); border-color: #e6683c; box-shadow: 0 8px 20px rgba(220, 39, 67, 0.4); }
.trd-social-btn.linkedin:hover { background: #0077b5; border-color: #0077b5; box-shadow: 0 8px 20px rgba(0, 119, 181, 0.4); }
.trd-social-btn.youtube:hover { background: #FF0000; border-color: #FF0000; box-shadow: 0 8px 20px rgba(255, 0, 0, 0.4); }

.trd-footer-title {
  color: #fff;
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 10px;
}
.trd-title-icon {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: rgba(201, 168, 76, 0.15);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  border: 1px solid rgba(201, 168, 76, 0.25);
}

.trd-footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}
.trd-footer-links li {
  margin-bottom: 0.75rem;
}
.trd-footer-links a {
  color: rgba(255, 255, 255, 0.65);
  text-decoration: none;
  font-size: 0.9rem;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}
.trd-footer-links a i {
  font-size: 0.65rem;
  color: rgba(201, 168, 76, 0.5);
  transition: transform 0.2s;
}
.trd-footer-links a:hover {
  color: #fff;
  text-shadow: 0 0 8px rgba(255,255,255,0.3);
}
.trd-footer-links a:hover i {
  transform: translateX(3px);
  color: var(--accent);
}

.trd-newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.trd-newsletter-input {
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 10px 14px;
  color: #fff;
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.trd-newsletter-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.15);
}
.trd-newsletter-input::placeholder {
  color: rgba(255, 255, 255, 0.3);
}
.trd-newsletter-btn {
  background: linear-gradient(135deg, #ce9338 0%, #b87b22 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  border-radius: 8px;
  padding: 10px 14px;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s ease;
}
.trd-newsletter-btn:hover {
  background: linear-gradient(135deg, var(--accent) 0%, #ce9338 100%);
  box-shadow: 0 4px 15px rgba(201, 168, 76, 0.3);
  transform: translateY(-1px);
}

.trd-footer-bottom {
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 1rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  position: relative;
  z-index: 2;
}
.trd-footer-bottom-links {
  display: flex;
  gap: 15px;
}
.trd-footer-bottom-links a {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.85rem;
  text-decoration: none;
  transition: color 0.2s;
}
.trd-footer-bottom-links a:hover {
  color: var(--accent);
}

/* ═══ ANIMATIONS ═══ */
.animate-on-scroll {
  opacity: 0; transform: translateY(25px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.animate-visible {
  opacity: 1 !important; transform: translateY(0) !important;
}

/* Staggered animation delays */
.row > .col-md-6:nth-child(2) .animate-on-scroll,
.row > .col-lg-3:nth-child(2) .animate-on-scroll,
.row > .col-6:nth-child(2) .animate-on-scroll { transition-delay: 0.1s; }
.row > .col-md-6:nth-child(3) .animate-on-scroll,
.row > .col-lg-3:nth-child(3) .animate-on-scroll,
.row > .col-6:nth-child(3) .animate-on-scroll { transition-delay: 0.2s; }
.row > .col-md-6:nth-child(4) .animate-on-scroll,
.row > .col-lg-3:nth-child(4) .animate-on-scroll,
.row > .col-6:nth-child(4) .animate-on-scroll { transition-delay: 0.3s; }

/* Card hover effects */
.card, .pillar-card, .buyer-card, .stat-card, .buyer-stat, .seller-card,
.dash-card, .nm-category-card, .nm-supplier-card, .plan-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Pulse glow for GOCASH */
@keyframes gocashGlow {
  0%, 100% { box-shadow: 0 0 15px rgba(201,168,76,0.2); }
  50% { box-shadow: 0 0 30px rgba(201,168,76,0.4); }
}
.gocash-glow { animation: gocashGlow 3s ease-in-out infinite; }

/* Leaderboard highlight */
@keyframes leaderHighlight {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
.leader-highlight {
  background: linear-gradient(90deg, rgba(201,168,76,0.1), rgba(201,168,76,0.25), rgba(201,168,76,0.1));
  background-size: 200% 100%;
  animation: leaderHighlight 3s ease infinite;
}

/* Button hover micro-animation */
.btn { transition: all 0.25s ease; }
.btn:active { transform: scale(0.97); }

/* ═══ RESPONSIVE ═══ */

/* ── Tablet & Mobile (< 992px) ── */
@media (max-width: 991px) {
  /* Show hamburger */
  .trd-hamburger {
    display: flex;
  }

  /* Topbar: hide left info, keep login links */
  .trd-topbar-left { display: none; }
  .trd-topbar-center { display: none; }
  .trd-topbar-right { margin-left: auto; }

  /* Slide-in mobile drawer */
  .trd-nav-menu {
    position: fixed;
    top: 0;
    transform: translateX(100%); right: 0;
    width: 300px;
    max-width: 85vw;
    height: 100vh;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(30px) saturate(180%);
    -webkit-backdrop-filter: blur(30px) saturate(180%);
    border-left: 1px solid rgba(0,0,0,0.06);
    box-shadow: -10px 0 40px rgba(0,0,0,0.12);
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    padding: 80px 24px 32px;
    gap: 0;
    z-index: 1090;
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
  }
  .trd-nav-menu.is-open { transform: translateX(0); }

  /* Stack links vertically */
  .trd-nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }
  .trd-nav-link {
    padding: 12px 16px;
    font-size: 0.95rem;
    border-radius: 10px;
    width: 100%;
  }
  .trd-nav-link::after {
    bottom: 6px;
  }

  /* CTA stack on mobile */
  .trd-nav-cta {
    margin-left: 0;
    margin-top: 20px;
    flex-direction: column;
    gap: 10px;
    padding-top: 16px;
    border-top: 1px solid rgba(0,0,0,0.06);
  }
  .trd-btn {
    width: 100%;
    justify-content: center;
    padding: 12px 20px;
    font-size: 0.9rem;
  }

  /* Mobile overlay backdrop */
  body.nav-open::before {
    content: '';
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.3);
    z-index: 1080;
    animation: trdFadeIn 0.3s ease;
  }
  @keyframes trdFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
  }

  /* Mega menu mobile adjustments */
  .trd-nav-item.mega-dropdown { position: relative; }

  /* General responsive */
  .hero-section { padding: 3rem 0 !important; }
  .hero-section h1, .hero h1 { font-size: 2rem !important; }
  .display-3 { font-size: 2.2rem !important; }
  .display-5 { font-size: 1.6rem !important; }
  .display-6 { font-size: 1.4rem !important; }
}

/* ── Mobile (< 768px) ── */
@media (max-width: 768px) {
  .trd-topbar { font-size: 0.72rem; height: 32px; }
  .trd-navbar { height: 60px; }
  .trd-brand-logo { height: 42px; }
  .trd-brand-sub { height: 20px; }

  .hero-section { padding: 2rem 0 !important; }
  .hero-section h1, .hero h1 { font-size: 1.7rem !important; }
  .hero-section .lead { font-size: 1rem !important; }
  .display-3 { font-size: 1.8rem !important; }
  .display-5 { font-size: 1.4rem !important; }
  .display-6 { font-size: 1.2rem !important; }

  .btn-lg { padding: 0.6rem 1.2rem !important; font-size: 0.9rem !important; }

  .stats-bar .stats-number { font-size: 1.1rem; }
  .stats-bar .small { font-size: 0.7rem; }

  .pillar-card, .buyer-card, .why-card { padding: 1rem; }
  .pillar-icon { width: 48px; height: 48px; font-size: 1.2rem; }

  .gocash-value, .gocash-earn { padding: 1.25rem; }
  .gocash-value h3 { font-size: 1.3rem; }

  .plan-price { font-size: 1.8rem !important; }
  .plan-card { padding: 1.25rem; }

  .footer-brand-text { font-size: 1.3rem; }
  .tradingo-footer .row > div { margin-bottom: 0.5rem; }
  .footer-copyright { text-align: center; }

  section { padding: 2rem 0 !important; }
  .py-5 { padding-top: 2rem !important; padding-bottom: 2rem !important; }

  h2 { font-size: 1.5rem; }
  h3 { font-size: 1.2rem; }
  h4 { font-size: 1.1rem; }

  .table-responsive { font-size: 0.8rem; }
}

/* ── Small phones (< 375px) ── */
@media (max-width: 375px) {
  .container { padding-left: 12px; padding-right: 12px; }
  .trd-brand-logo { height: 36px; }
  .trd-brand-sub { display: none; }
  .hero-section h1, .hero h1 { font-size: 1.4rem !important; }
  .btn-lg { width: 100%; }
  .d-flex.flex-wrap.gap-3 { gap: 0.5rem !important; }
  .gocash-wallet .balance { font-size: 2rem; }
  .stat-card h3, .buyer-stat h3 { font-size: 1.3rem; }
}

/* ═══ ANIMATED TOAST NOTIFICATION ═══ */
.tradingo-toast-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.tradingo-toast {
  background: #1E293B;
  color: #fff;
  padding: 12px 16px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.2);
  transform: translateX(120%);
  animation: slideInToast 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards;
  max-width: 350px;
}
@keyframes slideInToast {
  to { transform: translateX(0); }
}
.tradingo-toast.hiding {
  animation: slideOutToast 0.4s ease forwards;
}
@keyframes slideOutToast {
  to { transform: translateX(120%); opacity: 0; }
}
.toast-avatar {
  width: 40px; height: 40px; border-radius: 50%; background: #334155;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.toast-body-content { flex: 1; }
.toast-title { font-weight: 600; font-size: 0.9rem; margin: 0 0 2px; }
.toast-msg { font-size: 0.8rem; opacity: 0.8; margin: 0; line-height: 1.3; }

/* ═══ GLOBAL SEARCH DROPDOWN ═══ */
.nav-search-wrapper { flex: 1; max-width: 400px; margin: 0 20px; }
.nav-search-input {
  box-shadow: none !important;
  border: 1px solid #E2E8F0;
  padding: 10px 40px 10px 20px;
  transition: all 0.3s;
  width: 100%;
}
.nav-search-input:focus { border-color: #E53935; }
.nav-search-dropdown {
  position: absolute;
  top: 110%; left: 0; width: 100%;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
  border: 1px solid #E2E8F0;
  display: none;
  max-height: 300px;
  overflow-y: auto;
  z-index: 1000;
}
.nav-search-dropdown a {
  display: block;
  padding: 10px 15px;
  color: #1E293B;
  text-decoration: none;
  font-size: 0.9rem;
  border-bottom: 1px solid #f8fafc;
}
.nav-search-dropdown a:last-child { border-bottom: none; }
.nav-search-dropdown a:hover { background: #F8FAFC; color: #E53935; }
