/* Header for QR Studio / Domains / Team = exactly the same look as the Support (contact) page header.
   Desktop rules are limited to > 768px, so the mobile slide-in menu is untouched. */

/* ---- Upgrade button + plan badge (all widths, same as the other pages) ---- */
.btn-upgrade { background: linear-gradient(135deg, #f59e0b 0%, #b45309 100%); color: #fff !important; padding: .6rem 1.2rem; border-radius: .7rem; font-weight: 600 !important;
    box-shadow: 0 4px 12px rgba(245, 158, 11, .3); position: relative; overflow: hidden; transition: transform .2s ease, box-shadow .2s ease, filter .2s ease; animation: pulse-glow-gold 2s infinite; }
.btn-upgrade::after { content: ''; position: absolute; top: -50%; left: -50%; width: 200%; height: 200%; background: linear-gradient(45deg, transparent, rgba(255, 255, 255, .4), transparent); transform: rotate(45deg); animation: shimmer 3s infinite; }
.btn-upgrade:hover { transform: translateY(-2px) scale(1.05); box-shadow: 0 10px 20px rgba(180, 83, 9, .4); }
@keyframes pulse-glow-gold { 0% { box-shadow: 0 0 0 0 rgba(245, 158, 11, .5); } 70% { box-shadow: 0 0 0 10px rgba(245, 158, 11, 0); } 100% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0); } }
@keyframes shimmer { 0% { transform: translateX(-150%) rotate(45deg); } 100% { transform: translateX(150%) rotate(45deg); } }

.nav-links a[href$="upgrade/"] > span,
.nav-links .badge-user {
    position: relative; overflow: hidden; display: inline-flex !important; align-items: center; justify-content: center; gap: .45rem;
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 45%, #ea580c 100%) !important; color: #fff !important; border: 0 !important; border-radius: 999px !important;
    padding: .5rem 1.1rem !important; font-weight: 700 !important; font-size: .9rem; letter-spacing: .02em; text-shadow: 0 1px 2px rgba(0, 0, 0, .28);
    box-shadow: 0 8px 20px -8px rgba(245, 158, 11, .75), inset 0 1px 0 rgba(255, 255, 255, .4); transition: transform .2s ease, box-shadow .2s ease;
}
.nav-links a[href$="upgrade/"] > span i, .nav-links .badge-user i { filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .35)); }
.nav-links a[href$="upgrade/"] > span::after, .nav-links .badge-user::after {
    content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 40%; background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .55), transparent);
    transform: skewX(-20deg); animation: planShine 3.8s ease-in-out infinite; pointer-events: none;
}
.nav-links a[href$="upgrade/"]::after { display: none !important; }
@media (hover: hover) { .nav-links a[href$="upgrade/"]:hover > span { transform: translateY(-2px); box-shadow: 0 12px 26px -8px rgba(245, 158, 11, .9), inset 0 1px 0 rgba(255, 255, 255, .45); } }
@keyframes planShine { 0% { left: -60%; } 55%, 100% { left: 140%; } }
@media (max-width: 768px) {
    .nav-links a[href$="upgrade/"] { display: block; width: 100%; }
    .nav-links a[href$="upgrade/"] > span { display: flex !important; width: 100%; padding: .75rem 1rem !important; font-size: 1rem; }
}
@media (prefers-reduced-motion: reduce) { .nav-links a[href$="upgrade/"] > span::after, .nav-links .badge-user::after { animation: none !important; } }

/* ---- Desktop header: SAME size as the Home page.
   Home page runs with html{font-size:15px} (compact.css) but this layout runs at 16px, so every header value below is written in px (= Home's rem x 15). ---- */
@media (min-width: 769px) {
    nav {
        background: var(--glass); -webkit-backdrop-filter: blur(16px) saturate(140%); backdrop-filter: blur(16px) saturate(140%);
        border-bottom: 1px solid var(--border); box-shadow: 0 6px 24px -12px rgba(0, 0, 0, .35);
        display: flex; justify-content: space-between; align-items: center; flex-wrap: nowrap; gap: 15px;
        padding: 8.25px clamp(.75rem, 3vw, 5%); position: sticky; top: 0; z-index: 1000;
    }
    nav .logo { flex: 0 0 auto; white-space: nowrap; font-size: 22.5px; font-weight: 700; color: var(--primary); text-decoration: none; display: flex; align-items: center; gap: 7.5px; }
    nav .site-logo-img { max-width: clamp(120px, 16vw, 210px) !important; }
    .nav-links { display: flex; flex: 0 1 auto; flex-wrap: nowrap; align-items: center; gap: 21px; white-space: nowrap; min-width: 0; }
    .nav-links > * { flex: 0 0 auto; white-space: nowrap; }
    .nav-links a, .nav-links .dnav-btn { position: relative; text-decoration: none; color: var(--text-muted); font-weight: 500; font-size: 14.25px; line-height: 1.2; transition: all .2s; }
    .nav-links a:hover, .nav-links a.active { color: var(--primary); }
    .nav-links a:not(.btn-upgrade)::after {
        content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 2px; background: var(--primary, #FF6D29); border-radius: 2px;
        transform: scaleX(0); transform-origin: left; transition: transform .25s ease;
    }
    .nav-links a:not(.btn-upgrade):hover::after, .nav-links a.active::after { transform: scaleX(1); }
    .nav-links a[href$="upgrade/"]::after { display: none !important; }
    .nav-links .btn-upgrade, .nav-links .badge { display: inline-flex; align-items: center; justify-content: center; line-height: 1.2; white-space: nowrap; }
    .nav-links .btn-upgrade { padding: 9px 18px; font-size: 14.25px; border-radius: 10.5px; }
    .nav-links a[href$="upgrade/"] > span, .nav-links .badge-user { padding: 7.5px 16.5px !important; font-size: 13.5px; gap: 6.75px; }
    .nav-links .theme-btn { display: inline-flex; align-items: center; justify-content: center; line-height: 1; padding: 7.5px 12px; font-size: 15px; }
    nav .nav-links .dnav-btn { font-size: 14.25px; }
    .dnav-menu a, .dnav-menu button.dnav-it { font-size: 13.8px !important; }
    .menu-toggle { display: none !important; }
}
@media (min-width: 769px) and (max-width: 1150px) {
    .nav-links a, nav .nav-links .dnav-btn { font-size: 12.9px; }
    .nav-links .btn-upgrade { padding: 7.5px 12.75px !important; font-size: 12.9px; }
    .nav-links .badge { padding: 7.5px 12.75px !important; }
    .nav-links .theme-btn { padding: 6.75px 9.75px !important; }
}
