:root { 
  --primary-green: #22c55e;
  --primary-green-hover: #16a34a;
  --bg-glass: rgba(255, 255, 255, 0.85);
  --border-color: rgba(0, 0, 0, 0.08);
  --text-dark: #0f172a;
  --text-muted: #64748b;
  --shadow-lg: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);

  --blue: #3b82f6;
  --blue-dark: #2563eb;
  --red: #ef4444;
  --ink: #0f172a;
  --gray: #64748b;
  --gray-light: #94a3b8;
  --bg2: #f1f5f9;
  --white: #ffffff;
  --border: #e2e8f0;
  --shadow: 0 1px 3px rgba(0,0,0,.06), 0 4px 16px rgba(0,0,0,.06);
}

.gcnh-wrapper {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 40px);
  max-width: 1200px;
  z-index: 1050;
  font-family: 'Inter', sans-serif;
}

.gcnh-bar {
  background: var(--bg-glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-color);
  border-radius: 100px;
  padding: 8px 12px;
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(255,255,255,0.5) inset;
  transition: all 0.3s ease;
}

.gcnh-bar:hover {
  box-shadow: 0 25px 30px -5px rgb(0 0 0 / 0.15), 0 0 0 1px rgba(255,255,255,0.6) inset;
  transform: translateY(-1px);
}

.gcnh-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 48px;
  padding: 0 8px;
}

.gcnh-nav-col {
  display: flex;
  align-items: center;
  flex: 1;
}

.gcnh-links {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.gcnh-links a {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 8px 16px;
  border-radius: 100px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.gcnh-links a:hover {
  color: var(--text-dark);
  background: rgba(0,0,0,0.03);
}

.gcnh-links a.gcnh-on {
  color: var(--text-dark);
  background: rgba(0,0,0,0.05);
  font-weight: 600;
}

.gcnh-links a .bi-chevron-down {
  font-size: 12px;
  opacity: 0.6;
  transition: transform 0.2s ease;
}

.gcnh-links a:hover .bi-chevron-down {
  transform: rotate(180deg);
  opacity: 1;
}

.gcnh-logo-col {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  padding: 0 20px;
}

.gcnh-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  transition: transform 0.3s ease;
}

.gcnh-logo:hover {
  transform: scale(1.02);
  opacity: 0.8;
}

.gcnh-logo img {
  height: 150px;
  width: auto;
  display: block;
}

.gcnh-actions-col {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex: 1;
  gap: 8px;
}

.gcnh-btn-write {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 100px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  background: transparent;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
}

.gcnh-btn-write:hover {
  color: var(--text-dark);
  background: rgba(0,0,0,0.03);
}

.gcnh-btn-write i {
  font-size: 14px;
}

.gcnh-btn-signin {
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  border-radius: 100px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-dark);
  background: transparent;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.gcnh-btn-signin:hover {
  background: rgba(0,0,0,0.03);
}

.gcnh-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 24px;
  border-radius: 100px;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(135deg, var(--primary-green) 0%, var(--primary-green-hover) 100%);
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(34, 197, 94, 0.3), 0 0 0 1px rgba(255,255,255,0.2) inset;
  text-decoration: none;
}

.gcnh-btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(34, 197, 94, 0.4), 0 0 0 1px rgba(255,255,255,0.3) inset;
  color: #fff;
}

.gcnh-btn-primary i {
  font-size: 14px;
  transition: transform 0.2s ease;
}

.gcnh-btn-primary:hover i {
  transform: translateX(3px);
}

.gcnh-user .dropdown-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 6px 6px 16px;
  border-radius: 100px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-dark);
  background: rgba(0,0,0,0.03);
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.gcnh-user .dropdown-toggle:hover {
  background: rgba(0,0,0,0.06);
}

.gcnh-user .dropdown-toggle::after {
  display: none;
}

