/* ══════════════════════════════════════
   VARIÁVEIS E RESET
   ══════════════════════════════════════ */
:root {
    --sq-orange: #f15a24;
    --sq-orange-hover: #d4491b;
    --sq-dark: #2d3436;
    --sq-gray: #636e72;
    --sq-border: #e0e0e0;
    --sq-bg-light: #f4f7f6;
}

body { margin: 0; font-family: 'Quicksand', sans-serif; background-color: var(--sq-bg-light); }

/* ══════════════════════════════════════
   BARRA SUPERIOR (BRAND BAR)
   ══════════════════════════════════════ */
.sq-brand-bar {
    background: #fff;
    border-top: 4px solid var(--sq-orange);
    border-bottom: 1px solid var(--sq-border);
    padding: 12px 0;
}

.sq-brand-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    gap: 30px;
}

/* Logo */
.sq-logo { text-decoration: none; display: flex; align-items: center; gap: 10px; min-width: fit-content; }
.sq-logo-icon { background: var(--sq-orange); color: #fff; width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; border-radius: 10px; font-size: 20px; }
.sq-logo-text { font-size: 24px; font-weight: 700; color: var(--sq-dark); }
.sq-logo-text em { color: var(--sq-orange); font-style: normal; }

/* Busca Central */
.sq-search { flex: 1; max-width: 500px; position: relative; }
.sq-search input {
    width: 100%;
    padding: 12px 45px 12px 20px;
    background: #f1f3f5;
    border: 1px solid transparent;
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    transition: all 0.3s;
}
.sq-search input:focus { background: #fff; border-color: var(--sq-orange); outline: none; box-shadow: 0 0 0 4px rgba(241, 90, 36, 0.1); }
.sq-search button { position: absolute; right: 15px; top: 50%; transform: translateY(-50%); background: none; border: none; color: var(--sq-gray); cursor: pointer; font-size: 16px; }

/* Ações */
.header-actions { display: flex; align-items: center; gap: 20px; }
.sq-link-ghost { color: var(--sq-gray); text-decoration: none; font-size: 14px; font-weight: 600; }
.sq-user-pill { display: flex; align-items: center; gap: 10px; text-decoration: none; background: #f8f9fa; padding: 6px 12px 6px 6px; border-radius: 50px; border: 1px solid var(--sq-border); }
.sq-user-avatar { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; }
.sq-user-name { font-size: 13px; font-weight: 700; color: var(--sq-dark); line-height: 1.2; }
.sq-btn-primary { background: var(--sq-orange); color: #fff; padding: 10px 20px; border-radius: 8px; text-decoration: none; font-weight: 700; font-size: 14px; transition: 0.2s; }
.sq-btn-primary:hover { background: var(--sq-orange-hover); }

/* ══════════════════════════════════════
   NAVEGAÇÃO (NAV BAR)
   ══════════════════════════════════════ */
.sq-nav { background: #fff; border-bottom: 1px solid var(--sq-border); position: sticky; top: 0; z-index: 900; }
.sq-nav-inner { max-width: 1200px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; padding: 0 20px; }
.sq-nav-menu { display: flex; gap: 25px; }
.sq-nav-link { text-decoration: none; color: var(--sq-gray); font-size: 14px; font-weight: 700; padding: 18px 0; border-bottom: 3px solid transparent; transition: 0.2s; text-transform: uppercase; }
.sq-nav-link:hover, .sq-nav-link.active { color: var(--sq-orange); border-bottom-color: var(--sq-orange); }

.sq-upgrade { background: #fff5f2; color: var(--sq-orange); padding: 8px 16px; border-radius: 20px; font-size: 12px; font-weight: 800; text-decoration: none; text-transform: uppercase; display: flex; align-items: center; gap: 6px; }

/* ══════════════════════════════════════
   HERO / BREADCRUMB
   ══════════════════════════════════════ */
.sq-hero { background: #fff; padding: 30px 0; border-bottom: 1px solid var(--sq-border); margin-bottom: 30px; }
.sq-hero-inner { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.sq-breadcrumb { display: flex; align-items: center; gap: 10px; font-size: 13px; margin-bottom: 12px; }
.sq-breadcrumb a { color: var(--sq-orange); text-decoration: none; font-weight: 600; }
.sq-breadcrumb i { font-size: 10px; color: #ccc; }
.sq-breadcrumb .current { color: var(--sq-gray); }
.sq-page-title { font-size: 28px; font-weight: 800; color: var(--sq-dark); margin: 0; display: flex; align-items: center; }

/* ══════════════════════════════════════
   MOBILE & DRAWER
   ══════════════════════════════════════ */
.sq-mobile-btn { display: none; background: none; border: none; font-size: 24px; color: var(--sq-dark); cursor: pointer; }
.sq-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 1000; display: none; opacity: 0; transition: 0.3s; backdrop-filter: blur(4px); }
.sq-overlay.visible { display: block; opacity: 1; }

.sq-drawer { position: fixed; top: 0; right: -300px; width: 300px; height: 100%; background: #fff; z-index: 1001; transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1); box-shadow: -5px 0 15px rgba(0,0,0,0.1); padding: 20px; box-sizing: border-box; }
.sq-drawer.open { right: 0; }
.sq-drawer-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 30px; border-bottom: 1px solid #eee; padding-bottom: 15px; }
.sq-drawer-close { background: none; border: none; font-size: 32px; cursor: pointer; color: #999; }
.sq-drawer-link { display: flex; align-items: center; gap: 12px; padding: 12px 15px; text-decoration: none; color: var(--sq-dark); font-weight: 600; border-radius: 8px; margin-bottom: 5px; transition: 0.2s; }
.sq-drawer-link:hover, .sq-drawer-link.active { background: #fff5f2; color: var(--sq-orange); }
.sq-drawer-divider { border: 0; border-top: 1px solid #eee; margin: 15px 0; }
.sq-logout { color: #eb4d4b; }

@media (max-width: 991px) {
    .sq-search, .sq-link-ghost, .sq-nav-menu, .sq-user-name { display: none; }
    .sq-mobile-btn { display: block; }
    .sq-brand-inner { padding: 10px 20px; }
}
/* Botão ghost (Entrar) */
.sq-btn-ghost {
    display: inline-flex;
    align-items: center;
    height: 36px;
    padding: 0 16px;
    border: 1.5px solid var(--sq-border);
    border-radius: 6px;
    font-family: var(--sq-font);
    font-size: 13.5px;
    font-weight: 600;
    color: var(--sq-dark);
    text-decoration: none;
    transition: border-color .2s, color .2s;
    white-space: nowrap;
}
.sq-btn-ghost:hover {
    border-color: var(--sq-orange);
    color: var(--sq-orange);
}