/* HyflipPlay 2.4.1 — navbar isolada no padrão Odyssey Cloud */
.hy-odc-header,
.hy-odc-header * {
    box-sizing: border-box;
}

.hy-odc-header {
    position: relative;
    z-index: 900;
    padding: 10px 0;
    background: #070c16;
    border-bottom: 1px solid rgba(255, 255, 255, .045);
}

.hy-odc-shell {
    width: min(1180px, calc(100% - 28px));
    min-height: 76px;
    margin: 0 auto;
    padding: 10px 14px;
    display: grid;
    grid-template-columns: minmax(180px, auto) minmax(320px, 1fr) minmax(190px, auto);
    align-items: center;
    gap: 18px;
    border: 1px solid rgba(126, 145, 194, .18);
    border-radius: 20px;
    background: rgba(7, 12, 24, .96);
    box-shadow: 0 16px 42px rgba(0, 0, 0, .24);
}

.hy-odc-brand {
    min-width: 0;
    display: inline-flex;
    align-items: center;
    gap: 11px;
    color: #fff !important;
    text-decoration: none !important;
}

.hy-odc-brand img {
    width: 34px !important;
    height: 46px !important;
    max-width: 34px !important;
    max-height: 46px !important;
    flex: 0 0 34px;
    object-fit: contain;
}

.hy-odc-brand-copy {
    min-width: 0;
    display: flex;
    flex-direction: column;
    line-height: 1.08;
}