.user-avatar {
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, var(--primary-green) 0%, var(--primary-green-hover) 100%);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  box-shadow: 0 2px 8px rgba(34, 197, 94, 0.3);
}

.user-name {
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.gcnh-user .dropdown-menu {
  margin-top: 12px !important;
  border-radius: 20px;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-lg);
  padding: 8px;
  min-width: 220px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  animation: dropdownFade 0.2s ease;
}

@keyframes dropdownFade {
  from { opacity: 0; transform: translateY(-10px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.gcnh-user .dropdown-item {
  border-radius: 12px;
  font-size: 14px;
  font-weight: 500;
  padding: 10px 16px;
  color: var(--text-dark);
  display: flex;
  align-items: center;
  gap: 10px;
  transition: all 0.15s ease;
  margin: 2px 0;
}

.gcnh-user .dropdown-item:hover {
  background: rgba(0,0,0,0.03);
  transform: translateX(4px);
}

.gcnh-user .dropdown-item i {
  color: var(--text-muted);
  font-size: 16px;
}

.gcnh-user .dropdown-divider {
  margin: 8px 0;
  border-color: var(--border-color);
}

.gcnh-toggler {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 100%;
  background: rgba(0,0,0,0.03);
  border: none;
  cursor: pointer;
  color: var(--text-dark);
  font-size: 20px;
  transition: all 0.2s ease;
}

.gcnh-toggler:hover {
  background: rgba(0,0,0,0.06);
  transform: scale(1.05);
}

.gcnh-mobile {
  display: none;
  position: fixed;
  top: 0;
  right: -100%;
  width: 100%;
  max-width: 380px;
  height: 100vh;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px);
  flex-direction: column;
  z-index: 1060;
  padding: 24px;
  transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: -10px 0 40px rgba(0,0,0,0.1);
}

.gcnh-mobile.gcnh-open {
  right: 0;
  display: flex;
}

.mobile-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 32px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-color);
}

.mobile-close {
  width: 40px;
  height: 40px;
  border-radius: 100%;
  border: none;
  background: rgba(0,0,0,0.03);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: var(--text-dark);
  cursor: pointer;
  transition: all 0.2s ease;
}

.mobile-close:hover {
  background: rgba(0,0,0,0.06);
  transform: rotate(90deg);
}

.gcnh-mob-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 16px;
  font-size: 16px;
  font-weight: 500;
  color: var(--text-dark);
  text-decoration: none;
  transition: all 0.2s ease;
  margin-bottom: 4px;
}

.gcnh-mob-link:hover {
  background: rgba(0,0,0,0.03);
  padding-left: 20px;
}

.gcnh-mob-link.gcnh-on {
  background: rgba(34, 197, 94, 0.1);
  color: var(--primary-green-hover);
  font-weight: 600;
}

.gcnh-mob-actions {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-top: 20px;
  border-top: 1px solid var(--border-color);
}

.gcnh-mob-actions button,
.gcnh-mob-actions a {
  width: 100%;
  justify-content: center;
  padding: 14px;
  font-size: 15px;
}

.mobile-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.3);
  backdrop-filter: blur(4px);
  z-index: 1055;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.mobile-overlay.active {
  display: block;
  opacity: 1;
}

@media (max-width: 991px) {
  .gcnh-wrapper {
    width: calc(100% - 24px);
    top: 12px;
  }
  
  .gcnh-nav-col,
  .gcnh-actions-col .d-desktop {
    display: none;
  }
  
  .gcnh-toggler {
    display: flex;
  }
  
  .gcnh-logo-col {
    flex: 1;
    justify-content: flex-start;
    padding-left: 8px;
  }
  
  .gcnh-actions-col {
    flex: 0 0 auto;
  }
}

@media (max-width: 480px) {
  .gcnh-bar {
    padding: 6px 8px;
  }
  
  .gcnh-inner {
    height: 44px;
  }
  
  .gcnh-logo img {
    height: 28px;
  }
}