/* ===== HEADER ===== */
* { box-sizing: border-box; margin: 0; padding: 0; }

.bw-header {
  font-family: 'Inter', 'Arial', sans-serif;
  background: #0d0d1a;
  color: #fff;
  width: 100%;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 12px rgba(0,0,0,0.5);
}

/* ===== TOPBAR ===== */
.bw-topbar {
  height: 56px;
  background: #0d0d1a;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.bw-topbar-inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 16px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.bw-topbar-left {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.bw-hamburger {
  background: none;
  border: none;
  color: #fff;
  font-size: 24px;
  cursor: pointer;
  padding: 2px 4px;
  line-height: 1;
  transition: opacity 0.2s;
}
.bw-hamburger:hover { opacity: 0.8; }

.bw-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}
.bw-logo img {
    width: 173px;
    object-fit: contain;
    display: block;
}

.bw-topbar-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

/* Desktop buttons */
.bw-btn {
  height: 36px;
  padding: 0 22px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  font-family: 'Inter', sans-serif;
  transition: background 0.2s, transform 0.1s;
  border: none;
}
.bw-btn:active { transform: scale(0.97); }

.bw-btn-login {
  background: #fff;
  color: #1a6fd4;
}
.bw-btn-login:hover { background: #f0f0f0; }

.bw-btn-signup {
  background: #1a6fd4;
  color: #fff;
}
.bw-btn-signup:hover { background: #155bb5; }

/* ===== NAVBAR ===== */
.bw-navbar {
    background: #1a1a2e;
    overflow-x: auto;
    scrollbar-width: none;
    height: 54px;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-x;
    position: relative;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}
.bw-navbar::-webkit-scrollbar { display: none; }

.bw-navbar-inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  align-items: stretch;
  height: 100%;
}

.bw-nav-list {
    display: flex;
    list-style: none;
    align-items: stretch;
    flex: 1;
    flex-shrink: 0;
    min-width: max-content;
    padding: 0;
    margin-bottom: 0;
}

.bw-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  cursor: pointer;
  border-bottom: 3px solid transparent;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
  white-space: nowrap;
  gap: 2px;
  user-select: none;
  min-width: 60px;
}
.bw-nav-item:hover {
  background: rgba(255,255,255,0.05);
  border-bottom-color: rgba(0,196,94,0.4);
}
.bw-nav-item.active {
  background: rgba(0,196,94,0.1);
  border-bottom-color: #00c45e;
}

.bw-nav-icon { font-size: 17px; line-height: 1; }

.bw-nav-label {
    font-size: 11px;
    color: #aaa;
    text-transform: capitalize;
    letter-spacing: 0.2px;
    line-height: 1.2;
    text-align: center;
    font-weight: 500;
}
.bw-nav-item:hover .bw-nav-label { color: #fff; }
.bw-nav-item.active .bw-nav-label { color: #00c45e; font-weight: 700; }
.bw-nav-item.active .bw-nav-icon { filter: none; }

/* Dropdown arrow at end of navbar */
.bw-nav-more {
  display: none;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  cursor: pointer;
  color: #fff;
  font-size: 18px;
  background: #1a1a1a;
  border-left: 1px solid #2a2a2a;
  flex-shrink: 0;
  user-select: none;
}
.bw-nav-more:hover { background: rgba(255,255,255,0.06); }

/* ===== MOBILE DRAWER ===== */
.bw-mobile-drawer {
  position: fixed;
  top: 0;
  left: -290px;
  width: 270px;
  height: 100vh;
  background: #111;
  z-index: 2000;
  transition: left 0.28s ease;
  padding: 16px 0;
  overflow-y: auto;
  border-right: 1px solid #222;
}
.bw-mobile-drawer.open { left: 0; }

.bw-drawer-close {
  background: none;
  border: none;
  color: #fff;
  font-size: 18px;
  cursor: pointer;
  padding: 6px 16px 14px;
  display: block;
}

.bw-drawer-list { list-style: none; }

.bw-drawer-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 20px;
  cursor: pointer;
  font-size: 14px;
  text-transform: capitalize;
  color: #bbb;
  border-left: 3px solid transparent;
  transition: background 0.15s, color 0.15s;
}
.bw-drawer-item:hover { background: rgba(255,255,255,0.05); color: #fff; }
.bw-drawer-item.active {
  border-left-color: #1a6fd4;
  color: #fff;
  background: rgba(26,111,212,0.15);
}

.bw-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.65);
  z-index: 1500;
}
.bw-overlay.show { display: block; }

/* ===== MOBILE RESPONSIVE ===== */
@media (max-width: 768px) {
  .bw-topbar {
    height: 64px;
  }
  .bw-topbar-inner {
    padding: 0 14px;
  }

.bw-logo img {
        height: 34px;
        width: auto;
    }

  .bw-btn {
    height: 42px;
    padding: 0 22px;
    font-size: 15px;
    border-radius: 10px;
  }

  .bw-navbar {
    height: 48px;
  }

  .bw-nav-item {
    padding: 0 12px;
    min-width: 62px;
    gap: 2px;
  }

  .bw-nav-icon { font-size: 18px; }
  .bw-nav-label { font-size: 10px; }

  .bw-nav-more { display: flex; }
}

@media (max-width: 480px) {
  .bw-topbar { height: 60px; }
  .bw-topbar-inner { padding: 0 6px; }
  .bw-logo img { height: 40px; }
 .bw-btn {
        height: 31px;
        padding: 0 12px;
        font-size: 11px;
    }
  .bw-hamburger { font-size: 26px; }
}