.hy-odc-brand-copy strong {
    overflow: hidden;
    color: #fff;
    font-size: 1.08rem;
    font-weight: 950;
    letter-spacing: .045em;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.hy-odc-brand-copy small {
    max-width: 210px;
    margin-top: 5px;
    overflow: hidden;
    color: #7e90af;
    font-size: .63rem;
    font-weight: 800;
    letter-spacing: .075em;
    text-transform: uppercase;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.hy-odc-desktop-nav {
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3px;
}

.hy-odc-nav-link,
.hy-odc-nav-dropdown > summary {
    min-height: 44px;
    margin: 0;
    padding: 0 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    border: 1px solid transparent;
    border-radius: 12px;
    background: transparent;
    color: #aeb9cf !important;
    font-size: .96rem;
    font-weight: 850;
    line-height: 1;
    text-decoration: none !important;
    white-space: nowrap;
    cursor: pointer;
    transition: color .16s ease, background .16s ease, border-color .16s ease, transform .16s ease;
}

.hy-odc-nav-dropdown {
    position: relative;
}

.hy-odc-nav-dropdown > summary {
    list-style: none;
}

.hy-odc-nav-dropdown > summary::-webkit-details-marker,
.hy-odc-user-menu > summary::-webkit-details-marker,
.hy-odc-mobile-group > summary::-webkit-details-marker {
    display: none;
}

.hy-odc-nav-link:hover,
.hy-odc-nav-dropdown > summary:hover,
.hy-odc-nav-dropdown[open] > summary {
    border-color: rgba(255, 255, 255, .08);
    background: rgba(255, 255, 255, .055);
    color: #fff !important;
    transform: translateY(-1px);
}

.hy-odc-nav-link.active,
.hy-odc-nav-dropdown.active > summary {
    border-color: var(--hy-accent) !important;
    background: rgba(255, 255, 255, .055) !important;
    color: #fff !important;
    box-shadow: inset 0 0 0 1px var(--hy-accent);
}

.hy-odc-dropdown-panel,
.hy-odc-user-panel {
    position: absolute;
    top: calc(100% + 10px);
    z-index: 950;
    min-width: 220px;
    padding: 8px;
    border: 1px solid rgba(255, 255, 255, .09);
    border-radius: 14px;
    background: #0d1729;
    box-shadow: 0 24px 54px rgba(0, 0, 0, .42);
}

.hy-odc-dropdown-panel {
    left: 50%;
    transform: translateX(-50%);
}

.hy-odc-dropdown-panel a,
.hy-odc-user-panel a {
    min-height: 42px;
    padding: 10px 11px;
    display: flex;
    align-items: center;
    gap: 9px;
    border-radius: 9px;
    color: #e6edf9 !important;
    font-weight: 750;
    text-decoration: none !important;
}

.hy-odc-dropdown-panel a:hover,
.hy-odc-user-panel a:hover {
    background: rgba(255, 255, 255, .07);
    color: #fff !important;
}

.hy-odc-divider {
    height: 1px;
    margin: 6px 4px;
    background: rgba(255, 255, 255, .09);
}

.hy-odc-actions {
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 7px;
}

.hy-odc-server,
.hy-odc-action,
.hy-odc-cta,
.hy-odc-text-action,
.hy-odc-mobile-toggle {
    min-height: 44px;
    border: 1px solid rgba(255, 255, 255, .075);
    border-radius: 12px;
    background: rgba(255, 255, 255, .045);
    color: #eef4ff !important;
    box-shadow: none;
    text-decoration: none !important;
    transition: background .16s ease, border-color .16s ease, transform .16s ease;
}

.hy-odc-server {
    max-width: 150px;
    padding: 0 11px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: .76rem;
    font-weight: 850;
    cursor: pointer;
}

.hy-odc-server > span:last-child {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.hy-odc-server-dot {
    width: 8px;
    height: 8px;
    flex: 0 0 8px;
    border-radius: 50%;
    background: #48e28b;
    box-shadow: 0 0 0 4px rgba(72, 226, 139, .11);
}

.hy-odc-server-dot.offline {
    background: #ff6677;
    box-shadow: 0 0 0 4px rgba(255, 102, 119, .11);
}

.hy-odc-desktop-account {
    display: flex;
    align-items: center;
    gap: 6px;
}

.hy-odc-user-menu {
    position: relative;
}

.hy-odc-user-menu > summary {
    list-style: none;
}

.hy-odc-action {
    width: 44px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.hy-odc-action.is-primary {
    border-color: transparent;
    background: linear-gradient(135deg, var(--hy-accent), var(--hy-accent-2));
}

.hy-odc-account-trigger {
    width: auto;
    max-width: 180px;
    padding: 0 10px;
    gap: 8px;
    font-weight: 850;
}

.hy-odc-account-trigger img {
    width: 27px !important;
    height: 27px !important;
    max-width: 27px !important;
    max-height: 27px !important;
    border-radius: 8px !important;
    object-fit: cover;
}

.hy-odc-account-trigger span {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.hy-odc-user-panel {
    right: 0;
    min-width: 255px;
}

.hy-odc-user-panel,
.hy-odc-user-panel *,
.hy-odc-user-panel a,
.hy-odc-user-panel span,
.hy-odc-user-panel strong,
.hy-odc-user-panel small,
.hy-odc-user-panel i {
    color: #eef4ff !important;
}

.hy-odc-user-title {
    display: block;
    padding: 7px 10px 10px;
    color: #fff !important;
    font-size: 1rem;
    font-weight: 950;
}

.hy-odc-cta,
.hy-odc-text-action {
    padding: 0 13px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 850;
}

.hy-odc-cta {
    border-color: transparent;
    background: linear-gradient(135deg, var(--hy-accent), var(--hy-accent-2));
}

.hy-odc-server:hover,
.hy-odc-action:hover,
.hy-odc-cta:hover,
.hy-odc-text-action:hover,
.hy-odc-user-menu[open] > summary {
    border-color: rgba(255, 255, 255, .12);
    background: rgba(255, 255, 255, .09);
    color: #fff !important;
    transform: translateY(-1px);
}

.hy-odc-action.is-primary:hover,
.hy-odc-cta:hover {
    background: linear-gradient(135deg, var(--hy-accent), var(--hy-accent-2));
    filter: brightness(1.08);
}

.hy-odc-mobile-toggle {
    width: 48px;
    padding: 0;
    display: none;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.hy-odc-mobile-toggle span {
    width: 21px;
    height: 2px;
    display: block;
    border-radius: 999px;
    background: #fff;
    transition: transform .18s ease, opacity .18s ease;
}

.hy-odc-mobile-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.hy-odc-mobile-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}

.hy-odc-mobile-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.hy-odc-mobile-panel {
    width: min(1180px, calc(100% - 28px));
    max-height: 0;
    margin: 0 auto;
    overflow: hidden;
    border: 0 solid rgba(126, 145, 194, .18);
    border-radius: 0 0 20px 20px;
    background: #080e1b;
    opacity: 0;
    transform: translateY(-8px);
    pointer-events: none;
    transition: max-height .25s ease, opacity .18s ease, transform .18s ease, padding .18s ease, border-width .18s ease;
}

.hy-odc-mobile-panel.is-open {
    max-height: 78vh;
    padding: 15px;
    overflow-y: auto;
    border-width: 1px;
    opacity: 1;
    transform: none;
    pointer-events: auto;
}

.hy-odc-mobile-section + .hy-odc-mobile-section {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, .08);
}

.hy-odc-mobile-label {
    display: block;
    margin: 0 3px 8px;
    color: #687a99;
    font-size: .68rem;
    font-weight: 950;
    letter-spacing: .11em;
    text-transform: uppercase;
}

.hy-odc-mobile-link,
.hy-odc-mobile-group > summary,
.hy-odc-mobile-group > div > a {
    min-height: 46px;
    padding: 10px 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid transparent;
    border-radius: 11px;
    background: transparent;
    color: #dbe5f5 !important;
    font-weight: 800;
    text-decoration: none !important;
}

.hy-odc-mobile-group > summary {
    list-style: none;
    cursor: pointer;
}

.hy-odc-mobile-group > summary .angle.icon {
    margin-left: auto;
}

.hy-odc-mobile-group > div {
    padding-left: 10px;
}

.hy-odc-mobile-link:hover,
.hy-odc-mobile-group > summary:hover,
.hy-odc-mobile-group > div > a:hover {
    border-color: rgba(255, 255, 255, .08);
    background: rgba(255, 255, 255, .055);
    color: #fff !important;
}

.hy-odc-mobile-link.active,
.hy-odc-mobile-group.active > summary {
    border-color: var(--hy-accent);
    background: rgba(255, 255, 255, .055);
    color: #fff !important;
    box-shadow: inset 0 0 0 1px var(--hy-accent);
}

.hy-odc-mobile-server {
    width: 100%;
    min-height: 54px;
    margin-top: 14px;
    padding: 9px 12px;
    display: flex;
    align-items: center;
    gap: 11px;
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 12px;
    background: rgba(255, 255, 255, .04);
    color: #fff;
    text-align: left;
}

.hy-odc-mobile-server > span:last-child {
    display: flex;
    flex-direction: column;
}

.hy-odc-mobile-server strong {
    color: #fff;
}

.hy-odc-mobile-server small {
    margin-top: 3px;
    color: #8596b4;
}

@media (max-width: 1120px) {
    .hy-odc-shell {
        grid-template-columns: minmax(155px, auto) 1fr minmax(150px, auto);
        gap: 10px;
    }

    .hy-odc-brand-copy small,
    .hy-odc-server {
        display: none;
    }

    .hy-odc-nav-link,
    .hy-odc-nav-dropdown > summary {
        padding: 0 10px;
        font-size: .9rem;
    }
}

@media (max-width: 900px) {
    .hy-odc-header {
        padding: 8px 0;
    }

    .hy-odc-shell {
        min-height: 66px;
        display: flex;
        justify-content: space-between;
        padding: 8px 12px;
        border-radius: 16px;
    }

    .hy-odc-brand img {
        width: 30px !important;
        height: 42px !important;
        max-width: 30px !important;
        max-height: 42px !important;
    }

    .hy-odc-brand-copy small,
    .hy-odc-desktop-nav,
    .hy-odc-desktop-account,
    .hy-odc-server {
        display: none !important;
    }

    .hy-odc-actions {
        margin-left: auto;
    }

    .hy-odc-mobile-toggle {
        display: inline-flex;
        margin-left: auto;
    }
}

@media (max-width: 480px) {
    .hy-odc-shell,
    .hy-odc-mobile-panel {
        width: calc(100% - 16px);
    }

    .hy-odc-brand-copy strong {
        font-size: 1rem;
    }
}
