/* ===== Responsive & Mobile Drawer Navigation Styles (responsive.css) ===== */

/* Mobile Drawer Mask & Panel */
.mobile-nav-mask {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(3px);
  z-index: 990;
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s ease;
}

.mobile-nav-mask.is-open {
  opacity: 1;
  visibility: visible;
}

.mobile-nav {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 300px;
  max-width: 86vw;
  background: #ffffff;
  z-index: 995;
  box-shadow: -10px 0 35px rgba(15, 23, 42, 0.15);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.mobile-nav-head {
  padding: 18px 20px;
  border-bottom: 1px solid #eef2f8;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mobile-nav-title {
  font-size: 15px;
  font-weight: 700;
  color: #0f172a;
}

.mobile-nav-close {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  font-size: 20px;
  line-height: 1;
  color: #475569;
  cursor: pointer;
}

.mobile-nav-body {
  flex: 1;
  overflow-y: auto;
  padding: 12px 16px;
}

.mobile-nav-item {
  border-bottom: 1px solid #f1f5f9;
}

.mobile-nav-link {
  width: 100%;
  padding: 13px 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 14.5px;
  font-weight: 600;
  color: #1e293b;
  background: none;
  border: none;
  text-align: left;
  text-decoration: none !important;
  cursor: pointer;
}

.mobile-nav-caret {
  width: 16px;
  height: 16px;
  transition: transform 0.2s ease;
}

.mobile-nav-link[aria-expanded="true"] .mobile-nav-caret {
  transform: rotate(180deg);
}

.mobile-nav-sub {
  display: none;
  padding: 4px 0 12px 12px;
}

.mobile-nav-sub.is-open {
  display: block;
}

.mobile-nav-sub-inner {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.mobile-nav-sub-link {
  display: flex;
  flex-direction: column;
  padding: 8px 10px;
  border-radius: 8px;
  background: #f8fafc;
  text-decoration: none !important;
}

.mobile-nav-sub-link .t {
  font-size: 13px;
  font-weight: 600;
  color: #334155;
}

.mobile-nav-sub-link .d {
  font-size: 11.5px;
  color: #94a3b8;
}

.mobile-nav-foot {
  padding: 16px;
  border-top: 1px solid #eef2f8;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.mobile-nav-foot a {
  padding: 9px 12px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  text-align: center;
  border: 1px solid #e2e8f0;
  color: #334155;
  text-decoration: none !important;
}

.mobile-nav-foot a.mnf-primary {
  grid-column: span 2;
  background: #3b5bdb;
  border-color: #3b5bdb;
  color: #ffffff !important;
}

/* Breakpoints */
@media (max-width: 1100px) {
  .ps-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .aurora-stats-bar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .stat-card:nth-child(2) {
    border-right: none;
  }
  .ts-layout {
    grid-template-columns: 1fr;
  }
  .ts-card:nth-child(2) {
    transform: none;
  }
}

@media (max-width: 1024px) {
  .nav-menu,
  .nav-right .nav-link-btn,
  .nav-right .no-login {
    display: none !important;
  }
  .mobile-nav-toggle {
    display: inline-flex;
  }
  .fx-hero-hl {
    flex-direction: column;
    align-items: flex-start;
  }
  .mig-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .hero-left {
    grid-template-columns: 1fr;
    grid-template-areas:
      "tag"
      "title"
      "actions"
      "qq";
    max-width: 100%;
  }
  .uc-grid,
  .ts-cards,
  .ps-grid,
  .aurora-stats-bar {
    grid-template-columns: 1fr;
  }
  .stat-card {
    border-right: none;
    border-bottom: 1px solid #edf2f9;
    padding-bottom: 12px;
  }
  .stat-card:last-child {
    border-bottom: none;
    padding-bottom: 0;
  }
  .fx-globe-bg {
    width: 540px;
    height: 540px;
    top: 90px;
  }
}
