:root {
  --goldtabs-height: 92px;
  /* Use full width so tabs are not cut off */
  --goldtabs-maxw: 9999px;
  --goldtabs-radius: 16px;
}

/* Make room for the fixed header */
body {
  padding-top: calc(var(--goldtabs-height) + 18px);
}

.goldtabs-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  /* Pull the bar slightly more to the edges */
  padding: 8px 8px;
  background: transparent;
}

.goldtabs-frame {
  max-width: var(--goldtabs-maxw);
  /* Left aligned, full-width frame */
  margin: 0;
  height: var(--goldtabs-height);
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 10px;
  border-radius: var(--goldtabs-radius);
  background: linear-gradient(180deg, rgba(38,38,38,0.94), rgba(10,10,10,0.92));
  border: 1px solid rgba(255, 199, 91, 0.32);
  box-shadow: 0 18px 40px rgba(0,0,0,0.55);
  backdrop-filter: blur(6px);
}

/* Brand (left) */
.goldtabs-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 12px;
  border-radius: 14px;
  text-decoration: none;
  background: rgba(0,0,0,0.35);
  border: 1px solid rgba(255,255,255,0.06);
  /* Slightly smaller so all tabs fit on one line */
  min-width: 220px;
  height: calc(var(--goldtabs-height) - 20px);
}

.goldtabs-logo {
  width: 52px;
  height: 52px;
  object-fit: contain;
  image-rendering: auto;
  filter: drop-shadow(0 6px 14px rgba(0,0,0,0.55));
}

.goldtabs-brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.goldtabs-brand-name {
  color: #ffffff;
  font-weight: 900;
  font-size: 22px;
  letter-spacing: 0.3px;
}

.goldtabs-brand-sub {
  color: rgba(255,255,255,0.78);
  font-weight: 700;
  font-size: 13px;
}

/* Tabs (single line, no wrap) */
.goldtabs-nav {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  overflow-x: auto;
  overflow-y: hidden;
  white-space: nowrap;
  padding: 6px 2px;
}

/* Hide scrollbar but keep scroll */
.goldtabs-nav { scrollbar-width: none; }
.goldtabs-nav::-webkit-scrollbar { height: 0; }

.goldtabs-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 56px;
  padding: 0 14px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 900;
  font-size: 16px;
  color: #2b1a00;
  background: linear-gradient(180deg, #f1c978 0%, #c99a3a 100%);
  border: 2px solid rgba(74, 50, 12, 0.6);
  box-shadow: 0 3px 0 rgba(74, 50, 12, 0.75), 0 12px 22px rgba(0,0,0,0.35);
  user-select: none;
  transform: translateZ(0);
}

.goldtabs-tab:hover {
  filter: brightness(1.05);
  box-shadow: 0 3px 0 rgba(74, 50, 12, 0.75), 0 0 16px rgba(255, 210, 120, 0.25), 0 14px 26px rgba(0,0,0,0.42);
}

.goldtabs-tab:active {
  transform: translateY(1px);
  box-shadow: 0 2px 0 rgba(74, 50, 12, 0.75), 0 10px 18px rgba(0,0,0,0.35);
}

.goldtabs-tab.is-active {
  outline: 3px solid rgba(255, 220, 150, 0.55);
  outline-offset: 2px;
  filter: brightness(1.08);
}

/* Mobile: keep EVERYTHING on one line via horizontal scroll (no burger) */
@media (max-width: 900px) {
  :root { --goldtabs-height: 88px; }
  .goldtabs-brand { min-width: 190px; }
  .goldtabs-brand-name { font-size: 20px; }
  .goldtabs-tab { height: 54px; font-size: 16px; padding: 0 14px; }
}

@media (max-width: 520px) {
  :root { --goldtabs-height: 84px; }
  .goldtabs-brand { min-width: 180px; padding: 8px 10px; }
  .goldtabs-logo { width: 44px; height: 44px; }
  .goldtabs-brand-name { font-size: 18px; }
  .goldtabs-brand-sub { font-size: 12px; }
  .goldtabs-tab { height: 52px; font-size: 15px; padding: 0 14px; }
}
